i-do-config
Version:
Provide app configuration as key-value pairs from multiple providers. Inspired by ASP.net Core
17 lines (16 loc) • 718 B
TypeScript
import { IConfigurationValueProvider } from "./interfaces/i-configuration-value-provider";
import { IConfigurationValueProviderOptions } from "./interfaces/i-configuration-value-provider-options";
export declare abstract class ConfigurationProviderAbstract implements IConfigurationValueProvider {
protected options?: IConfigurationValueProviderOptions;
protected values: any;
readonly name: string;
constructor(options?: IConfigurationValueProviderOptions);
abstract getValue(key: string): boolean | number | string;
/**
* Get multiple values as key/value pairs
*
* @param key
*/
getSection(key: string): object;
sanitizeKey(key: string): string;
}