Type Alias EnvAccessorSettings<TEnvConfig>

EnvAccessorSettings: {
    schema: StandardSchemaV1<Partial<Record<string, string>>, TEnvConfig>;
    sources: OneOrMore<AsyncLazyable<RawEnvConfig>>;
}

Settings for configuring an EnvAccessor instance.

Type Parameters

Type declaration

  • schema: StandardSchemaV1<Partial<Record<string, string>>, TEnvConfig>

    The schema used to validate and type the environment config.

  • sources: OneOrMore<AsyncLazyable<RawEnvConfig>>

    One or more sources (sync/async/lazy) providing raw environment config values.