The environment key type. Defaults to EnvironmentType.
The configuration object type. Defaults to Config.
Creates an instance of ConfigLoaderDirector.
The environment key type. Defaults to EnvironmentType.
The configuration object type. Defaults to Config.
The pool of configuration loaders to select from.
Customizes the logic to determine the current environment.
A callback function returning the environment.
The current director instance for method chaining.
Resolves the current environment. By default, it reads process.env.NODE_ENV.
The current environment value.
Resolves the loader from the pool and loads the configuration.
A promise resolving to the loaded configuration.
Coordinates the configuration loading process by querying the loader pool based on the resolved environment.
Example
Basic usage of ConfigLoaderDirector and ConfigLoaderPool to load configuration for a given environment