@types/node 17.0.30 → 17.0.33
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/diagnostics_channel.d.ts +18 -0
- node/net.d.ts +5 -0
- node/package.json +2 -2
- node/timers.d.ts +3 -3
node/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.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated: Thu,
|
|
11
|
+
* Last updated: Thu, 12 May 2022 21:31:45 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
|
|
14
14
|
|
node/diagnostics_channel.d.ts
CHANGED
|
@@ -89,6 +89,24 @@ declare module 'diagnostics_channel' {
|
|
|
89
89
|
*/
|
|
90
90
|
readonly hasSubscribers: boolean;
|
|
91
91
|
private constructor(name: string);
|
|
92
|
+
/**
|
|
93
|
+
* Publish a message to any subscribers to the channel. This will
|
|
94
|
+
* trigger message handlers synchronously so they will execute within
|
|
95
|
+
* the same context.
|
|
96
|
+
*
|
|
97
|
+
* ```js
|
|
98
|
+
* import diagnostics_channel from 'diagnostics_channel';
|
|
99
|
+
*
|
|
100
|
+
* const channel = diagnostics_channel.channel('my-channel');
|
|
101
|
+
*
|
|
102
|
+
* channel.publish({
|
|
103
|
+
* some: 'message'
|
|
104
|
+
* });
|
|
105
|
+
* ```
|
|
106
|
+
* @since v15.1.0, v14.17.0
|
|
107
|
+
* @param message The message to send to the channel subscribers
|
|
108
|
+
*/
|
|
109
|
+
publish(message: unknown): void;
|
|
92
110
|
/**
|
|
93
111
|
* Register a message handler to subscribe to this channel. This message handler
|
|
94
112
|
* will be run synchronously whenever a message is published to the channel. Any
|
node/net.d.ts
CHANGED
|
@@ -285,6 +285,11 @@ declare module 'net' {
|
|
|
285
285
|
* @since v0.5.10
|
|
286
286
|
*/
|
|
287
287
|
readonly remotePort?: number | undefined;
|
|
288
|
+
/**
|
|
289
|
+
* The socket timeout in milliseconds as set by socket.setTimeout(). It is undefined if a timeout has not been set.
|
|
290
|
+
* @since v10.7.0
|
|
291
|
+
*/
|
|
292
|
+
readonly timeout?: number | undefined;
|
|
288
293
|
/**
|
|
289
294
|
* Half-closes the socket. i.e., it sends a FIN packet. It is possible the
|
|
290
295
|
* server will still send some data.
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.33",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -215,6 +215,6 @@
|
|
|
215
215
|
},
|
|
216
216
|
"scripts": {},
|
|
217
217
|
"dependencies": {},
|
|
218
|
-
"typesPublisherContentHash": "
|
|
218
|
+
"typesPublisherContentHash": "4778882a370648e38e15a0b0d8f0ea68f9f725cd6e3d968321a04ce552542d0f",
|
|
219
219
|
"typeScriptVersion": "3.9"
|
|
220
220
|
}
|
node/timers.d.ts
CHANGED
|
@@ -69,7 +69,7 @@ declare module 'timers' {
|
|
|
69
69
|
namespace setTimeout {
|
|
70
70
|
const __promisify__: typeof setTimeoutPromise;
|
|
71
71
|
}
|
|
72
|
-
function clearTimeout(timeoutId: NodeJS.Timeout): void;
|
|
72
|
+
function clearTimeout(timeoutId: NodeJS.Timeout | undefined): void;
|
|
73
73
|
function setInterval<TArgs extends any[]>(callback: (...args: TArgs) => void, ms?: number, ...args: TArgs): NodeJS.Timer;
|
|
74
74
|
// util.promisify no rest args compability
|
|
75
75
|
// tslint:disable-next-line void-return
|
|
@@ -77,7 +77,7 @@ declare module 'timers' {
|
|
|
77
77
|
namespace setInterval {
|
|
78
78
|
const __promisify__: typeof setIntervalPromise;
|
|
79
79
|
}
|
|
80
|
-
function clearInterval(intervalId: NodeJS.Timeout): void;
|
|
80
|
+
function clearInterval(intervalId: NodeJS.Timeout | undefined): void;
|
|
81
81
|
function setImmediate<TArgs extends any[]>(callback: (...args: TArgs) => void, ...args: TArgs): NodeJS.Immediate;
|
|
82
82
|
// util.promisify no rest args compability
|
|
83
83
|
// tslint:disable-next-line void-return
|
|
@@ -85,7 +85,7 @@ declare module 'timers' {
|
|
|
85
85
|
namespace setImmediate {
|
|
86
86
|
const __promisify__: typeof setImmediatePromise;
|
|
87
87
|
}
|
|
88
|
-
function clearImmediate(immediateId: NodeJS.Immediate): void;
|
|
88
|
+
function clearImmediate(immediateId: NodeJS.Immediate | undefined): void;
|
|
89
89
|
function queueMicrotask(callback: () => void): void;
|
|
90
90
|
}
|
|
91
91
|
}
|