@types/config 0.0.37 → 0.0.41

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
File without changes
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: Mon, 23 Nov 2020 21:40:14 GMT
11
+ * Last updated: Mon, 03 Jan 2022 18:01:24 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
 
@@ -16,6 +17,8 @@ declare namespace c {
16
17
  interface IUtil {
17
18
  // Extend an object (and any object it contains) with one or more objects (and objects contained in them).
18
19
  extendDeep(mergeInto: any, mergeFrom: any, depth?: number): any;
20
+ extendDeep(mergeInto: any, mergeFrom1: any, mergeFrom2: any, depth?: number): any;
21
+ extendDeep(mergeInto: any, ...mergeFrom: any): any;
19
22
 
20
23
  // Return a deep copy of the specified object.
21
24
  cloneDeep(copyFrom: any, depth?: number): any;
@@ -40,14 +43,13 @@ declare namespace c {
40
43
 
41
44
  // Return the sources for the configurations
42
45
  getConfigSources(): IConfigSource[];
43
-
46
+
44
47
  // Returns a new deep copy of the current config object, or any part of the config if provided.
45
48
  toObject(config?: any): any;
46
49
 
47
50
  /**
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.
51
+ * This allows module developers to attach their configurations onto the default configuration object
52
+ * so they can be configured by the consumers of the module.
51
53
  */
52
54
  setModuleDefaults(moduleName:string, defaults:any): any;
53
55
  }
@@ -60,7 +62,7 @@ declare namespace c {
60
62
 
61
63
  interface IConfigSource {
62
64
  name: string;
63
- original?: string;
65
+ original?: string | undefined;
64
66
  parsed: any;
65
67
  }
66
68
  }
config/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@types/config",
3
- "version": "0.0.37",
3
+ "version": "0.0.41",
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": "f1cba5456c2dcc0f4ba755bc97a1d22f7c7f978ae0a54169a2aef6428cf8500b",
38
- "typeScriptVersion": "3.3"
43
+ "typesPublisherContentHash": "f41e82aaf2360ac17b38edb13f8dfdab6febeb7de0891b7f8844340867edad42",
44
+ "typeScriptVersion": "3.8"
39
45
  }
config/raw.d.ts CHANGED
File without changes