@types/node 18.19.6 → 18.19.8

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 v18.19/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/v18.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 09 Jan 2024 15:35:40 GMT
11
+ * Last updated: Wed, 17 Jan 2024 06:36:16 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "18.19.6",
3
+ "version": "18.19.8",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -229,7 +229,7 @@
229
229
  "dependencies": {
230
230
  "undici-types": "~5.26.4"
231
231
  },
232
- "typesPublisherContentHash": "c192698b825a6e4bf13508c2587c250a898f477277c678f78c688ca5b31e38a0",
232
+ "typesPublisherContentHash": "c6ffdf1446429345b2047cbbd1128ef89768281b14f4584d14b4b11b4af8d008",
233
233
  "typeScriptVersion": "4.6",
234
234
  "nonNpm": true
235
235
  }
@@ -1303,6 +1303,23 @@ declare module "process" {
1303
1303
  */
1304
1304
  uptime(): number;
1305
1305
  hrtime: HRTime;
1306
+ /**
1307
+ * If the Node.js process was spawned with an IPC channel, the process.channel property is a reference to the IPC channel.
1308
+ * If no IPC channel exists, this property is undefined.
1309
+ * @since v7.1.0
1310
+ */
1311
+ channel?: {
1312
+ /**
1313
+ * This method makes the IPC channel keep the event loop of the process running if .unref() has been called before.
1314
+ * @since v7.1.0
1315
+ */
1316
+ ref(): void;
1317
+ /**
1318
+ * 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.
1319
+ * @since v7.1.0
1320
+ */
1321
+ unref(): void;
1322
+ };
1306
1323
  /**
1307
1324
  * If Node.js is spawned with an IPC channel, the `process.send()` method can be
1308
1325
  * used to send messages to the parent process. Messages will be received as a `'message'` event on the parent's `ChildProcess` object.
@@ -328,7 +328,23 @@ declare module "stream/web" {
328
328
  }
329
329
  const TextDecoderStream: {
330
330
  prototype: TextDecoderStream;
331
- new(label?: string, options?: TextDecoderOptions): TextDecoderStream;
331
+ new(encoding?: string, options?: TextDecoderOptions): TextDecoderStream;
332
+ };
333
+ interface CompressionStream<R = any, W = any> {
334
+ readonly readable: ReadableStream<R>;
335
+ readonly writable: WritableStream<W>;
336
+ }
337
+ const CompressionStream: {
338
+ prototype: CompressionStream;
339
+ new<R = any, W = any>(format: string): CompressionStream<R, W>;
340
+ };
341
+ interface DecompressionStream<R = any, W = any> {
342
+ readonly readable: ReadableStream<R>;
343
+ readonly writable: WritableStream<W>;
344
+ }
345
+ const DecompressionStream: {
346
+ prototype: DecompressionStream;
347
+ new<R = any, W = any>(format: string): DecompressionStream<R, W>;
332
348
  };
333
349
  }
334
350
  declare module "node:stream/web" {
@@ -1303,6 +1303,23 @@ declare module "process" {
1303
1303
  */
1304
1304
  uptime(): number;
1305
1305
  hrtime: HRTime;
1306
+ /**
1307
+ * If the Node.js process was spawned with an IPC channel, the process.channel property is a reference to the IPC channel.
1308
+ * If no IPC channel exists, this property is undefined.
1309
+ * @since v7.1.0
1310
+ */
1311
+ channel?: {
1312
+ /**
1313
+ * This method makes the IPC channel keep the event loop of the process running if .unref() has been called before.
1314
+ * @since v7.1.0
1315
+ */
1316
+ ref(): void;
1317
+ /**
1318
+ * 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.
1319
+ * @since v7.1.0
1320
+ */
1321
+ unref(): void;
1322
+ };
1306
1323
  /**
1307
1324
  * If Node.js is spawned with an IPC channel, the `process.send()` method can be
1308
1325
  * used to send messages to the parent process. Messages will be received as a `'message'` event on the parent's `ChildProcess` object.
@@ -328,7 +328,23 @@ declare module "stream/web" {
328
328
  }
329
329
  const TextDecoderStream: {
330
330
  prototype: TextDecoderStream;
331
- new(label?: string, options?: TextDecoderOptions): TextDecoderStream;
331
+ new(encoding?: string, options?: TextDecoderOptions): TextDecoderStream;
332
+ };
333
+ interface CompressionStream<R = any, W = any> {
334
+ readonly readable: ReadableStream<R>;
335
+ readonly writable: WritableStream<W>;
336
+ }
337
+ const CompressionStream: {
338
+ prototype: CompressionStream;
339
+ new<R = any, W = any>(format: string): CompressionStream<R, W>;
340
+ };
341
+ interface DecompressionStream<R = any, W = any> {
342
+ readonly readable: ReadableStream<R>;
343
+ readonly writable: WritableStream<W>;
344
+ }
345
+ const DecompressionStream: {
346
+ prototype: DecompressionStream;
347
+ new<R = any, W = any>(format: string): DecompressionStream<R, W>;
332
348
  };
333
349
  }
334
350
  declare module "node:stream/web" {