@types/node 16.18.67 → 16.18.68

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 v16.18/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/v16.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Sun, 03 Dec 2023 18:07:12 GMT
11
+ * Last updated: Thu, 07 Dec 2023 07:07:09 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "16.18.67",
3
+ "version": "16.18.68",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -222,7 +222,7 @@
222
222
  },
223
223
  "scripts": {},
224
224
  "dependencies": {},
225
- "typesPublisherContentHash": "146ad482e80fc4407fea597ad49b7c1cc7bd84a775d3a7650ef2ce8734b1adc0",
225
+ "typesPublisherContentHash": "127c673dffe05f6f820eed94e675c2408b4881e862c52faefe24eee41ae2ae62",
226
226
  "typeScriptVersion": "4.6",
227
227
  "nonNpm": true
228
228
  }
node v16.18/stream.d.ts CHANGED
@@ -38,7 +38,7 @@ declare module "stream" {
38
38
  highWaterMark?: number | undefined;
39
39
  objectMode?: boolean | undefined;
40
40
  construct?(this: T, callback: (error?: Error | null) => void): void;
41
- destroy?(this: T, error: Error | null, callback: (error: Error | null) => void): void;
41
+ destroy?(this: T, error: Error | null, callback: (error?: Error | null) => void): void;
42
42
  autoDestroy?: boolean | undefined;
43
43
  }
44
44
  interface ReadableOptions extends StreamOptions<Readable> {
@@ -829,7 +829,7 @@ declare module "stream" {
829
829
  callback: (error?: Error | null) => void,
830
830
  ): void;
831
831
  final?(this: Duplex, callback: (error?: Error | null) => void): void;
832
- destroy?(this: Duplex, error: Error | null, callback: (error: Error | null) => void): void;
832
+ destroy?(this: Duplex, error: Error | null, callback: (error?: Error | null) => void): void;
833
833
  }
834
834
  /**
835
835
  * Duplex streams are streams that implement both the `Readable` and `Writable` interfaces.
@@ -901,7 +901,7 @@ declare module "stream" {
901
901
  }>,
902
902
  callback: (error?: Error | null) => void,
903
903
  ): void;
904
- _destroy(error: Error | null, callback: (error: Error | null) => void): void;
904
+ _destroy(error: Error | null, callback: (error?: Error | null) => void): void;
905
905
  _final(callback: (error?: Error | null) => void): void;
906
906
  write(chunk: any, encoding?: BufferEncoding, cb?: (error: Error | null | undefined) => void): boolean;
907
907
  write(chunk: any, cb?: (error: Error | null | undefined) => void): boolean;
@@ -1030,7 +1030,7 @@ declare module "stream" {
1030
1030
  callback: (error?: Error | null) => void,
1031
1031
  ): void;
1032
1032
  final?(this: Transform, callback: (error?: Error | null) => void): void;
1033
- destroy?(this: Transform, error: Error | null, callback: (error: Error | null) => void): void;
1033
+ destroy?(this: Transform, error: Error | null, callback: (error?: Error | null) => void): void;
1034
1034
  transform?(this: Transform, chunk: any, encoding: BufferEncoding, callback: TransformCallback): void;
1035
1035
  flush?(this: Transform, callback: TransformCallback): void;
1036
1036
  }
@@ -38,7 +38,7 @@ declare module "stream" {
38
38
  highWaterMark?: number | undefined;
39
39
  objectMode?: boolean | undefined;
40
40
  construct?(this: T, callback: (error?: Error | null) => void): void;
41
- destroy?(this: T, error: Error | null, callback: (error: Error | null) => void): void;
41
+ destroy?(this: T, error: Error | null, callback: (error?: Error | null) => void): void;
42
42
  autoDestroy?: boolean | undefined;
43
43
  }
44
44
  interface ReadableOptions extends StreamOptions<Readable> {
@@ -793,7 +793,7 @@ declare module "stream" {
793
793
  callback: (error?: Error | null) => void,
794
794
  ): void;
795
795
  final?(this: Duplex, callback: (error?: Error | null) => void): void;
796
- destroy?(this: Duplex, error: Error | null, callback: (error: Error | null) => void): void;
796
+ destroy?(this: Duplex, error: Error | null, callback: (error?: Error | null) => void): void;
797
797
  }
798
798
  /**
799
799
  * Duplex streams are streams that implement both the `Readable` and `Writable` interfaces.
@@ -865,7 +865,7 @@ declare module "stream" {
865
865
  }>,
866
866
  callback: (error?: Error | null) => void,
867
867
  ): void;
868
- _destroy(error: Error | null, callback: (error: Error | null) => void): void;
868
+ _destroy(error: Error | null, callback: (error?: Error | null) => void): void;
869
869
  _final(callback: (error?: Error | null) => void): void;
870
870
  write(chunk: any, encoding?: BufferEncoding, cb?: (error: Error | null | undefined) => void): boolean;
871
871
  write(chunk: any, cb?: (error: Error | null | undefined) => void): boolean;
@@ -994,7 +994,7 @@ declare module "stream" {
994
994
  callback: (error?: Error | null) => void,
995
995
  ): void;
996
996
  final?(this: Transform, callback: (error?: Error | null) => void): void;
997
- destroy?(this: Transform, error: Error | null, callback: (error: Error | null) => void): void;
997
+ destroy?(this: Transform, error: Error | null, callback: (error?: Error | null) => void): void;
998
998
  transform?(this: Transform, chunk: any, encoding: BufferEncoding, callback: TransformCallback): void;
999
999
  flush?(this: Transform, callback: TransformCallback): void;
1000
1000
  }