forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnode-config-manager.d.ts
More file actions
26 lines (23 loc) · 837 Bytes
/
node-config-manager.d.ts
File metadata and controls
26 lines (23 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// 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/borisyankov/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;
}