forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configstore.d.ts
38 lines (33 loc) · 839 Bytes
/
configstore.d.ts
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
27
28
29
30
31
32
33
34
35
36
37
38
// Type definitions for configstore 0.3.0
// Project: https://github.com/yeoman/configstore
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module 'configstore' {
/*
Set an item
*/
export function set(key: string, val: any): void;
/*
Get an item
*/
export function get(key: string): any;
/*
Delete an item
*/
export function del(key: string): void;
/*
Get all items as an object or replace the current config with an object:
conf.all = {
hello: 'world'
};
*/
export var all: Object;
/*
Get the item count
*/
export var size: number;
/*
Get the path to the config file. Can be used to show the user where the config file is located or even better open it for them.
*/
export var path: string;
}