@types/node 18.6.0 → 18.6.1

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.
Files changed (3) hide show
  1. node/README.md +1 -1
  2. node/package.json +2 -2
  3. node/stream.d.ts +12 -0
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: Sun, 24 Jul 2022 17:02:19 GMT
11
+ * Last updated: Mon, 25 Jul 2022 03:02:21 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
14
14
 
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "18.6.0",
3
+ "version": "18.6.1",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -220,6 +220,6 @@
220
220
  },
221
221
  "scripts": {},
222
222
  "dependencies": {},
223
- "typesPublisherContentHash": "d28a87b65426fa8c6dbbc6c18b42b7d50ad6446c979e625735a3ae1db8ec9334",
223
+ "typesPublisherContentHash": "44e628c188a3b958cbf3478d419ce6106d591da55cf4b80f1d8dffa1caae8bf2",
224
224
  "typeScriptVersion": "4.0"
225
225
  }
node/stream.d.ts CHANGED
@@ -519,6 +519,18 @@ declare module 'stream' {
519
519
  * @since v0.9.4
520
520
  */
521
521
  class Writable extends Stream implements NodeJS.WritableStream {
522
+ /**
523
+ * A utility method for creating a `Writable` from a web `WritableStream`.
524
+ * @since v17.0.0
525
+ * @experimental
526
+ */
527
+ static fromWeb(writableStream: streamWeb.WritableStream, options?: Pick<WritableOptions, 'decodeStrings' | 'highWaterMark' | 'objectMode' | 'signal'>): Writable;
528
+ /**
529
+ * A utility method for creating a web `WritableStream` from a `Writable`.
530
+ * @since v17.0.0
531
+ * @experimental
532
+ */
533
+ static toWeb(streamWritable: Writable): streamWeb.WritableStream;
522
534
  /**
523
535
  * Is `true` if it is safe to call `writable.write()`, which means
524
536
  * the stream has not been destroyed, errored or ended.