@types/node 12.11.5 → 12.11.6

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.
node/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (http://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node
9
9
 
10
10
  Additional Details
11
- * Last updated: Tue, 22 Oct 2019 21:00:17 GMT
11
+ * Last updated: Wed, 23 Oct 2019 22:10:09 GMT
12
12
  * Dependencies: none
13
13
  * Global values: Buffer, NodeJS, Symbol, __dirname, __filename, clearImmediate, clearInterval, clearTimeout, console, exports, global, module, process, queueMicrotask, require, setImmediate, setInterval, setTimeout
14
14
 
node/globals.d.ts CHANGED
@@ -1154,4 +1154,8 @@ declare namespace NodeJS {
1154
1154
 
1155
1155
  type TypedArray = Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array | Int8Array | Int16Array | Int32Array | Float32Array | Float64Array;
1156
1156
  type ArrayBufferView = TypedArray | DataView;
1157
+
1158
+ // The value type here is a "poor man's `unknown`". When these types support TypeScript
1159
+ // 3.0+, we can replace this with `unknown`.
1160
+ type PoorMansUnknown = {} | null | undefined;
1157
1161
  }
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "12.11.5",
3
+ "version": "12.11.6",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -211,6 +211,6 @@
211
211
  },
212
212
  "scripts": {},
213
213
  "dependencies": {},
214
- "typesPublisherContentHash": "a0748f68d9a61c534ca029a8a1dc9e6baaf3ca92dfb5e6f1250d6328dbb262c8",
214
+ "typesPublisherContentHash": "0d7c969086f55de8eae546ec29386e26049c7e43c687bebf68a52882a1dde37d",
215
215
  "typeScriptVersion": "2.0"
216
216
  }
node/querystring.d.ts CHANGED
@@ -11,10 +11,7 @@ declare module "querystring" {
11
11
  interface ParsedUrlQuery { [key: string]: string | string[]; }
12
12
 
13
13
  interface ParsedUrlQueryInput {
14
- [key: string]:
15
- // The value type here is a "poor man's `unknown`". When these types support TypeScript
16
- // 3.0+, we can replace this with `unknown`.
17
- {} | null | undefined;
14
+ [key: string]: NodeJS.PoorMansUnknown;
18
15
  }
19
16
 
20
17
  function stringify(obj?: ParsedUrlQueryInput, sep?: string, eq?: string, options?: StringifyOptions): string;
node/tty.d.ts CHANGED
@@ -45,7 +45,8 @@ declare module "tty" {
45
45
  /**
46
46
  * Moves this WriteStream's cursor to the specified position.
47
47
  */
48
- cursorTo(x: number, y: number, callback?: () => void): boolean;
48
+ cursorTo(x: number, y?: number, callback?: () => void): boolean;
49
+ cursorTo(x: number, callback: () => void): boolean;
49
50
  /**
50
51
  * Moves this WriteStream's cursor relative to its current position.
51
52
  */
node/util.d.ts CHANGED
@@ -84,23 +84,25 @@ declare module "util" {
84
84
  ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void;
85
85
 
86
86
  function promisify<TCustom extends Function>(fn: CustomPromisify<TCustom>): TCustom;
87
- function promisify<TResult>(fn: (callback: (err: Error | null, result: TResult) => void) => void): () => Promise<TResult>;
88
- function promisify(fn: (callback: (err?: Error | null) => void) => void): () => Promise<void>;
89
- function promisify<T1, TResult>(fn: (arg1: T1, callback: (err: Error | null, result: TResult) => void) => void): (arg1: T1) => Promise<TResult>;
90
- function promisify<T1>(fn: (arg1: T1, callback: (err?: Error | null) => void) => void): (arg1: T1) => Promise<void>;
91
- function promisify<T1, T2, TResult>(fn: (arg1: T1, arg2: T2, callback: (err: Error | null, result: TResult) => void) => void): (arg1: T1, arg2: T2) => Promise<TResult>;
92
- function promisify<T1, T2>(fn: (arg1: T1, arg2: T2, callback: (err?: Error | null) => void) => void): (arg1: T1, arg2: T2) => Promise<void>;
93
- function promisify<T1, T2, T3, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err: Error | null, result: TResult) => void) => void): (arg1: T1, arg2: T2, arg3: T3) => Promise<TResult>;
94
- function promisify<T1, T2, T3>(fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err?: Error | null) => void) => void): (arg1: T1, arg2: T2, arg3: T3) => Promise<void>;
87
+ function promisify<TResult>(fn: (callback: (err: NodeJS.PoorMansUnknown, result: TResult) => void) => void): () => Promise<TResult>;
88
+ function promisify(fn: (callback: (err?: NodeJS.PoorMansUnknown) => void) => void): () => Promise<void>;
89
+ function promisify<T1, TResult>(fn: (arg1: T1, callback: (err: NodeJS.PoorMansUnknown, result: TResult) => void) => void): (arg1: T1) => Promise<TResult>;
90
+ function promisify<T1>(fn: (arg1: T1, callback: (err?: NodeJS.PoorMansUnknown) => void) => void): (arg1: T1) => Promise<void>;
91
+ function promisify<T1, T2, TResult>(fn: (arg1: T1, arg2: T2, callback: (err: NodeJS.PoorMansUnknown, result: TResult) => void) => void): (arg1: T1, arg2: T2) => Promise<TResult>;
92
+ function promisify<T1, T2>(fn: (arg1: T1, arg2: T2, callback: (err?: NodeJS.PoorMansUnknown) => void) => void): (arg1: T1, arg2: T2) => Promise<void>;
93
+ function promisify<T1, T2, T3, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err: NodeJS.PoorMansUnknown, result: TResult) => void) => void):
94
+ (arg1: T1, arg2: T2, arg3: T3) => Promise<TResult>;
95
+ function promisify<T1, T2, T3>(fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err?: NodeJS.PoorMansUnknown) => void) => void): (arg1: T1, arg2: T2, arg3: T3) => Promise<void>;
95
96
  function promisify<T1, T2, T3, T4, TResult>(
96
- fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: Error | null, result: TResult) => void) => void,
97
+ fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: NodeJS.PoorMansUnknown, result: TResult) => void) => void,
97
98
  ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<TResult>;
98
- function promisify<T1, T2, T3, T4>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err?: Error | null) => void) => void): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<void>;
99
+ function promisify<T1, T2, T3, T4>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err?: NodeJS.PoorMansUnknown) => void) => void):
100
+ (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<void>;
99
101
  function promisify<T1, T2, T3, T4, T5, TResult>(
100
- fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: Error | null, result: TResult) => void) => void,
102
+ fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: NodeJS.PoorMansUnknown, result: TResult) => void) => void,
101
103
  ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<TResult>;
102
104
  function promisify<T1, T2, T3, T4, T5>(
103
- fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err?: Error | null) => void) => void,
105
+ fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err?: NodeJS.PoorMansUnknown) => void) => void,
104
106
  ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<void>;
105
107
  function promisify(fn: Function): Function;
106
108