mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 07:40:10 +00:00
Add test for ConfigStoreOptions.configPath in @types/configstore
This commit is contained in:
@@ -5,6 +5,7 @@ let value: any;
|
||||
let key: string;
|
||||
let num: number;
|
||||
let object: any;
|
||||
let path: string;
|
||||
|
||||
cs.set(key, value);
|
||||
value = cs.get(key);
|
||||
@@ -13,4 +14,12 @@ cs.delete(key);
|
||||
object = cs.all;
|
||||
cs.all = object;
|
||||
num = cs.size;
|
||||
key = cs.path;
|
||||
path = cs.path;
|
||||
|
||||
const csWithPathOption = new Configstore('foo', null, { configPath: path });
|
||||
|
||||
csWithPathOption.set(key, value);
|
||||
value = csWithPathOption.get(key);
|
||||
csWithPathOption.delete(key);
|
||||
|
||||
key = csWithPathOption.path;
|
||||
|
||||
Reference in New Issue
Block a user