@types/node 24.10.2 → 25.0.0

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 (81) hide show
  1. node/README.md +1 -1
  2. node/assert/strict.d.ts +5 -11
  3. node/assert.d.ts +9 -169
  4. node/async_hooks.d.ts +8 -8
  5. node/buffer.buffer.d.ts +1 -7
  6. node/buffer.d.ts +44 -168
  7. node/child_process.d.ts +16 -64
  8. node/cluster.d.ts +240 -332
  9. node/console.d.ts +49 -351
  10. node/constants.d.ts +3 -4
  11. node/crypto.d.ts +279 -1631
  12. node/dgram.d.ts +15 -51
  13. node/diagnostics_channel.d.ts +4 -4
  14. node/dns/promises.d.ts +3 -3
  15. node/dns.d.ts +131 -132
  16. node/domain.d.ts +13 -17
  17. node/events.d.ts +719 -649
  18. node/fs/promises.d.ts +7 -8
  19. node/fs.d.ts +417 -455
  20. node/globals.d.ts +6 -26
  21. node/globals.typedarray.d.ts +60 -0
  22. node/http.d.ts +263 -254
  23. node/http2.d.ts +528 -804
  24. node/https.d.ts +59 -239
  25. node/index.d.ts +15 -1
  26. node/inspector/promises.d.ts +41 -0
  27. node/inspector.d.ts +6 -59
  28. node/inspector.generated.d.ts +3 -10
  29. node/module.d.ts +47 -122
  30. node/net.d.ts +63 -184
  31. node/os.d.ts +6 -6
  32. node/package.json +2 -2
  33. node/path/posix.d.ts +8 -0
  34. node/path/win32.d.ts +8 -0
  35. node/path.d.ts +120 -133
  36. node/perf_hooks.d.ts +282 -643
  37. node/process.d.ts +151 -128
  38. node/punycode.d.ts +5 -5
  39. node/querystring.d.ts +4 -4
  40. node/quic.d.ts +910 -0
  41. node/readline/promises.d.ts +3 -3
  42. node/readline.d.ts +67 -120
  43. node/repl.d.ts +75 -98
  44. node/sea.d.ts +1 -1
  45. node/sqlite.d.ts +2 -2
  46. node/stream/consumers.d.ts +10 -10
  47. node/stream/promises.d.ts +136 -15
  48. node/stream/web.d.ts +176 -453
  49. node/stream.d.ts +555 -478
  50. node/string_decoder.d.ts +4 -4
  51. node/test/reporters.d.ts +96 -0
  52. node/test.d.ts +80 -180
  53. node/timers/promises.d.ts +4 -4
  54. node/timers.d.ts +4 -130
  55. node/tls.d.ts +102 -177
  56. node/trace_events.d.ts +9 -9
  57. node/ts5.6/buffer.buffer.d.ts +1 -7
  58. node/ts5.6/index.d.ts +15 -1
  59. node/ts5.7/index.d.ts +15 -1
  60. node/tty.d.ts +58 -16
  61. node/url.d.ts +54 -592
  62. node/util/types.d.ts +558 -0
  63. node/util.d.ts +117 -792
  64. node/v8.d.ts +32 -5
  65. node/vm.d.ts +13 -13
  66. node/wasi.d.ts +4 -4
  67. node/web-globals/abortcontroller.d.ts +27 -2
  68. node/web-globals/blob.d.ts +23 -0
  69. node/web-globals/console.d.ts +9 -0
  70. node/web-globals/crypto.d.ts +7 -0
  71. node/web-globals/encoding.d.ts +11 -0
  72. node/web-globals/events.d.ts +9 -0
  73. node/web-globals/fetch.d.ts +4 -0
  74. node/web-globals/importmeta.d.ts +13 -0
  75. node/web-globals/messaging.d.ts +23 -0
  76. node/web-globals/performance.d.ts +45 -0
  77. node/web-globals/streams.d.ts +93 -0
  78. node/web-globals/timers.d.ts +44 -0
  79. node/web-globals/url.d.ts +24 -0
  80. node/worker_threads.d.ts +176 -358
  81. node/zlib.d.ts +8 -71
node/zlib.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  * ```
10
10
  *
11
11
  * Compression and decompression are built around the Node.js
12
- * [Streams API](https://nodejs.org/docs/latest-v24.x/api/stream.html).
12
+ * [Streams API](https://nodejs.org/docs/latest-v25.x/api/stream.html).
13
13
  *
14
14
  * Compressing or decompressing a stream (such as a file) can be accomplished by
15
15
  * piping the source stream through a `zlib` `Transform` stream into a destination
@@ -89,9 +89,9 @@
89
89
  * });
90
90
  * ```
91
91
  * @since v0.5.8
92
- * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/zlib.js)
92
+ * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/zlib.js)
93
93
  */
94
- declare module "zlib" {
94
+ declare module "node:zlib" {
95
95
  import { NonSharedBuffer } from "node:buffer";
96
96
  import * as stream from "node:stream";
97
97
  interface ZlibOptions {
@@ -144,7 +144,7 @@ declare module "zlib" {
144
144
  }
145
145
  | undefined;
146
146
  /**
147
- * Limits output size when using [convenience methods](https://nodejs.org/docs/latest-v24.x/api/zlib.html#convenience-methods).
147
+ * Limits output size when using [convenience methods](https://nodejs.org/docs/latest-v25.x/api/zlib.html#convenience-methods).
148
148
  * @default buffer.kMaxLength
149
149
  */
150
150
  maxOutputLength?: number | undefined;
@@ -168,12 +168,12 @@ declare module "zlib" {
168
168
  chunkSize?: number | undefined;
169
169
  /**
170
170
  * Key-value object containing indexed
171
- * [Zstd parameters](https://nodejs.org/docs/latest-v24.x/api/zlib.html#zstd-constants).
171
+ * [Zstd parameters](https://nodejs.org/docs/latest-v25.x/api/zlib.html#zstd-constants).
172
172
  */
173
173
  params?: { [key: number]: number | boolean } | undefined;
174
174
  /**
175
175
  * Limits output size when using
176
- * [convenience methods](https://nodejs.org/docs/latest-v24.x/api/zlib.html#convenience-methods).
176
+ * [convenience methods](https://nodejs.org/docs/latest-v25.x/api/zlib.html#convenience-methods).
177
177
  * @default buffer.kMaxLength
178
178
  */
179
179
  maxOutputLength?: number | undefined;
@@ -612,70 +612,7 @@ declare module "zlib" {
612
612
  const Z_SYNC_FLUSH: number;
613
613
  const Z_VERSION_ERROR: number;
614
614
  }
615
- // Allowed flush values.
616
- /** @deprecated Use `constants.Z_NO_FLUSH` */
617
- const Z_NO_FLUSH: number;
618
- /** @deprecated Use `constants.Z_PARTIAL_FLUSH` */
619
- const Z_PARTIAL_FLUSH: number;
620
- /** @deprecated Use `constants.Z_SYNC_FLUSH` */
621
- const Z_SYNC_FLUSH: number;
622
- /** @deprecated Use `constants.Z_FULL_FLUSH` */
623
- const Z_FULL_FLUSH: number;
624
- /** @deprecated Use `constants.Z_FINISH` */
625
- const Z_FINISH: number;
626
- /** @deprecated Use `constants.Z_BLOCK` */
627
- const Z_BLOCK: number;
628
- // Return codes for the compression/decompression functions.
629
- // Negative values are errors, positive values are used for special but normal events.
630
- /** @deprecated Use `constants.Z_OK` */
631
- const Z_OK: number;
632
- /** @deprecated Use `constants.Z_STREAM_END` */
633
- const Z_STREAM_END: number;
634
- /** @deprecated Use `constants.Z_NEED_DICT` */
635
- const Z_NEED_DICT: number;
636
- /** @deprecated Use `constants.Z_ERRNO` */
637
- const Z_ERRNO: number;
638
- /** @deprecated Use `constants.Z_STREAM_ERROR` */
639
- const Z_STREAM_ERROR: number;
640
- /** @deprecated Use `constants.Z_DATA_ERROR` */
641
- const Z_DATA_ERROR: number;
642
- /** @deprecated Use `constants.Z_MEM_ERROR` */
643
- const Z_MEM_ERROR: number;
644
- /** @deprecated Use `constants.Z_BUF_ERROR` */
645
- const Z_BUF_ERROR: number;
646
- /** @deprecated Use `constants.Z_VERSION_ERROR` */
647
- const Z_VERSION_ERROR: number;
648
- // Compression levels.
649
- /** @deprecated Use `constants.Z_NO_COMPRESSION` */
650
- const Z_NO_COMPRESSION: number;
651
- /** @deprecated Use `constants.Z_BEST_SPEED` */
652
- const Z_BEST_SPEED: number;
653
- /** @deprecated Use `constants.Z_BEST_COMPRESSION` */
654
- const Z_BEST_COMPRESSION: number;
655
- /** @deprecated Use `constants.Z_DEFAULT_COMPRESSION` */
656
- const Z_DEFAULT_COMPRESSION: number;
657
- // Compression strategy.
658
- /** @deprecated Use `constants.Z_FILTERED` */
659
- const Z_FILTERED: number;
660
- /** @deprecated Use `constants.Z_HUFFMAN_ONLY` */
661
- const Z_HUFFMAN_ONLY: number;
662
- /** @deprecated Use `constants.Z_RLE` */
663
- const Z_RLE: number;
664
- /** @deprecated Use `constants.Z_FIXED` */
665
- const Z_FIXED: number;
666
- /** @deprecated Use `constants.Z_DEFAULT_STRATEGY` */
667
- const Z_DEFAULT_STRATEGY: number;
668
- /** @deprecated */
669
- const Z_BINARY: number;
670
- /** @deprecated */
671
- const Z_TEXT: number;
672
- /** @deprecated */
673
- const Z_ASCII: number;
674
- /** @deprecated */
675
- const Z_UNKNOWN: number;
676
- /** @deprecated */
677
- const Z_DEFLATED: number;
678
615
  }
679
- declare module "node:zlib" {
680
- export * from "zlib";
616
+ declare module "zlib" {
617
+ export * from "node:zlib";
681
618
  }