@types/config 0.0.35 → 0.0.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- config/LICENSE +21 -21
- config/README.md +4 -4
- config/async.d.ts +8 -0
- config/defer.d.ts +0 -0
- config/index.d.ts +3 -2
- config/package.json +10 -4
- config/raw.d.ts +6 -1
config/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Microsoft Corporation.
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Microsoft Corporation.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE
|
config/README.md
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
This package contains type definitions for node-config (https://github.com/lorenwest/node-config).
|
|
6
6
|
|
|
7
7
|
# Details
|
|
8
|
-
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/config
|
|
8
|
+
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/config.
|
|
9
9
|
|
|
10
|
-
Additional Details
|
|
11
|
-
* Last updated:
|
|
10
|
+
### Additional Details
|
|
11
|
+
* Last updated: Tue, 06 Jul 2021 18:05:59 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: none
|
|
14
14
|
|
|
15
15
|
# Credits
|
|
16
|
-
These definitions were written by Roman Korneev
|
|
16
|
+
These definitions were written by [Roman Korneev](https://github.com/RWander), [Forrest Bice](https://github.com/forrestbice), [James Donald](https://github.com/jndonald3), [Alberto Vasquez](https://github.com/albertovasquez), and [Christian Vaagland Tellnes](https://github.com/tellnes).
|
config/async.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IConfig } from './';
|
|
2
|
+
|
|
3
|
+
type AsyncFunction<T,R> = (this: IConfig, config: string, origValue: T) => Promise<R>;
|
|
4
|
+
|
|
5
|
+
export function asyncConfig<R>(promise: Promise<any>): Promise<R>;
|
|
6
|
+
export function asyncConfig<T, R>(func: AsyncFunction<T, R>): Promise<R>;
|
|
7
|
+
export function resolveAsyncConfigs(config: IConfig): Promise<IConfig>;
|
|
8
|
+
|
config/defer.d.ts
CHANGED
|
File without changes
|
config/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
// Forrest Bice <https://github.com/forrestbice>
|
|
5
5
|
// James Donald <https://github.com/jndonald3>
|
|
6
6
|
// Alberto Vasquez <https://github.com/albertovasquez>
|
|
7
|
+
// Christian Vaagland Tellnes <https://github.com/tellnes>
|
|
7
8
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
8
9
|
|
|
9
10
|
|
|
@@ -36,7 +37,7 @@ declare namespace c {
|
|
|
36
37
|
getEnv(varName: string): string;
|
|
37
38
|
|
|
38
39
|
// Return the config for the project based on directory param if not directory then return default one (config).
|
|
39
|
-
loadFileConfigs(configDir
|
|
40
|
+
loadFileConfigs(configDir?: string): any;
|
|
40
41
|
|
|
41
42
|
// Return the sources for the configurations
|
|
42
43
|
getConfigSources(): IConfigSource[];
|
|
@@ -60,7 +61,7 @@ declare namespace c {
|
|
|
60
61
|
|
|
61
62
|
interface IConfigSource {
|
|
62
63
|
name: string;
|
|
63
|
-
original?: string;
|
|
64
|
+
original?: string | undefined;
|
|
64
65
|
parsed: any;
|
|
65
66
|
}
|
|
66
67
|
}
|
config/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/config",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.39",
|
|
4
4
|
"description": "TypeScript definitions for node-config",
|
|
5
|
+
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/config",
|
|
5
6
|
"license": "MIT",
|
|
6
7
|
"contributors": [
|
|
7
8
|
{
|
|
@@ -23,10 +24,15 @@
|
|
|
23
24
|
"name": "Alberto Vasquez",
|
|
24
25
|
"url": "https://github.com/albertovasquez",
|
|
25
26
|
"githubUsername": "albertovasquez"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "Christian Vaagland Tellnes",
|
|
30
|
+
"url": "https://github.com/tellnes",
|
|
31
|
+
"githubUsername": "tellnes"
|
|
26
32
|
}
|
|
27
33
|
],
|
|
28
34
|
"main": "",
|
|
29
|
-
"types": "index",
|
|
35
|
+
"types": "index.d.ts",
|
|
30
36
|
"repository": {
|
|
31
37
|
"type": "git",
|
|
32
38
|
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
|
@@ -34,6 +40,6 @@
|
|
|
34
40
|
},
|
|
35
41
|
"scripts": {},
|
|
36
42
|
"dependencies": {},
|
|
37
|
-
"typesPublisherContentHash": "
|
|
38
|
-
"typeScriptVersion": "
|
|
43
|
+
"typesPublisherContentHash": "9b7e5e50a7802ba9bffad3071a03bca36ca9adc7f6ca2e90cdfebb8227e36770",
|
|
44
|
+
"typeScriptVersion": "3.6"
|
|
39
45
|
}
|
config/raw.d.ts
CHANGED
|
@@ -2,4 +2,9 @@
|
|
|
2
2
|
* See: https://github.com/lorenwest/node-config/wiki/Special-features-for-JavaScript-configuration-files#using-promises-processstdout-and-other-objects-in-javascript-config-files
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
export
|
|
5
|
+
export class RawConfig<T> {
|
|
6
|
+
constructor(rawObj: T);
|
|
7
|
+
resolve(): T;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export function raw<T>(obj: T): RawConfig<T>;
|