@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 +1 -1
- node/globals.d.ts +4 -0
- node/package.json +2 -2
- node/querystring.d.ts +1 -4
- node/tty.d.ts +2 -1
- node/util.d.ts +14 -12
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:
|
|
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.
|
|
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": "
|
|
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
|
|
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:
|
|
88
|
-
function promisify(fn: (callback: (err?:
|
|
89
|
-
function promisify<T1, TResult>(fn: (arg1: T1, callback: (err:
|
|
90
|
-
function promisify<T1>(fn: (arg1: T1, callback: (err?:
|
|
91
|
-
function promisify<T1, T2, TResult>(fn: (arg1: T1, arg2: T2, callback: (err:
|
|
92
|
-
function promisify<T1, T2>(fn: (arg1: T1, arg2: T2, callback: (err?:
|
|
93
|
-
function promisify<T1, T2, T3, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err:
|
|
94
|
-
|
|
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:
|
|
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?:
|
|
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:
|
|
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?:
|
|
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
|
|