@types/node 20.6.1 → 20.6.2

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 (96) hide show
  1. node/README.md +1 -1
  2. node/assert.d.ts +3 -3
  3. node/async_hooks.d.ts +3 -3
  4. node/buffer.d.ts +3 -3
  5. node/child_process.d.ts +3 -3
  6. node/cluster.d.ts +4 -4
  7. node/constants.d.ts +3 -3
  8. node/crypto.d.ts +3 -3
  9. node/dgram.d.ts +3 -3
  10. node/diagnostics_channel.d.ts +3 -3
  11. node/dns/promises.d.ts +3 -3
  12. node/dns.d.ts +3 -3
  13. node/domain.d.ts +3 -3
  14. node/events.d.ts +3 -3
  15. node/fs/promises.d.ts +3 -3
  16. node/fs.d.ts +3 -3
  17. node/http.d.ts +3 -3
  18. node/http2.d.ts +3 -3
  19. node/https.d.ts +3 -3
  20. node/inspector.d.ts +3 -3
  21. node/module.d.ts +3 -3
  22. node/net.d.ts +3 -3
  23. node/os.d.ts +3 -3
  24. node/package.json +2 -2
  25. node/path.d.ts +5 -5
  26. node/perf_hooks.d.ts +3 -3
  27. node/process.d.ts +3 -3
  28. node/punycode.d.ts +3 -3
  29. node/querystring.d.ts +3 -3
  30. node/readline/promises.d.ts +3 -3
  31. node/readline.d.ts +3 -3
  32. node/repl.d.ts +3 -3
  33. node/stream/consumers.d.ts +3 -3
  34. node/stream/promises.d.ts +3 -3
  35. node/stream/web.d.ts +3 -3
  36. node/stream.d.ts +3 -3
  37. node/string_decoder.d.ts +3 -3
  38. node/timers/promises.d.ts +3 -3
  39. node/timers.d.ts +3 -3
  40. node/tls.d.ts +3 -3
  41. node/trace_events.d.ts +3 -3
  42. node/ts4.8/assert.d.ts +3 -3
  43. node/ts4.8/async_hooks.d.ts +3 -3
  44. node/ts4.8/buffer.d.ts +3 -3
  45. node/ts4.8/child_process.d.ts +3 -3
  46. node/ts4.8/cluster.d.ts +4 -4
  47. node/ts4.8/constants.d.ts +3 -3
  48. node/ts4.8/crypto.d.ts +3 -3
  49. node/ts4.8/dgram.d.ts +3 -3
  50. node/ts4.8/diagnostics_channel.d.ts +3 -3
  51. node/ts4.8/dns/promises.d.ts +3 -3
  52. node/ts4.8/dns.d.ts +3 -3
  53. node/ts4.8/domain.d.ts +3 -3
  54. node/ts4.8/events.d.ts +3 -3
  55. node/ts4.8/fs/promises.d.ts +3 -3
  56. node/ts4.8/fs.d.ts +3 -3
  57. node/ts4.8/http.d.ts +3 -3
  58. node/ts4.8/http2.d.ts +3 -3
  59. node/ts4.8/https.d.ts +3 -3
  60. node/ts4.8/inspector.d.ts +3 -3
  61. node/ts4.8/module.d.ts +3 -3
  62. node/ts4.8/net.d.ts +3 -3
  63. node/ts4.8/os.d.ts +3 -3
  64. node/ts4.8/path.d.ts +5 -5
  65. node/ts4.8/perf_hooks.d.ts +3 -3
  66. node/ts4.8/process.d.ts +3 -3
  67. node/ts4.8/punycode.d.ts +3 -3
  68. node/ts4.8/querystring.d.ts +3 -3
  69. node/ts4.8/readline/promises.d.ts +3 -3
  70. node/ts4.8/readline.d.ts +3 -3
  71. node/ts4.8/repl.d.ts +3 -3
  72. node/ts4.8/stream/consumers.d.ts +3 -3
  73. node/ts4.8/stream/promises.d.ts +3 -3
  74. node/ts4.8/stream/web.d.ts +3 -3
  75. node/ts4.8/stream.d.ts +3 -3
  76. node/ts4.8/string_decoder.d.ts +3 -3
  77. node/ts4.8/timers/promises.d.ts +3 -3
  78. node/ts4.8/timers.d.ts +3 -3
  79. node/ts4.8/tls.d.ts +3 -3
  80. node/ts4.8/trace_events.d.ts +3 -3
  81. node/ts4.8/tty.d.ts +3 -3
  82. node/ts4.8/url.d.ts +3 -3
  83. node/ts4.8/util.d.ts +3 -3
  84. node/ts4.8/v8.d.ts +3 -3
  85. node/ts4.8/vm.d.ts +3 -3
  86. node/ts4.8/wasi.d.ts +3 -3
  87. node/ts4.8/worker_threads.d.ts +3 -3
  88. node/ts4.8/zlib.d.ts +3 -3
  89. node/tty.d.ts +3 -3
  90. node/url.d.ts +3 -3
  91. node/util.d.ts +3 -3
  92. node/v8.d.ts +3 -3
  93. node/vm.d.ts +3 -3
  94. node/wasi.d.ts +3 -3
  95. node/worker_threads.d.ts +3 -3
  96. node/zlib.d.ts +3 -3
node/ts4.8/readline.d.ts CHANGED
@@ -32,7 +32,7 @@
32
32
  * received on the `input` stream.
33
33
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/readline.js)
34
34
  */
35
- declare module 'readline' {
35
+ declare module 'node:readline' {
36
36
  import { Abortable, EventEmitter } from 'node:events';
37
37
  import * as promises from 'node:readline/promises';
38
38
  export { promises };
@@ -521,6 +521,6 @@ declare module 'readline' {
521
521
  */
522
522
  export function moveCursor(stream: NodeJS.WritableStream, dx: number, dy: number, callback?: () => void): boolean;
523
523
  }
524
- declare module 'node:readline' {
525
- export * from 'readline';
524
+ declare module 'readline' {
525
+ export * from 'node:readline';
526
526
  }
node/ts4.8/repl.d.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  * ```
9
9
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/repl.js)
10
10
  */
11
- declare module 'repl' {
11
+ declare module 'node:repl' {
12
12
  import { Interface, Completer, AsyncCompleter } from 'node:readline';
13
13
  import { Context } from 'node:vm';
14
14
  import { InspectOptions } from 'node:util';
@@ -419,6 +419,6 @@ declare module 'repl' {
419
419
  constructor(err: Error);
420
420
  }
421
421
  }
422
- declare module 'node:repl' {
423
- export * from 'repl';
422
+ declare module 'repl' {
423
+ export * from 'node:repl';
424
424
  }
@@ -1,4 +1,4 @@
1
- declare module 'stream/consumers' {
1
+ declare module 'node:stream/consumers' {
2
2
  import { Blob as NodeBlob } from 'node:buffer';
3
3
  import { Readable } from 'node:stream';
4
4
  function buffer(stream: NodeJS.ReadableStream | Readable | AsyncIterator<any>): Promise<Buffer>;
@@ -7,6 +7,6 @@ declare module 'stream/consumers' {
7
7
  function blob(stream: NodeJS.ReadableStream | Readable | AsyncIterator<any>): Promise<NodeBlob>;
8
8
  function json(stream: NodeJS.ReadableStream | Readable | AsyncIterator<any>): Promise<unknown>;
9
9
  }
10
- declare module 'node:stream/consumers' {
11
- export * from 'stream/consumers';
10
+ declare module 'stream/consumers' {
11
+ export * from 'node:stream/consumers';
12
12
  }
@@ -1,4 +1,4 @@
1
- declare module 'stream/promises' {
1
+ declare module 'node:stream/promises' {
2
2
  import { FinishedOptions, PipelineSource, PipelineTransform, PipelineDestination, PipelinePromise, PipelineOptions } from 'node:stream';
3
3
  function finished(stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, options?: FinishedOptions): Promise<void>;
4
4
  function pipeline<A extends PipelineSource<any>, B extends PipelineDestination<A, any>>(source: A, destination: B, options?: PipelineOptions): PipelinePromise<B>;
@@ -37,6 +37,6 @@ declare module 'stream/promises' {
37
37
  ...streams: Array<NodeJS.ReadWriteStream | NodeJS.WritableStream | PipelineOptions>
38
38
  ): Promise<void>;
39
39
  }
40
- declare module 'node:stream/promises' {
41
- export * from 'stream/promises';
40
+ declare module 'stream/promises' {
41
+ export * from 'node:stream/promises';
42
42
  }
@@ -1,4 +1,4 @@
1
- declare module 'stream/web' {
1
+ declare module 'node:stream/web' {
2
2
  // stub module, pending copy&paste from .d.ts or manual impl
3
3
  // copy from lib.dom.d.ts
4
4
  interface ReadableWritablePair<R = any, W = any> {
@@ -325,6 +325,6 @@ declare module 'stream/web' {
325
325
  new (label?: string, options?: TextDecoderOptions): TextDecoderStream;
326
326
  };
327
327
  }
328
- declare module 'node:stream/web' {
329
- export * from 'stream/web';
328
+ declare module 'stream/web' {
329
+ export * from 'node:stream/web';
330
330
  }
node/ts4.8/stream.d.ts CHANGED
@@ -16,7 +16,7 @@
16
16
  * It is usually not necessary to use the `node:stream` module to consume streams.
17
17
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/stream.js)
18
18
  */
19
- declare module 'stream' {
19
+ declare module 'node:stream' {
20
20
  import { EventEmitter, Abortable } from 'node:events';
21
21
  import { Blob as NodeBlob } from 'node:buffer';
22
22
  import * as streamPromises from 'node:stream/promises';
@@ -1424,7 +1424,7 @@ declare module 'stream' {
1424
1424
  }
1425
1425
  export = internal;
1426
1426
  }
1427
- declare module 'node:stream' {
1428
- import stream = require('stream');
1427
+ declare module 'stream' {
1428
+ import stream = require('node:stream');
1429
1429
  export = stream;
1430
1430
  }
@@ -38,7 +38,7 @@
38
38
  * ```
39
39
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/string_decoder.js)
40
40
  */
41
- declare module 'string_decoder' {
41
+ declare module 'node:string_decoder' {
42
42
  class StringDecoder {
43
43
  constructor(encoding?: BufferEncoding);
44
44
  /**
@@ -62,6 +62,6 @@ declare module 'string_decoder' {
62
62
  end(buffer?: Buffer): string;
63
63
  }
64
64
  }
65
- declare module 'node:string_decoder' {
66
- export * from 'string_decoder';
65
+ declare module 'string_decoder' {
66
+ export * from 'node:string_decoder';
67
67
  }
@@ -11,7 +11,7 @@
11
11
  * ```
12
12
  * @since v15.0.0
13
13
  */
14
- declare module 'timers/promises' {
14
+ declare module 'node:timers/promises' {
15
15
  import { TimerOptions } from 'node:timers';
16
16
  /**
17
17
  * ```js
@@ -88,6 +88,6 @@ declare module 'timers/promises' {
88
88
  }
89
89
  const scheduler: Scheduler;
90
90
  }
91
- declare module 'node:timers/promises' {
92
- export * from 'timers/promises';
91
+ declare module 'timers/promises' {
92
+ export * from 'node:timers/promises';
93
93
  }
node/ts4.8/timers.d.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  * built around the Node.js [Event Loop](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#setimmediate-vs-settimeout).
9
9
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/timers.js)
10
10
  */
11
- declare module 'timers' {
11
+ declare module 'node:timers' {
12
12
  import { Abortable } from 'node:events';
13
13
  import { setTimeout as setTimeoutPromise, setImmediate as setImmediatePromise, setInterval as setIntervalPromise } from 'node:timers/promises';
14
14
  interface TimerOptions extends Abortable {
@@ -220,6 +220,6 @@ declare module 'timers' {
220
220
  function queueMicrotask(callback: () => void): void;
221
221
  }
222
222
  }
223
- declare module 'node:timers' {
224
- export * from 'timers';
223
+ declare module 'timers' {
224
+ export * from 'node:timers';
225
225
  }
node/ts4.8/tls.d.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  * ```
9
9
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/tls.js)
10
10
  */
11
- declare module 'tls' {
11
+ declare module 'node:tls' {
12
12
  import { X509Certificate } from 'node:crypto';
13
13
  import * as net from 'node:net';
14
14
  import * as stream from 'stream';
@@ -1125,6 +1125,6 @@ declare module 'tls' {
1125
1125
  */
1126
1126
  const rootCertificates: ReadonlyArray<string>;
1127
1127
  }
1128
- declare module 'node:tls' {
1129
- export * from 'tls';
1128
+ declare module 'tls' {
1129
+ export * from 'node:tls';
1130
1130
  }
@@ -96,7 +96,7 @@
96
96
  * @experimental
97
97
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/trace_events.js)
98
98
  */
99
- declare module 'trace_events' {
99
+ declare module 'node:trace_events' {
100
100
  /**
101
101
  * The `Tracing` object is used to enable or disable tracing for sets of
102
102
  * categories. Instances are created using the
@@ -177,6 +177,6 @@ declare module 'trace_events' {
177
177
  */
178
178
  function getEnabledCategories(): string | undefined;
179
179
  }
180
- declare module 'node:trace_events' {
181
- export * from 'trace_events';
180
+ declare module 'trace_events' {
181
+ export * from 'node:trace_events';
182
182
  }
node/ts4.8/tty.d.ts CHANGED
@@ -23,7 +23,7 @@
23
23
  * manually create instances of the `tty.ReadStream` and `tty.WriteStream`classes.
24
24
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/tty.js)
25
25
  */
26
- declare module 'tty' {
26
+ declare module 'node:tty' {
27
27
  import * as net from 'node:net';
28
28
  /**
29
29
  * The `tty.isatty()` method returns `true` if the given `fd` is associated with
@@ -203,6 +203,6 @@ declare module 'tty' {
203
203
  isTTY: boolean;
204
204
  }
205
205
  }
206
- declare module 'node:tty' {
207
- export * from 'tty';
206
+ declare module 'tty' {
207
+ export * from 'node:tty';
208
208
  }
node/ts4.8/url.d.ts CHANGED
@@ -7,7 +7,7 @@
7
7
  * ```
8
8
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/url.js)
9
9
  */
10
- declare module 'url' {
10
+ declare module 'node:url' {
11
11
  import { Blob as NodeBlob } from 'node:buffer';
12
12
  import { ClientRequestArgs } from 'node:http';
13
13
  import { ParsedUrlQuery, ParsedUrlQueryInput } from 'node:querystring';
@@ -910,6 +910,6 @@ declare module 'url' {
910
910
  : typeof _URLSearchParams;
911
911
  }
912
912
  }
913
- declare module 'node:url' {
914
- export * from 'url';
913
+ declare module 'url' {
914
+ export * from 'node:url';
915
915
  }
node/ts4.8/util.d.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  * ```
9
9
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/util.js)
10
10
  */
11
- declare module 'util' {
11
+ declare module 'node:util' {
12
12
  import * as types from 'node:util/types';
13
13
  export interface InspectOptions {
14
14
  /**
@@ -2108,8 +2108,8 @@ declare module 'util/types' {
2108
2108
  */
2109
2109
  function isCryptoKey(object: unknown): object is webcrypto.CryptoKey;
2110
2110
  }
2111
- declare module 'node:util' {
2112
- export * from 'util';
2111
+ declare module 'util' {
2112
+ export * from 'node:util';
2113
2113
  }
2114
2114
  declare module 'node:util/types' {
2115
2115
  export * from 'util/types';
node/ts4.8/v8.d.ts CHANGED
@@ -6,7 +6,7 @@
6
6
  * ```
7
7
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/v8.js)
8
8
  */
9
- declare module 'v8' {
9
+ declare module 'node:v8' {
10
10
  import { Readable } from 'node:stream';
11
11
  interface HeapSpaceInfo {
12
12
  space_name: string;
@@ -630,6 +630,6 @@ declare module 'v8' {
630
630
  */
631
631
  const promiseHooks: PromiseHooks;
632
632
  }
633
- declare module 'node:v8' {
634
- export * from 'v8';
633
+ declare module 'v8' {
634
+ export * from 'node:v8';
635
635
  }
node/ts4.8/vm.d.ts CHANGED
@@ -36,7 +36,7 @@
36
36
  * ```
37
37
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/vm.js)
38
38
  */
39
- declare module 'vm' {
39
+ declare module 'node:vm' {
40
40
  import { ImportAssertions } from 'node:module';
41
41
  interface Context extends NodeJS.Dict<any> {}
42
42
  interface BaseOptions {
@@ -890,6 +890,6 @@ declare module 'vm' {
890
890
  setExport(name: string, value: any): void;
891
891
  }
892
892
  }
893
- declare module 'node:vm' {
894
- export * from 'vm';
893
+ declare module 'vm' {
894
+ export * from 'node:vm';
895
895
  }
node/ts4.8/wasi.d.ts CHANGED
@@ -64,7 +64,7 @@
64
64
  * @experimental
65
65
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/wasi.js)
66
66
  */
67
- declare module 'wasi' {
67
+ declare module 'node:wasi' {
68
68
  interface WASIOptions {
69
69
  /**
70
70
  * An array of strings that the WebAssembly application will
@@ -147,6 +147,6 @@ declare module 'wasi' {
147
147
  readonly wasiImport: NodeJS.Dict<any>; // TODO: Narrow to DOM types
148
148
  }
149
149
  }
150
- declare module 'node:wasi' {
151
- export * from 'wasi';
150
+ declare module 'wasi' {
151
+ export * from 'node:wasi';
152
152
  }
@@ -51,7 +51,7 @@
51
51
  * specifically `argv` and `execArgv` options.
52
52
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/worker_threads.js)
53
53
  */
54
- declare module 'worker_threads' {
54
+ declare module 'node:worker_threads' {
55
55
  import { Blob } from 'node:buffer';
56
56
  import { Context } from 'node:vm';
57
57
  import { EventEmitter } from 'node:events';
@@ -689,6 +689,6 @@ declare module 'worker_threads' {
689
689
  : typeof _MessagePort;
690
690
  }
691
691
  }
692
- declare module 'node:worker_threads' {
693
- export * from 'worker_threads';
692
+ declare module 'worker_threads' {
693
+ export * from 'node:worker_threads';
694
694
  }
node/ts4.8/zlib.d.ts CHANGED
@@ -90,7 +90,7 @@
90
90
  * @since v0.5.8
91
91
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/zlib.js)
92
92
  */
93
- declare module 'zlib' {
93
+ declare module 'node:zlib' {
94
94
  import * as stream from 'node:stream';
95
95
  interface ZlibOptions {
96
96
  /**
@@ -512,6 +512,6 @@ declare module 'zlib' {
512
512
  /** @deprecated */
513
513
  const Z_DEFLATED: number;
514
514
  }
515
- declare module 'node:zlib' {
516
- export * from 'zlib';
515
+ declare module 'zlib' {
516
+ export * from 'node:zlib';
517
517
  }
node/tty.d.ts CHANGED
@@ -23,7 +23,7 @@
23
23
  * manually create instances of the `tty.ReadStream` and `tty.WriteStream`classes.
24
24
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/tty.js)
25
25
  */
26
- declare module 'tty' {
26
+ declare module 'node:tty' {
27
27
  import * as net from 'node:net';
28
28
  /**
29
29
  * The `tty.isatty()` method returns `true` if the given `fd` is associated with
@@ -203,6 +203,6 @@ declare module 'tty' {
203
203
  isTTY: boolean;
204
204
  }
205
205
  }
206
- declare module 'node:tty' {
207
- export * from 'tty';
206
+ declare module 'tty' {
207
+ export * from 'node:tty';
208
208
  }
node/url.d.ts CHANGED
@@ -7,7 +7,7 @@
7
7
  * ```
8
8
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/url.js)
9
9
  */
10
- declare module 'url' {
10
+ declare module 'node:url' {
11
11
  import { Blob as NodeBlob } from 'node:buffer';
12
12
  import { ClientRequestArgs } from 'node:http';
13
13
  import { ParsedUrlQuery, ParsedUrlQueryInput } from 'node:querystring';
@@ -910,6 +910,6 @@ declare module 'url' {
910
910
  : typeof _URLSearchParams;
911
911
  }
912
912
  }
913
- declare module 'node:url' {
914
- export * from 'url';
913
+ declare module 'url' {
914
+ export * from 'node:url';
915
915
  }
node/util.d.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  * ```
9
9
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/util.js)
10
10
  */
11
- declare module 'util' {
11
+ declare module 'node:util' {
12
12
  import * as types from 'node:util/types';
13
13
  export interface InspectOptions {
14
14
  /**
@@ -2108,8 +2108,8 @@ declare module 'util/types' {
2108
2108
  */
2109
2109
  function isCryptoKey(object: unknown): object is webcrypto.CryptoKey;
2110
2110
  }
2111
- declare module 'node:util' {
2112
- export * from 'util';
2111
+ declare module 'util' {
2112
+ export * from 'node:util';
2113
2113
  }
2114
2114
  declare module 'node:util/types' {
2115
2115
  export * from 'util/types';
node/v8.d.ts CHANGED
@@ -6,7 +6,7 @@
6
6
  * ```
7
7
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/v8.js)
8
8
  */
9
- declare module 'v8' {
9
+ declare module 'node:v8' {
10
10
  import { Readable } from 'node:stream';
11
11
  interface HeapSpaceInfo {
12
12
  space_name: string;
@@ -630,6 +630,6 @@ declare module 'v8' {
630
630
  */
631
631
  const promiseHooks: PromiseHooks;
632
632
  }
633
- declare module 'node:v8' {
634
- export * from 'v8';
633
+ declare module 'v8' {
634
+ export * from 'node:v8';
635
635
  }
node/vm.d.ts CHANGED
@@ -36,7 +36,7 @@
36
36
  * ```
37
37
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/vm.js)
38
38
  */
39
- declare module 'vm' {
39
+ declare module 'node:vm' {
40
40
  import { ImportAssertions } from 'node:module';
41
41
  interface Context extends NodeJS.Dict<any> {}
42
42
  interface BaseOptions {
@@ -890,6 +890,6 @@ declare module 'vm' {
890
890
  setExport(name: string, value: any): void;
891
891
  }
892
892
  }
893
- declare module 'node:vm' {
894
- export * from 'vm';
893
+ declare module 'vm' {
894
+ export * from 'node:vm';
895
895
  }
node/wasi.d.ts CHANGED
@@ -64,7 +64,7 @@
64
64
  * @experimental
65
65
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/wasi.js)
66
66
  */
67
- declare module 'wasi' {
67
+ declare module 'node:wasi' {
68
68
  interface WASIOptions {
69
69
  /**
70
70
  * An array of strings that the WebAssembly application will
@@ -147,6 +147,6 @@ declare module 'wasi' {
147
147
  readonly wasiImport: NodeJS.Dict<any>; // TODO: Narrow to DOM types
148
148
  }
149
149
  }
150
- declare module 'node:wasi' {
151
- export * from 'wasi';
150
+ declare module 'wasi' {
151
+ export * from 'node:wasi';
152
152
  }
node/worker_threads.d.ts CHANGED
@@ -51,7 +51,7 @@
51
51
  * specifically `argv` and `execArgv` options.
52
52
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/worker_threads.js)
53
53
  */
54
- declare module 'worker_threads' {
54
+ declare module 'node:worker_threads' {
55
55
  import { Blob } from 'node:buffer';
56
56
  import { Context } from 'node:vm';
57
57
  import { EventEmitter } from 'node:events';
@@ -689,6 +689,6 @@ declare module 'worker_threads' {
689
689
  : typeof _MessagePort;
690
690
  }
691
691
  }
692
- declare module 'node:worker_threads' {
693
- export * from 'worker_threads';
692
+ declare module 'worker_threads' {
693
+ export * from 'node:worker_threads';
694
694
  }
node/zlib.d.ts CHANGED
@@ -90,7 +90,7 @@
90
90
  * @since v0.5.8
91
91
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/zlib.js)
92
92
  */
93
- declare module 'zlib' {
93
+ declare module 'node:zlib' {
94
94
  import * as stream from 'node:stream';
95
95
  interface ZlibOptions {
96
96
  /**
@@ -512,6 +512,6 @@ declare module 'zlib' {
512
512
  /** @deprecated */
513
513
  const Z_DEFLATED: number;
514
514
  }
515
- declare module 'node:zlib' {
516
- export * from 'zlib';
515
+ declare module 'zlib' {
516
+ export * from 'node:zlib';
517
517
  }