Package: effect
Module: Config
A recipe for extracting a typed value T from a ConfigProvider.
When to use
Use to describe typed configuration that can be parsed from a provider or
yielded inside Effect.gen.
Details
Key members:
parse(provider, pathPrefix?) – runs the config against a specific provider.
The optional path prefix is the logical scope accumulated from outer
Config.nested calls.Effect.gen, which automatically
resolves the current ConfigProvider from the context..pipe(Config.map(...)) etc.See
schema – the main way to create a ConfigSignature
export interface Config<out T> extends Effect.Effect<T, ConfigError> {
readonly [TypeId]: typeof TypeId
readonly parse: (
provider: ConfigProvider.ConfigProvider,
pathPrefix?: Path
) => Effect.Effect<T, ConfigError>
}
Since v2.0.0