ConfigProvider19
Constructors
makefunctionCreates a ConfigProvider from a raw lookup function.makeArrayfunctionCreates an Array node representing an indexed container with a known length.makeRecordfunctionCreates a Record node representing an object-like container with known child keys.makeValuefunctionCreates a Value node representing a terminal string leaf.Models
ConfigProviderinterfaceThe core interface for loading raw configuration data.NodetypeA discriminated union describing the shape of a configuration value at a given path.PathtypeAn ordered sequence of string or numeric segments that addresses a node in the configuration tree.SourceErrorclassTyped error indicating that a configuration source could not be read.Combinators
constantCaseconstConverts all string path segments to CONSTANT_CASE before lookup.mapInputconstTransforms the path segments before they reach the underlying store.nestedconstScopes a provider so that all lookups are prefixed with the given path segments.orElseconstReturns a provider that falls back to that when self returns undefined for a path.Configproviders
fromDirconstCreates a ConfigProvider that reads configuration from a directory tree on disk, where each file is a leaf value and each directory is a container.fromDotEnvconstCreates a ConfigProvider by reading and parsing a .env file from the file system.fromDotEnvContentsfunctionCreates a ConfigProvider by parsing the string contents of a .env file.fromEnvfunctionCreates a ConfigProvider backed by environment variables.fromUnknownfunctionCreates a ConfigProvider backed by an in-memory JavaScript value (typically a parsed JSON object).