@types/node 20.10.2 → 20.10.4

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: Fri, 01 Dec 2023 20:07:24 GMT
11
+ * Last updated: Thu, 07 Dec 2023 07:07:09 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": "20.10.2",
3
+ "version": "20.10.4",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -224,7 +224,7 @@
224
224
  "dependencies": {
225
225
  "undici-types": "~5.26.4"
226
226
  },
227
- "typesPublisherContentHash": "68b6c3be48e20f97799b0bc9426c5fe51d700e7749e940440f083d4c830c83fe",
227
+ "typesPublisherContentHash": "70306276c79ea3801d82ca605703455f07ca61a9ef7d05f547ee2671f6bc5712",
228
228
  "typeScriptVersion": "4.6",
229
229
  "nonNpm": true
230
230
  }
node/stream.d.ts CHANGED
@@ -948,7 +948,7 @@ declare module "stream" {
948
948
  highWaterMark?: number | undefined;
949
949
  objectMode?: boolean | undefined;
950
950
  construct?(this: T, callback: (error?: Error | null) => void): void;
951
- destroy?(this: T, error: Error | null, callback: (error: Error | null) => void): void;
951
+ destroy?(this: T, error: Error | null, callback: (error?: Error | null) => void): void;
952
952
  autoDestroy?: boolean | undefined;
953
953
  }
954
954
  interface ReadableOptions extends StreamOptions<Readable> {
@@ -1033,7 +1033,7 @@ declare module "stream" {
1033
1033
  callback: (error?: Error | null) => void,
1034
1034
  ): void;
1035
1035
  final?(this: Duplex, callback: (error?: Error | null) => void): void;
1036
- destroy?(this: Duplex, error: Error | null, callback: (error: Error | null) => void): void;
1036
+ destroy?(this: Duplex, error: Error | null, callback: (error?: Error | null) => void): void;
1037
1037
  }
1038
1038
  /**
1039
1039
  * Duplex streams are streams that implement both the `Readable` and `Writable` interfaces.
@@ -1108,7 +1108,7 @@ declare module "stream" {
1108
1108
  }>,
1109
1109
  callback: (error?: Error | null) => void,
1110
1110
  ): void;
1111
- _destroy(error: Error | null, callback: (error: Error | null) => void): void;
1111
+ _destroy(error: Error | null, callback: (error?: Error | null) => void): void;
1112
1112
  _final(callback: (error?: Error | null) => void): void;
1113
1113
  write(chunk: any, encoding?: BufferEncoding, cb?: (error: Error | null | undefined) => void): boolean;
1114
1114
  write(chunk: any, cb?: (error: Error | null | undefined) => void): boolean;
@@ -1261,7 +1261,7 @@ declare module "stream" {
1261
1261
  callback: (error?: Error | null) => void,
1262
1262
  ): void;
1263
1263
  final?(this: Transform, callback: (error?: Error | null) => void): void;
1264
- destroy?(this: Transform, error: Error | null, callback: (error: Error | null) => void): void;
1264
+ destroy?(this: Transform, error: Error | null, callback: (error?: Error | null) => void): void;
1265
1265
  transform?(this: Transform, chunk: any, encoding: BufferEncoding, callback: TransformCallback): void;
1266
1266
  flush?(this: Transform, callback: TransformCallback): void;
1267
1267
  }
node/ts4.8/stream.d.ts CHANGED
@@ -948,7 +948,7 @@ declare module "stream" {
948
948
  highWaterMark?: number | undefined;
949
949
  objectMode?: boolean | undefined;
950
950
  construct?(this: T, callback: (error?: Error | null) => void): void;
951
- destroy?(this: T, error: Error | null, callback: (error: Error | null) => void): void;
951
+ destroy?(this: T, error: Error | null, callback: (error?: Error | null) => void): void;
952
952
  autoDestroy?: boolean | undefined;
953
953
  }
954
954
  interface ReadableOptions extends StreamOptions<Readable> {
@@ -1033,7 +1033,7 @@ declare module "stream" {
1033
1033
  callback: (error?: Error | null) => void,
1034
1034
  ): void;
1035
1035
  final?(this: Duplex, callback: (error?: Error | null) => void): void;
1036
- destroy?(this: Duplex, error: Error | null, callback: (error: Error | null) => void): void;
1036
+ destroy?(this: Duplex, error: Error | null, callback: (error?: Error | null) => void): void;
1037
1037
  }
1038
1038
  /**
1039
1039
  * Duplex streams are streams that implement both the `Readable` and `Writable` interfaces.
@@ -1108,7 +1108,7 @@ declare module "stream" {
1108
1108
  }>,
1109
1109
  callback: (error?: Error | null) => void,
1110
1110
  ): void;
1111
- _destroy(error: Error | null, callback: (error: Error | null) => void): void;
1111
+ _destroy(error: Error | null, callback: (error?: Error | null) => void): void;
1112
1112
  _final(callback: (error?: Error | null) => void): void;
1113
1113
  write(chunk: any, encoding?: BufferEncoding, cb?: (error: Error | null | undefined) => void): boolean;
1114
1114
  write(chunk: any, cb?: (error: Error | null | undefined) => void): boolean;
@@ -1261,7 +1261,7 @@ declare module "stream" {
1261
1261
  callback: (error?: Error | null) => void,
1262
1262
  ): void;
1263
1263
  final?(this: Transform, callback: (error?: Error | null) => void): void;
1264
- destroy?(this: Transform, error: Error | null, callback: (error: Error | null) => void): void;
1264
+ destroy?(this: Transform, error: Error | null, callback: (error?: Error | null) => void): void;
1265
1265
  transform?(this: Transform, chunk: any, encoding: BufferEncoding, callback: TransformCallback): void;
1266
1266
  flush?(this: Transform, callback: TransformCallback): void;
1267
1267
  }
node/ts4.8/util.d.ts CHANGED
@@ -1654,9 +1654,6 @@ declare module "util" {
1654
1654
  [Symbol.iterator]: typeof MIMEParams.prototype.entries;
1655
1655
  }
1656
1656
  }
1657
- declare module "util/types" {
1658
- export * from "util/types";
1659
- }
1660
1657
  declare module "util/types" {
1661
1658
  import { KeyObject, webcrypto } from "node:crypto";
1662
1659
  /**
node/util.d.ts CHANGED
@@ -1654,9 +1654,6 @@ declare module "util" {
1654
1654
  [Symbol.iterator]: typeof MIMEParams.prototype.entries;
1655
1655
  }
1656
1656
  }
1657
- declare module "util/types" {
1658
- export * from "util/types";
1659
- }
1660
1657
  declare module "util/types" {
1661
1658
  import { KeyObject, webcrypto } from "node:crypto";
1662
1659
  /**