@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/fs/promises.d.ts CHANGED
@@ -8,11 +8,10 @@
8
8
  * concurrent modifications on the same file or data corruption may occur.
9
9
  * @since v10.0.0
10
10
  */
11
- declare module "fs/promises" {
11
+ declare module "node:fs/promises" {
12
12
  import { NonSharedBuffer } from "node:buffer";
13
13
  import { Abortable } from "node:events";
14
- import { Stream } from "node:stream";
15
- import { ReadableStream } from "node:stream/web";
14
+ import { Interface as ReadlineInterface } from "node:readline";
16
15
  import {
17
16
  BigIntStats,
18
17
  BigIntStatsFs,
@@ -37,7 +36,6 @@ declare module "fs/promises" {
37
36
  ReadPosition,
38
37
  ReadStream,
39
38
  ReadVResult,
40
- RmDirOptions,
41
39
  RmOptions,
42
40
  StatFsOptions,
43
41
  StatOptions,
@@ -49,7 +47,8 @@ declare module "fs/promises" {
49
47
  WriteStream,
50
48
  WriteVResult,
51
49
  } from "node:fs";
52
- import { Interface as ReadlineInterface } from "node:readline";
50
+ import { Stream } from "node:stream";
51
+ import { ReadableStream } from "node:stream/web";
53
52
  interface FileChangeInfo<T extends string | Buffer> {
54
53
  eventType: WatchEventType;
55
54
  filename: T | null;
@@ -602,7 +601,7 @@ declare module "fs/promises" {
602
601
  * @since v10.0.0
603
602
  * @return Fulfills with `undefined` upon success.
604
603
  */
605
- function rmdir(path: PathLike, options?: RmDirOptions): Promise<void>;
604
+ function rmdir(path: PathLike): Promise<void>;
606
605
  /**
607
606
  * Removes files and directories (modeled on the standard POSIX `rm` utility).
608
607
  * @since v14.14.0
@@ -1312,6 +1311,6 @@ declare module "fs/promises" {
1312
1311
  options: GlobOptions,
1313
1312
  ): NodeJS.AsyncIterator<Dirent | string>;
1314
1313
  }
1315
- declare module "node:fs/promises" {
1316
- export * from "fs/promises";
1314
+ declare module "fs/promises" {
1315
+ export * from "node:fs/promises";
1317
1316
  }