(
options: {
readonly load: <A>(
path: ReadonlyArray<string>,
config: Config.Config.Primitive<A>,
split: boolean
) => Effect.Effect<Array<A>, ConfigError.ConfigError>
readonly enumerateChildren: (
path: ReadonlyArray<string>
) => Effect.Effect<HashSet.HashSet<string>, ConfigError.ConfigError>
readonly patch: PathPatch.PathPatch
}
)
| 64 | |
| 65 | /** @internal */ |
| 66 | export const makeFlat = ( |
| 67 | options: { |
| 68 | readonly load: <A>( |
| 69 | path: ReadonlyArray<string>, |
| 70 | config: Config.Config.Primitive<A>, |
| 71 | split: boolean |
| 72 | ) => Effect.Effect<Array<A>, ConfigError.ConfigError> |
| 73 | readonly enumerateChildren: ( |
| 74 | path: ReadonlyArray<string> |
| 75 | ) => Effect.Effect<HashSet.HashSet<string>, ConfigError.ConfigError> |
| 76 | readonly patch: PathPatch.PathPatch |
| 77 | } |
| 78 | ): ConfigProvider.ConfigProvider.Flat => ({ |
| 79 | [FlatConfigProviderTypeId]: FlatConfigProviderTypeId, |
| 80 | patch: options.patch, |
| 81 | load: (path, config, split = true) => options.load(path, config, split), |
| 82 | enumerateChildren: options.enumerateChildren |
| 83 | }) |
| 84 | |
| 85 | /** @internal */ |
| 86 | export const fromFlat = (flat: ConfigProvider.ConfigProvider.Flat): ConfigProvider.ConfigProvider => |
no test coverage detected