@types/node 22.7.7 → 22.7.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/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.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Sat, 19 Oct 2024 03:38:51 GMT
11
+ * Last updated: Tue, 22 Oct 2024 02:30:55 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "22.7.7",
3
+ "version": "22.7.8",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -219,6 +219,7 @@
219
219
  "dependencies": {
220
220
  "undici-types": "~6.19.2"
221
221
  },
222
- "typesPublisherContentHash": "fa31e6c2802baba25cea51cc9964246c953fcbf22ed95a34bb888cea10a202c4",
222
+ "peerDependencies": {},
223
+ "typesPublisherContentHash": "377bdc8e202af21374227159b9bca0a113a355f7eaf6188d2ee0f76e209ac0e7",
223
224
  "typeScriptVersion": "4.8"
224
225
  }
node/stream/promises.d.ts CHANGED
@@ -1,12 +1,19 @@
1
1
  declare module "stream/promises" {
2
2
  import {
3
- FinishedOptions,
3
+ FinishedOptions as _FinishedOptions,
4
4
  PipelineDestination,
5
5
  PipelineOptions,
6
6
  PipelinePromise,
7
7
  PipelineSource,
8
8
  PipelineTransform,
9
9
  } from "node:stream";
10
+ interface FinishedOptions extends _FinishedOptions {
11
+ /**
12
+ * If true, removes the listeners registered by this function before the promise is fulfilled.
13
+ * @default false
14
+ */
15
+ cleanup?: boolean | undefined;
16
+ }
10
17
  function finished(
11
18
  stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream,
12
19
  options?: FinishedOptions,