@types/config 3.3.0 → 3.3.1

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 CHANGED
@@ -8,7 +8,7 @@ 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: Wed, 27 Jul 2022 07:32:19 GMT
11
+ * Last updated: Mon, 04 Sep 2023 15:41:06 GMT
12
12
  * Dependencies: none
13
13
  * Global values: none
14
14
 
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
@@ -7,12 +7,9 @@
7
7
  // Christian Vaagland Tellnes <https://github.com/tellnes>
8
8
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
9
9
 
10
-
11
-
12
10
  declare var c: c.IConfig;
13
11
 
14
12
  declare namespace c {
15
-
16
13
  // see https://github.com/lorenwest/node-config/wiki/Using-Config-Utilities
17
14
  interface IUtil {
18
15
  // Extend an object (and any object it contains) with one or more objects (and objects contained in them).
@@ -51,7 +48,7 @@ declare namespace c {
51
48
  * This allows module developers to attach their configurations onto the default configuration object
52
49
  * so they can be configured by the consumers of the module.
53
50
  */
54
- setModuleDefaults(moduleName:string, defaults:any): any;
51
+ setModuleDefaults(moduleName: string, defaults: any): any;
55
52
  }
56
53
 
57
54
  interface IConfig {
config/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/config",
3
- "version": "3.3.0",
3
+ "version": "3.3.1",
4
4
  "description": "TypeScript definitions for node-config",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/config",
6
6
  "license": "MIT",
@@ -40,6 +40,6 @@
40
40
  },
41
41
  "scripts": {},
42
42
  "dependencies": {},
43
- "typesPublisherContentHash": "9ad4681ae2e56a952b32e8c0c79a2881264c8aa766469a9be7c34d033268b5bd",
44
- "typeScriptVersion": "4.0"
43
+ "typesPublisherContentHash": "9615520df5108d403b7cca8a45e59dae6187d7113c359182b8c5717a11f204c5",
44
+ "typeScriptVersion": "4.3"
45
45
  }