ConfigurationFiles

variable

Types and utilities for working with configuration files.

Methods

getJsonFileConfigLoader(filename: string, transform?: (json: any) => T, writeTransform?: (json: any, config: T) => any): ConfigurationProvider<T>

A factory function to create simple configuration providers that load configuration from a JSON file.

getPackageJsonConfigurationLoader(key: string): ConfigurationProvider<T>

A factory function to create a configuration provider that loads configuration from a package.json file.

isAggregateConfigProvider(provider: AnyConfigProvider<T>): provider is AggregateConfigProvider<T>

Type guard to distinguish an AggregateConfigProvider from a ConfigurationProvider.