@types/node 17.0.33 → 17.0.34

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 +13 -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: Thu, 12 May 2022 21:31:45 GMT
11
+ * Last updated: Mon, 16 May 2022 21:31:43 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": "17.0.33",
3
+ "version": "17.0.34",
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": "4778882a370648e38e15a0b0d8f0ea68f9f725cd6e3d968321a04ce552542d0f",
218
+ "typesPublisherContentHash": "b51a58e3b35cbc4ff47bc9fce4296c0f581049d66596b52af715b63c47f24a8b",
219
219
  "typeScriptVersion": "3.9"
220
220
  }
node/stream.d.ts CHANGED
@@ -1238,6 +1238,19 @@ declare module 'stream' {
1238
1238
  ref(): void;
1239
1239
  unref(): void;
1240
1240
  }
1241
+
1242
+ /**
1243
+ * Returns whether the stream has encountered an error.
1244
+ * @since v17.3.0
1245
+ */
1246
+ function isErrored(stream: Readable | Writable | NodeJS.ReadableStream | NodeJS.WritableStream): boolean;
1247
+
1248
+ /**
1249
+ * Returns whether the stream is readable.
1250
+ * @since v17.4.0
1251
+ */
1252
+ function isReadable(stream: Readable | NodeJS.ReadableStream): boolean;
1253
+
1241
1254
  const promises: typeof streamPromises;
1242
1255
  const consumers: typeof streamConsumers;
1243
1256
  }