@types/config 0.0.37 → 0.0.38
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/README.md +2 -2
- config/async.d.ts +8 -0
- config/index.d.ts +1 -0
- config/package.json +7 -2
config/README.md
CHANGED
|
@@ -8,9 +8,9 @@ This package contains type definitions for node-config (https://github.com/loren
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/config.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Thu, 07 Jan 2021 13:04:47 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: none
|
|
14
14
|
|
|
15
15
|
# Credits
|
|
16
|
-
These definitions were written by [Roman Korneev](https://github.com/RWander), [Forrest Bice](https://github.com/forrestbice), [James Donald](https://github.com/jndonald3),
|
|
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/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
|
|
config/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/config",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.38",
|
|
4
4
|
"description": "TypeScript definitions for node-config",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -23,6 +23,11 @@
|
|
|
23
23
|
"name": "Alberto Vasquez",
|
|
24
24
|
"url": "https://github.com/albertovasquez",
|
|
25
25
|
"githubUsername": "albertovasquez"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "Christian Vaagland Tellnes",
|
|
29
|
+
"url": "https://github.com/tellnes",
|
|
30
|
+
"githubUsername": "tellnes"
|
|
26
31
|
}
|
|
27
32
|
],
|
|
28
33
|
"main": "",
|
|
@@ -34,6 +39,6 @@
|
|
|
34
39
|
},
|
|
35
40
|
"scripts": {},
|
|
36
41
|
"dependencies": {},
|
|
37
|
-
"typesPublisherContentHash": "
|
|
42
|
+
"typesPublisherContentHash": "3cb15de0e628a17fd2691bd293ef248cbbe74814c134718e63cce8f3f9e73b71",
|
|
38
43
|
"typeScriptVersion": "3.3"
|
|
39
44
|
}
|