@types/node 22.7.7 → 22.7.9

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: Wed, 23 Oct 2024 03:36:41 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
node/assert.d.ts CHANGED
@@ -45,7 +45,7 @@ declare module "assert" {
45
45
  /** The `operator` property on the error instance. */
46
46
  operator?: string | undefined;
47
47
  /** If provided, the generated stack trace omits frames before this function. */
48
- // eslint-disable-next-line @typescript-eslint/ban-types
48
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
49
49
  stackStartFn?: Function | undefined;
50
50
  });
51
51
  }
@@ -226,7 +226,7 @@ declare module "assert" {
226
226
  expected: unknown,
227
227
  message?: string | Error,
228
228
  operator?: string,
229
- // eslint-disable-next-line @typescript-eslint/ban-types
229
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
230
230
  stackStartFn?: Function,
231
231
  ): never;
232
232
  /**
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "22.7.7",
3
+ "version": "22.7.9",
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": "49b712614616bc7f8a0b0f6596d6add73e659a4a4d0695f61e4ab90a468876d3",
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,