Skip to content

Commit eb16471

Browse files
committed
Added the missing store members and the json_spacing file option
1 parent e90cd2e commit eb16471

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

nconf.d.ts

+10-7
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,10 @@
3030
export function path(key: any): any[];
3131
export function loadFiles(files: any, callback?: ICallbackFunction);
3232
export function loadFilesSync(files: any, callback?: ICallbackFunction);
33-
34-
export enum formats
35-
{
36-
json,
37-
ini
33+
34+
export enum formats {
35+
json,
36+
ini
3837
}
3938

4039
export interface IOptions {
@@ -45,6 +44,7 @@
4544
file?: string;
4645
dir?: string;
4746
search?: bool;
47+
json_spacing?: number;
4848
}
4949

5050

@@ -82,8 +82,11 @@
8282

8383

8484
export interface IStore {
85+
type: string;
8586
get (key: string): any;
8687
set (key: string, value: any): bool;
87-
}
88-
88+
clear(key: string): bool;
89+
merge(key: string, value: any): bool;
90+
reset(callback?: ICallbackFunction): bool
91+
};
8992
}

0 commit comments

Comments
 (0)