ConfigFile
Constructors
makeProvider
Added in v2.0.0
Source
fileName must be a static application-defined value and must not be derived
from untrusted input.
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 symbolConfigErrorTypeId type
Added in v2.0.0
Source
Signature
type ConfigErrorTypeId = typeof ConfigErrorTypeIdConfigFileError
Added in v2.0.0
Source
Signature
declare const ConfigFileError: (message: string) => ConfigFileErrorConfigFileError 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>