@types/config 3.3.0 → 3.3.2
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 +0 -0
- config/README.md +2 -3
- config/async.d.ts +2 -3
- config/defer.d.ts +2 -2
- config/index.d.ts +1 -13
- config/package.json +14 -14
- config/raw.d.ts +0 -0
config/LICENSE
CHANGED
|
File without changes
|
config/README.md
CHANGED
|
@@ -2,15 +2,14 @@
|
|
|
2
2
|
> `npm install --save @types/config`
|
|
3
3
|
|
|
4
4
|
# Summary
|
|
5
|
-
This package contains type definitions for
|
|
5
|
+
This package contains type definitions for config (https://github.com/lorenwest/node-config).
|
|
6
6
|
|
|
7
7
|
# Details
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/config.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated: Wed,
|
|
11
|
+
* Last updated: Wed, 18 Oct 2023 18:04:03 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
|
-
* Global values: none
|
|
14
13
|
|
|
15
14
|
# Credits
|
|
16
15
|
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
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { IConfig } from
|
|
1
|
+
import { IConfig } from "./";
|
|
2
2
|
|
|
3
|
-
type AsyncFunction<T,R> = (this: IConfig, config: string, origValue: T) => Promise<R>;
|
|
3
|
+
type AsyncFunction<T, R> = (this: IConfig, config: string, origValue: T) => Promise<R>;
|
|
4
4
|
|
|
5
5
|
export function asyncConfig<R>(promise: Promise<any>): Promise<R>;
|
|
6
6
|
export function asyncConfig<T, R>(func: AsyncFunction<T, R>): Promise<R>;
|
|
7
7
|
export function resolveAsyncConfigs(config: IConfig): Promise<IConfig>;
|
|
8
|
-
|
config/defer.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
type DeferFunction<T,R> = (this: any, origValue: T) => R;
|
|
1
|
+
type DeferFunction<T, R> = (this: any, origValue: T) => R;
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
* Allows a config value to be deferred for later. The original config object is passed
|
|
5
5
|
* into func as "this".
|
|
6
6
|
* See: https://github.com/lorenwest/node-config/wiki/Special-features-for-JavaScript-configuration-files#deferred-values-in-javascript-configuration-files
|
|
7
7
|
*/
|
|
8
|
-
export function deferConfig<T, R>(func: DeferFunction<T,R>): R;
|
|
8
|
+
export function deferConfig<T, R>(func: DeferFunction<T, R>): R;
|
config/index.d.ts
CHANGED
|
@@ -1,18 +1,6 @@
|
|
|
1
|
-
// Type definitions for node-config 3.3
|
|
2
|
-
// Project: https://github.com/lorenwest/node-config
|
|
3
|
-
// Definitions by: Roman Korneev <https://github.com/RWander>
|
|
4
|
-
// Forrest Bice <https://github.com/forrestbice>
|
|
5
|
-
// James Donald <https://github.com/jndonald3>
|
|
6
|
-
// Alberto Vasquez <https://github.com/albertovasquez>
|
|
7
|
-
// Christian Vaagland Tellnes <https://github.com/tellnes>
|
|
8
|
-
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
1
|
declare var c: c.IConfig;
|
|
13
2
|
|
|
14
3
|
declare namespace c {
|
|
15
|
-
|
|
16
4
|
// see https://github.com/lorenwest/node-config/wiki/Using-Config-Utilities
|
|
17
5
|
interface IUtil {
|
|
18
6
|
// Extend an object (and any object it contains) with one or more objects (and objects contained in them).
|
|
@@ -51,7 +39,7 @@ declare namespace c {
|
|
|
51
39
|
* This allows module developers to attach their configurations onto the default configuration object
|
|
52
40
|
* so they can be configured by the consumers of the module.
|
|
53
41
|
*/
|
|
54
|
-
setModuleDefaults(moduleName:string, defaults:any): any;
|
|
42
|
+
setModuleDefaults(moduleName: string, defaults: any): any;
|
|
55
43
|
}
|
|
56
44
|
|
|
57
45
|
interface IConfig {
|
config/package.json
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/config",
|
|
3
|
-
"version": "3.3.
|
|
4
|
-
"description": "TypeScript definitions for
|
|
3
|
+
"version": "3.3.2",
|
|
4
|
+
"description": "TypeScript definitions for config",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/config",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"contributors": [
|
|
8
8
|
{
|
|
9
9
|
"name": "Roman Korneev",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
10
|
+
"githubUsername": "RWander",
|
|
11
|
+
"url": "https://github.com/RWander"
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
"name": "Forrest Bice",
|
|
15
|
-
"
|
|
16
|
-
"
|
|
15
|
+
"githubUsername": "forrestbice",
|
|
16
|
+
"url": "https://github.com/forrestbice"
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
"name": "James Donald",
|
|
20
|
-
"
|
|
21
|
-
"
|
|
20
|
+
"githubUsername": "jndonald3",
|
|
21
|
+
"url": "https://github.com/jndonald3"
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
"name": "Alberto Vasquez",
|
|
25
|
-
"
|
|
26
|
-
"
|
|
25
|
+
"githubUsername": "albertovasquez",
|
|
26
|
+
"url": "https://github.com/albertovasquez"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
"name": "Christian Vaagland Tellnes",
|
|
30
|
-
"
|
|
31
|
-
"
|
|
30
|
+
"githubUsername": "tellnes",
|
|
31
|
+
"url": "https://github.com/tellnes"
|
|
32
32
|
}
|
|
33
33
|
],
|
|
34
34
|
"main": "",
|
|
@@ -40,6 +40,6 @@
|
|
|
40
40
|
},
|
|
41
41
|
"scripts": {},
|
|
42
42
|
"dependencies": {},
|
|
43
|
-
"typesPublisherContentHash": "
|
|
44
|
-
"typeScriptVersion": "4.
|
|
43
|
+
"typesPublisherContentHash": "ae19e33d72a5fe40d7407e485530e3d5ebaf48260e86500189fb001e81d6e57b",
|
|
44
|
+
"typeScriptVersion": "4.5"
|
|
45
45
|
}
|
config/raw.d.ts
CHANGED
|
File without changes
|