@types/node 16.18.69 → 16.18.71

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 v16.18/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v16.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Sat, 30 Dec 2023 00:22:50 GMT
11
+ * Last updated: Mon, 15 Jan 2024 04:07:53 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
node v16.18/dgram.d.ts CHANGED
@@ -227,6 +227,16 @@ declare module "dgram" {
227
227
  * @return the `SO_SNDBUF` socket send buffer size in bytes.
228
228
  */
229
229
  getSendBufferSize(): number;
230
+ /**
231
+ * @since v16.19.0
232
+ * @return the number of bytes queued for sending.
233
+ */
234
+ getSendQueueSize(): number;
235
+ /**
236
+ * @since v16.19.0
237
+ * @return the number of send requests currently in the queue awaiting to be processed.
238
+ */
239
+ getSendQueueCount(): number;
230
240
  /**
231
241
  * By default, binding a socket will cause it to block the Node.js process from
232
242
  * exiting as long as the socket is open. The `socket.unref()` method can be used
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "16.18.69",
3
+ "version": "16.18.71",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -222,7 +222,7 @@
222
222
  },
223
223
  "scripts": {},
224
224
  "dependencies": {},
225
- "typesPublisherContentHash": "d43488d1e26db613a7affae57a81c266e822b91dfb01f33692e883a7113b1371",
225
+ "typesPublisherContentHash": "408c5b0e2936344d0ce7cecbea35013d99c9c3831649e625c736a618136d4e69",
226
226
  "typeScriptVersion": "4.6",
227
227
  "nonNpm": true
228
228
  }
@@ -1280,6 +1280,23 @@ declare module "process" {
1280
1280
  */
1281
1281
  uptime(): number;
1282
1282
  hrtime: HRTime;
1283
+ /**
1284
+ * If the Node.js process was spawned with an IPC channel, the process.channel property is a reference to the IPC channel.
1285
+ * If no IPC channel exists, this property is undefined.
1286
+ * @since v7.1.0
1287
+ */
1288
+ channel?: {
1289
+ /**
1290
+ * This method makes the IPC channel keep the event loop of the process running if .unref() has been called before.
1291
+ * @since v7.1.0
1292
+ */
1293
+ ref(): void;
1294
+ /**
1295
+ * This method makes the IPC channel not keep the event loop of the process running, and lets it finish even while the channel is open.
1296
+ * @since v7.1.0
1297
+ */
1298
+ unref(): void;
1299
+ };
1283
1300
  /**
1284
1301
  * If Node.js is spawned with an IPC channel, the `process.send()` method can be
1285
1302
  * used to send messages to the parent process. Messages will be received as a `'message'` event on the parent's `ChildProcess` object.
@@ -227,6 +227,16 @@ declare module "dgram" {
227
227
  * @return the `SO_SNDBUF` socket send buffer size in bytes.
228
228
  */
229
229
  getSendBufferSize(): number;
230
+ /**
231
+ * @since v16.19.0
232
+ * @return the number of bytes queued for sending.
233
+ */
234
+ getSendQueueSize(): number;
235
+ /**
236
+ * @since v16.19.0
237
+ * @return the number of send requests currently in the queue awaiting to be processed.
238
+ */
239
+ getSendQueueCount(): number;
230
240
  /**
231
241
  * By default, binding a socket will cause it to block the Node.js process from
232
242
  * exiting as long as the socket is open. The `socket.unref()` method can be used
@@ -1280,6 +1280,23 @@ declare module "process" {
1280
1280
  */
1281
1281
  uptime(): number;
1282
1282
  hrtime: HRTime;
1283
+ /**
1284
+ * If the Node.js process was spawned with an IPC channel, the process.channel property is a reference to the IPC channel.
1285
+ * If no IPC channel exists, this property is undefined.
1286
+ * @since v7.1.0
1287
+ */
1288
+ channel?: {
1289
+ /**
1290
+ * This method makes the IPC channel keep the event loop of the process running if .unref() has been called before.
1291
+ * @since v7.1.0
1292
+ */
1293
+ ref(): void;
1294
+ /**
1295
+ * This method makes the IPC channel not keep the event loop of the process running, and lets it finish even while the channel is open.
1296
+ * @since v7.1.0
1297
+ */
1298
+ unref(): void;
1299
+ };
1283
1300
  /**
1284
1301
  * If Node.js is spawned with an IPC channel, the `process.send()` method can be
1285
1302
  * used to send messages to the parent process. Messages will be received as a `'message'` event on the parent's `ChildProcess` object.