@types/config 0.0.36 → 0.0.40

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 CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) Microsoft Corporation. All rights reserved.
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: Thu, 07 Nov 2019 19:27:31 GMT
10
+ ### Additional Details
11
+ * Last updated: Thu, 28 Oct 2021 22:31:22 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>, and Alberto Vasquez <https://github.com/albertovasquez>.
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: string): any;
40
+ loadFileConfigs(configDir?: string): any;
40
41
 
41
42
  // Return the sources for the configurations
42
43
  getConfigSources(): IConfigSource[];
@@ -45,9 +46,8 @@ declare namespace c {
45
46
  toObject(config?: any): any;
46
47
 
47
48
  /**
48
- * This allows module developers to attach their configurations onto
49
- * the 6 years agoInitial 0.4 checkin default configuration object so
50
- * they can be configured by the consumers of the module.
49
+ * This allows module developers to attach their configurations onto the default configuration object
50
+ * so they can be configured by the consumers of the module.
51
51
  */
52
52
  setModuleDefaults(moduleName:string, defaults:any): any;
53
53
  }
@@ -60,7 +60,7 @@ declare namespace c {
60
60
 
61
61
  interface IConfigSource {
62
62
  name: string;
63
- original?: string;
63
+ original?: string | undefined;
64
64
  parsed: any;
65
65
  }
66
66
  }
config/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@types/config",
3
- "version": "0.0.36",
3
+ "version": "0.0.40",
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,6 +24,11 @@
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": "",
@@ -34,6 +40,6 @@
34
40
  },
35
41
  "scripts": {},
36
42
  "dependencies": {},
37
- "typesPublisherContentHash": "7b330a392ec054c7fa535d15a5b772013c97f7c7cfd645169796d9aac7f09cb7",
38
- "typeScriptVersion": "2.8"
43
+ "typesPublisherContentHash": "dff6fd3792138cdba8ead3884c2c30fb1da0a4af5f4752b6503089d6edfeb0dd",
44
+ "typeScriptVersion": "3.7"
39
45
  }
config/raw.d.ts CHANGED
File without changes