@types/node 13.7.3 → 13.7.4
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/package.json +2 -2
- node/util.d.ts +13 -8
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: Wed, 19 Feb 2020 19:
|
|
11
|
+
* Last updated: Wed, 19 Feb 2020 19:24:16 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Buffer`, `Symbol`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
|
14
14
|
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "13.7.
|
|
3
|
+
"version": "13.7.4",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -236,6 +236,6 @@
|
|
|
236
236
|
},
|
|
237
237
|
"scripts": {},
|
|
238
238
|
"dependencies": {},
|
|
239
|
-
"typesPublisherContentHash": "
|
|
239
|
+
"typesPublisherContentHash": "ee528da3820e2c28a1fc11b1c6d081be644dd673dc70dd967e45423833c607a5",
|
|
240
240
|
"typeScriptVersion": "2.8"
|
|
241
241
|
}
|
node/util.d.ts
CHANGED
|
@@ -60,10 +60,6 @@ declare module "util" {
|
|
|
60
60
|
function deprecate<T extends Function>(fn: T, message: string, code?: string): T;
|
|
61
61
|
function isDeepStrictEqual(val1: any, val2: any): boolean;
|
|
62
62
|
|
|
63
|
-
interface CustomPromisify<TCustom extends Function> extends Function {
|
|
64
|
-
__promisify__: TCustom;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
63
|
function callbackify(fn: () => Promise<void>): (callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
68
64
|
function callbackify<TResult>(fn: () => Promise<TResult>): (callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void;
|
|
69
65
|
function callbackify<T1>(fn: (arg1: T1) => Promise<void>): (arg1: T1, callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
@@ -89,6 +85,16 @@ declare module "util" {
|
|
|
89
85
|
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise<TResult>
|
|
90
86
|
): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void;
|
|
91
87
|
|
|
88
|
+
interface CustomPromisifyLegacy<TCustom extends Function> extends Function {
|
|
89
|
+
__promisify__: TCustom;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
interface CustomPromisifySymbol<TCustom extends Function> extends Function {
|
|
93
|
+
[promisify.custom]: TCustom;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
type CustomPromisify<TCustom extends Function> = CustomPromisifySymbol<TCustom> | CustomPromisifyLegacy<TCustom>;
|
|
97
|
+
|
|
92
98
|
function promisify<TCustom extends Function>(fn: CustomPromisify<TCustom>): TCustom;
|
|
93
99
|
function promisify<TResult>(fn: (callback: (err: any, result: TResult) => void) => void): () => Promise<TResult>;
|
|
94
100
|
function promisify(fn: (callback: (err?: any) => void) => void): () => Promise<void>;
|
|
@@ -111,6 +117,9 @@ declare module "util" {
|
|
|
111
117
|
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err?: any) => void) => void,
|
|
112
118
|
): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<void>;
|
|
113
119
|
function promisify(fn: Function): Function;
|
|
120
|
+
namespace promisify {
|
|
121
|
+
const custom: unique symbol;
|
|
122
|
+
}
|
|
114
123
|
|
|
115
124
|
namespace types {
|
|
116
125
|
function isAnyArrayBuffer(object: any): boolean;
|
|
@@ -183,8 +192,4 @@ declare module "util" {
|
|
|
183
192
|
encode(input?: string): Uint8Array;
|
|
184
193
|
encodeInto(input: string, output: Uint8Array): EncodeIntoResult;
|
|
185
194
|
}
|
|
186
|
-
|
|
187
|
-
namespace promisify {
|
|
188
|
-
const custom: unique symbol;
|
|
189
|
-
}
|
|
190
195
|
}
|