mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
27 lines
841 B
TypeScript
27 lines
841 B
TypeScript
// Type definitions for node-config-manager 1.0.2
|
|
// Project: https://www.npmjs.com/package/node-config-manager
|
|
// Definitions by: TANAKA Koichi <https://gitnub.com/mugeso/>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
declare module "node-config-manager" {
|
|
interface Options {
|
|
configDir: string;
|
|
env: string;
|
|
camelCase: boolean;
|
|
}
|
|
|
|
interface ConfigManager {
|
|
init(options: Options): ConfigManager;
|
|
set(key: string, value: string|boolean): ConfigManager;
|
|
get(key: string): string|boolean;
|
|
addConfig(configName: string): ConfigManager;
|
|
getConfig(configName: string): any;
|
|
removeConfig(configName: string): ConfigManager;
|
|
count(): number;
|
|
method: any;
|
|
}
|
|
|
|
var cfgManager: ConfigManager;
|
|
export = cfgManager;
|
|
}
|