ConfigFile
Constructors
makeProvider
Added in v2.0.0
Source
Signature
declare const makeProvider: ( fileName: string, options?: { readonly formats?: ReadonlyArray<Kind>; readonly searchPaths?: ReadonlyArray<string>; },) => Effect<ConfigProvider, ConfigFileError, Path | FileSystem>;Errors
ConfigErrorTypeId
Added in v2.0.0
Source
Signature
declare const ConfigErrorTypeId: unique symbol;ConfigErrorTypeId type
Added in v2.0.0
Source
Signature
type ConfigErrorTypeId = typeof ConfigErrorTypeId;ConfigFileError
Added in v2.0.0
Source
Signature
declare const ConfigFileError: (message: string) => ConfigFileError;ConfigFileError interface
Added in v2.0.0
Source
Signature
interface ConfigFileError extends YieldableError { readonly _tag: "ConfigFileError"; readonly [ConfigErrorTypeId]: typeof ConfigErrorTypeId; readonly message: string;}Layers
fileName must be a static application-defined value and must not be derived from untrusted input.
Signature
declare const layer: ( fileName: string, options?: { readonly formats?: ReadonlyArray<Kind>; readonly searchPaths?: ReadonlyArray<string>; },) => Layer<never, ConfigFileError, Path | FileSystem>;
fileNamemust be a static application-defined value and must not be derived from untrusted input.