mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-13 05:20:25 +00:00
move old version to v1 sub-dir
This commit is contained in:
@@ -4,18 +4,18 @@ const conf = new Conf<string | number | boolean>();
|
||||
new Conf<string>({
|
||||
defaults: {
|
||||
foo: 'bar',
|
||||
unicorn: 'rainbow'
|
||||
unicorn: 'rainbow',
|
||||
},
|
||||
configName: '',
|
||||
projectName: 'foo',
|
||||
cwd: ''
|
||||
cwd: '',
|
||||
});
|
||||
// $ExpectError
|
||||
new Conf<string>({
|
||||
defaults: {
|
||||
foo: 'bar',
|
||||
unicorn: ['rainbow']
|
||||
}
|
||||
unicorn: ['rainbow'],
|
||||
},
|
||||
});
|
||||
conf.set('foo', 'bar');
|
||||
conf.set('hello', 1);
|
||||
@@ -31,7 +31,7 @@ conf.clear();
|
||||
|
||||
conf.store = {
|
||||
foo: 'bar',
|
||||
unicorn: 'rainbow'
|
||||
unicorn: 'rainbow',
|
||||
};
|
||||
conf.path; // $ExpectType string
|
||||
|
||||
@@ -9,10 +9,15 @@
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"baseUrl": "../../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
"../../"
|
||||
],
|
||||
"paths": {
|
||||
"conf": [
|
||||
"conf/v1"
|
||||
]
|
||||
},
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
@@ -21,4 +26,4 @@
|
||||
"index.d.ts",
|
||||
"conf-tests.ts"
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user