@types/node 12.20.49 → 12.20.52
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 v12.20/README.md +1 -1
- node v12.20/async_hooks.d.ts +1 -1
- node v12.20/globals.d.ts +7 -7
- node v12.20/index.d.ts +1 -1
- node v12.20/inspector.d.ts +1 -1
- node v12.20/net.d.ts +5 -0
- node v12.20/package.json +2 -2
- node v12.20/timers.d.ts +3 -3
node v12.20/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v12.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Thu, 12 May 2022 21:31:47 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Buffer`, `NodeJS`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
|
14
14
|
|
node v12.20/async_hooks.d.ts
CHANGED
|
@@ -111,7 +111,7 @@ declare module 'async_hooks' {
|
|
|
111
111
|
* @param type The type of async event.
|
|
112
112
|
* @param triggerAsyncId The ID of the execution context that created
|
|
113
113
|
* this async event (default: `executionAsyncId()`), or an
|
|
114
|
-
* AsyncResourceOptions object (since
|
|
114
|
+
* AsyncResourceOptions object (since v9.3.0)
|
|
115
115
|
*/
|
|
116
116
|
constructor(type: string, triggerAsyncId?: number|AsyncResourceOptions);
|
|
117
117
|
|
node v12.20/globals.d.ts
CHANGED
|
@@ -179,15 +179,15 @@ declare namespace setTimeout {
|
|
|
179
179
|
function __promisify__(ms: number): Promise<void>;
|
|
180
180
|
function __promisify__<T>(ms: number, value: T): Promise<T>;
|
|
181
181
|
}
|
|
182
|
-
declare function clearTimeout(timeoutId: NodeJS.Timeout): void;
|
|
182
|
+
declare function clearTimeout(timeoutId: NodeJS.Timeout | undefined): void;
|
|
183
183
|
declare function setInterval(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timeout;
|
|
184
|
-
declare function clearInterval(intervalId: NodeJS.Timeout): void;
|
|
184
|
+
declare function clearInterval(intervalId: NodeJS.Timeout | undefined): void;
|
|
185
185
|
declare function setImmediate(callback: (...args: any[]) => void, ...args: any[]): NodeJS.Immediate;
|
|
186
186
|
declare namespace setImmediate {
|
|
187
187
|
function __promisify__(): Promise<void>;
|
|
188
188
|
function __promisify__<T>(value: T): Promise<T>;
|
|
189
189
|
}
|
|
190
|
-
declare function clearImmediate(immediateId: NodeJS.Immediate): void;
|
|
190
|
+
declare function clearImmediate(immediateId: NodeJS.Immediate | undefined): void;
|
|
191
191
|
|
|
192
192
|
declare function queueMicrotask(callback: () => void): void;
|
|
193
193
|
|
|
@@ -230,11 +230,11 @@ interface NodeModule {
|
|
|
230
230
|
id: string;
|
|
231
231
|
filename: string;
|
|
232
232
|
loaded: boolean;
|
|
233
|
-
/** @deprecated since
|
|
233
|
+
/** @deprecated since v12.19.0 Please use `require.main` and `module.children` instead. */
|
|
234
234
|
parent: NodeModule | null | undefined;
|
|
235
235
|
children: NodeModule[];
|
|
236
236
|
/**
|
|
237
|
-
* @since
|
|
237
|
+
* @since v11.14.0
|
|
238
238
|
*
|
|
239
239
|
* The directory name of the module. This is usually the same as the path.dirname() of the module.id.
|
|
240
240
|
*/
|
|
@@ -1317,11 +1317,11 @@ declare namespace NodeJS {
|
|
|
1317
1317
|
id: string;
|
|
1318
1318
|
filename: string;
|
|
1319
1319
|
loaded: boolean;
|
|
1320
|
-
/** @deprecated since
|
|
1320
|
+
/** @deprecated since v12.19.0 Please use `require.main` and `module.children` instead. */
|
|
1321
1321
|
parent: Module | null | undefined;
|
|
1322
1322
|
children: Module[];
|
|
1323
1323
|
/**
|
|
1324
|
-
* @since
|
|
1324
|
+
* @since v11.14.0
|
|
1325
1325
|
*
|
|
1326
1326
|
* The directory name of the module. This is usually the same as the path.dirname() of the module.id.
|
|
1327
1327
|
*/
|
node v12.20/index.d.ts
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
|
|
40
40
|
// NOTE: These definitions support NodeJS and TypeScript 3.7.
|
|
41
41
|
// This isn't strictly needed since 3.7 has the assert module, but this way we're consistent.
|
|
42
|
-
// Typically type
|
|
42
|
+
// Typically type modifications should be made in base.d.ts instead of here
|
|
43
43
|
|
|
44
44
|
// Reference required types from the default lib:
|
|
45
45
|
/// <reference lib="es2018" />
|
node v12.20/inspector.d.ts
CHANGED
|
@@ -1917,7 +1917,7 @@ declare module 'inspector' {
|
|
|
1917
1917
|
* Connects a session to the main thread inspector back-end.
|
|
1918
1918
|
* An exception will be thrown if this API was not called on a Worker
|
|
1919
1919
|
* thread.
|
|
1920
|
-
* @since
|
|
1920
|
+
* @since v12.11.0
|
|
1921
1921
|
*/
|
|
1922
1922
|
connectToMainThread(): void;
|
|
1923
1923
|
|
node v12.20/net.d.ts
CHANGED
|
@@ -96,6 +96,11 @@ declare module 'net' {
|
|
|
96
96
|
readonly remoteAddress?: string | undefined;
|
|
97
97
|
readonly remoteFamily?: string | undefined;
|
|
98
98
|
readonly remotePort?: number | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* The socket timeout in milliseconds as set by socket.setTimeout(). It is undefined if a timeout has not been set.
|
|
101
|
+
* @since v10.7.0
|
|
102
|
+
*/
|
|
103
|
+
readonly timeout?: number | undefined;
|
|
99
104
|
|
|
100
105
|
// Extended base methods
|
|
101
106
|
end(cb?: () => void): this;
|
node v12.20/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "12.20.
|
|
3
|
+
"version": "12.20.52",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -190,6 +190,6 @@
|
|
|
190
190
|
},
|
|
191
191
|
"scripts": {},
|
|
192
192
|
"dependencies": {},
|
|
193
|
-
"typesPublisherContentHash": "
|
|
193
|
+
"typesPublisherContentHash": "ff0fbd6a0d46cf1013682f942090aff6f92f09499ceb8e02c618e8def1f4a1af",
|
|
194
194
|
"typeScriptVersion": "3.9"
|
|
195
195
|
}
|
node v12.20/timers.d.ts
CHANGED
|
@@ -4,13 +4,13 @@ declare module 'timers' {
|
|
|
4
4
|
function __promisify__(ms: number): Promise<void>;
|
|
5
5
|
function __promisify__<T>(ms: number, value: T): Promise<T>;
|
|
6
6
|
}
|
|
7
|
-
function clearTimeout(timeoutId: NodeJS.Timeout): void;
|
|
7
|
+
function clearTimeout(timeoutId: NodeJS.Timeout | undefined): void;
|
|
8
8
|
function setInterval(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timeout;
|
|
9
|
-
function clearInterval(intervalId: NodeJS.Timeout): void;
|
|
9
|
+
function clearInterval(intervalId: NodeJS.Timeout | undefined): void;
|
|
10
10
|
function setImmediate(callback: (...args: any[]) => void, ...args: any[]): NodeJS.Immediate;
|
|
11
11
|
namespace setImmediate {
|
|
12
12
|
function __promisify__(): Promise<void>;
|
|
13
13
|
function __promisify__<T>(value: T): Promise<T>;
|
|
14
14
|
}
|
|
15
|
-
function clearImmediate(immediateId: NodeJS.Immediate): void;
|
|
15
|
+
function clearImmediate(immediateId: NodeJS.Immediate | undefined): void;
|
|
16
16
|
}
|