@types/node 20.6.0 → 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 (111) hide show
  1. node/LICENSE +0 -0
  2. node/README.md +1 -1
  3. node/assert/strict.d.ts +0 -0
  4. node/assert.d.ts +3 -3
  5. node/async_hooks.d.ts +3 -3
  6. node/buffer.d.ts +3 -3
  7. node/child_process.d.ts +3 -3
  8. node/cluster.d.ts +4 -4
  9. node/console.d.ts +0 -0
  10. node/constants.d.ts +3 -3
  11. node/crypto.d.ts +3 -3
  12. node/dgram.d.ts +3 -3
  13. node/diagnostics_channel.d.ts +3 -3
  14. node/dns/promises.d.ts +3 -3
  15. node/dns.d.ts +3 -3
  16. node/dom-events.d.ts +0 -0
  17. node/domain.d.ts +3 -3
  18. node/events.d.ts +3 -3
  19. node/fs/promises.d.ts +4 -3
  20. node/fs.d.ts +4 -4
  21. node/globals.d.ts +0 -0
  22. node/globals.global.d.ts +0 -0
  23. node/http.d.ts +3 -3
  24. node/http2.d.ts +3 -3
  25. node/https.d.ts +3 -3
  26. node/index.d.ts +0 -0
  27. node/inspector.d.ts +3 -3
  28. node/module.d.ts +3 -3
  29. node/net.d.ts +3 -3
  30. node/os.d.ts +3 -3
  31. node/package.json +3 -3
  32. node/path.d.ts +5 -5
  33. node/perf_hooks.d.ts +3 -3
  34. node/process.d.ts +3 -3
  35. node/punycode.d.ts +3 -3
  36. node/querystring.d.ts +3 -3
  37. node/readline/promises.d.ts +3 -3
  38. node/readline.d.ts +3 -3
  39. node/repl.d.ts +3 -3
  40. node/stream/consumers.d.ts +3 -3
  41. node/stream/promises.d.ts +3 -3
  42. node/stream/web.d.ts +3 -3
  43. node/stream.d.ts +3 -3
  44. node/string_decoder.d.ts +3 -3
  45. node/test.d.ts +0 -0
  46. node/timers/promises.d.ts +3 -3
  47. node/timers.d.ts +3 -3
  48. node/tls.d.ts +3 -3
  49. node/trace_events.d.ts +3 -3
  50. node/ts4.8/assert/strict.d.ts +0 -0
  51. node/ts4.8/assert.d.ts +3 -3
  52. node/ts4.8/async_hooks.d.ts +3 -3
  53. node/ts4.8/buffer.d.ts +3 -3
  54. node/ts4.8/child_process.d.ts +3 -3
  55. node/ts4.8/cluster.d.ts +4 -4
  56. node/ts4.8/console.d.ts +0 -0
  57. node/ts4.8/constants.d.ts +3 -3
  58. node/ts4.8/crypto.d.ts +3 -3
  59. node/ts4.8/dgram.d.ts +3 -3
  60. node/ts4.8/diagnostics_channel.d.ts +3 -3
  61. node/ts4.8/dns/promises.d.ts +3 -3
  62. node/ts4.8/dns.d.ts +3 -3
  63. node/ts4.8/dom-events.d.ts +0 -0
  64. node/ts4.8/domain.d.ts +3 -3
  65. node/ts4.8/events.d.ts +3 -3
  66. node/ts4.8/fs/promises.d.ts +4 -3
  67. node/ts4.8/fs.d.ts +4 -4
  68. node/ts4.8/globals.d.ts +0 -0
  69. node/ts4.8/globals.global.d.ts +0 -0
  70. node/ts4.8/http.d.ts +3 -3
  71. node/ts4.8/http2.d.ts +3 -3
  72. node/ts4.8/https.d.ts +3 -3
  73. node/ts4.8/index.d.ts +0 -0
  74. node/ts4.8/inspector.d.ts +3 -3
  75. node/ts4.8/module.d.ts +3 -3
  76. node/ts4.8/net.d.ts +3 -3
  77. node/ts4.8/os.d.ts +3 -3
  78. node/ts4.8/path.d.ts +5 -5
  79. node/ts4.8/perf_hooks.d.ts +3 -3
  80. node/ts4.8/process.d.ts +3 -3
  81. node/ts4.8/punycode.d.ts +3 -3
  82. node/ts4.8/querystring.d.ts +3 -3
  83. node/ts4.8/readline/promises.d.ts +3 -3
  84. node/ts4.8/readline.d.ts +3 -3
  85. node/ts4.8/repl.d.ts +3 -3
  86. node/ts4.8/stream/consumers.d.ts +3 -3
  87. node/ts4.8/stream/promises.d.ts +3 -3
  88. node/ts4.8/stream/web.d.ts +3 -3
  89. node/ts4.8/stream.d.ts +3 -3
  90. node/ts4.8/string_decoder.d.ts +3 -3
  91. node/ts4.8/test.d.ts +0 -0
  92. node/ts4.8/timers/promises.d.ts +3 -3
  93. node/ts4.8/timers.d.ts +3 -3
  94. node/ts4.8/tls.d.ts +3 -3
  95. node/ts4.8/trace_events.d.ts +3 -3
  96. node/ts4.8/tty.d.ts +3 -3
  97. node/ts4.8/url.d.ts +3 -3
  98. node/ts4.8/util.d.ts +3 -3
  99. node/ts4.8/v8.d.ts +3 -3
  100. node/ts4.8/vm.d.ts +3 -3
  101. node/ts4.8/wasi.d.ts +3 -3
  102. node/ts4.8/worker_threads.d.ts +3 -3
  103. node/ts4.8/zlib.d.ts +3 -3
  104. node/tty.d.ts +3 -3
  105. node/url.d.ts +3 -3
  106. node/util.d.ts +3 -3
  107. node/v8.d.ts +3 -3
  108. node/vm.d.ts +3 -3
  109. node/wasi.d.ts +3 -3
  110. node/worker_threads.d.ts +3 -3
  111. node/zlib.d.ts +3 -3
@@ -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
  }
node/stream/promises.d.ts CHANGED
@@ -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
  }
node/stream/web.d.ts CHANGED
@@ -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/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';
@@ -1562,7 +1562,7 @@ declare module 'stream' {
1562
1562
  }
1563
1563
  export = internal;
1564
1564
  }
1565
- declare module 'node:stream' {
1566
- import stream = require('stream');
1565
+ declare module 'stream' {
1566
+ import stream = require('node:stream');
1567
1567
  export = stream;
1568
1568
  }
node/string_decoder.d.ts CHANGED
@@ -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
  }
node/test.d.ts CHANGED
File without changes
node/timers/promises.d.ts CHANGED
@@ -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/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/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
  }
node/trace_events.d.ts CHANGED
@@ -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
  }
File without changes
node/ts4.8/assert.d.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  * invariants.
4
4
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/assert.js)
5
5
  */
6
- declare module 'assert' {
6
+ declare module 'node:assert' {
7
7
  /**
8
8
  * An alias of {@link ok}.
9
9
  * @since v0.5.9
@@ -966,7 +966,7 @@ declare module 'assert' {
966
966
  }
967
967
  export = assert;
968
968
  }
969
- declare module 'node:assert' {
970
- import assert = require('assert');
969
+ declare module 'assert' {
970
+ import assert = require('node:assert');
971
971
  export = assert;
972
972
  }
@@ -14,7 +14,7 @@
14
14
  * @experimental
15
15
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/async_hooks.js)
16
16
  */
17
- declare module 'async_hooks' {
17
+ declare module 'node:async_hooks' {
18
18
  /**
19
19
  * ```js
20
20
  * import { executionAsyncId } from 'node:async_hooks';
@@ -527,6 +527,6 @@ declare module 'async_hooks' {
527
527
  enterWith(store: T): void;
528
528
  }
529
529
  }
530
- declare module 'node:async_hooks' {
531
- export * from 'async_hooks';
530
+ declare module 'async_hooks' {
531
+ export * from 'node:async_hooks';
532
532
  }
node/ts4.8/buffer.d.ts CHANGED
@@ -43,7 +43,7 @@
43
43
  * ```
44
44
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/buffer.js)
45
45
  */
46
- declare module 'buffer' {
46
+ declare module 'node:buffer' {
47
47
  import { BinaryLike } from 'node:crypto';
48
48
  import { ReadableStream as WebReadableStream } from 'node:stream/web';
49
49
  /**
@@ -2349,6 +2349,6 @@ declare module 'buffer' {
2349
2349
  : typeof NodeBlob;
2350
2350
  }
2351
2351
  }
2352
- declare module 'node:buffer' {
2353
- export * from 'buffer';
2352
+ declare module 'buffer' {
2353
+ export * from 'node:buffer';
2354
2354
  }
@@ -65,7 +65,7 @@
65
65
  * stalling the event loop while spawned processes complete.
66
66
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/child_process.js)
67
67
  */
68
- declare module 'child_process' {
68
+ declare module 'node:child_process' {
69
69
  import { ObjectEncodingOptions } from 'node:fs';
70
70
  import { EventEmitter, Abortable } from 'node:events';
71
71
  import * as net from 'node:net';
@@ -1395,6 +1395,6 @@ declare module 'child_process' {
1395
1395
  function execFileSync(file: string, args: ReadonlyArray<string>, options: ExecFileSyncOptionsWithBufferEncoding): Buffer;
1396
1396
  function execFileSync(file: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptions): string | Buffer;
1397
1397
  }
1398
- declare module 'node:child_process' {
1399
- export * from 'child_process';
1398
+ declare module 'child_process' {
1399
+ export * from 'node:child_process';
1400
1400
  }
node/ts4.8/cluster.d.ts CHANGED
@@ -52,7 +52,7 @@
52
52
  * On Windows, it is not yet possible to set up a named pipe server in a worker.
53
53
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/cluster.js)
54
54
  */
55
- declare module 'cluster' {
55
+ declare module 'node:cluster' {
56
56
  import * as child from 'node:child_process';
57
57
  import EventEmitter = require('node:events');
58
58
  import * as net from 'node:net';
@@ -408,7 +408,7 @@ declare module 'cluster' {
408
408
  const cluster: Cluster;
409
409
  export default cluster;
410
410
  }
411
- declare module 'node:cluster' {
412
- export * from 'cluster';
413
- export { default as default } from 'cluster';
411
+ declare module 'cluster' {
412
+ export * from 'node:cluster';
413
+ export { default as default } from 'node:cluster';
414
414
  }
node/ts4.8/console.d.ts CHANGED
File without changes
node/ts4.8/constants.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /** @deprecated since v6.3.0 - use constants property exposed by the relevant module instead. */
2
- declare module 'constants' {
2
+ declare module 'node:constants' {
3
3
  import { constants as osConstants, SignalConstants } from 'node:os';
4
4
  import { constants as cryptoConstants } from 'node:crypto';
5
5
  import { constants as fsConstants } from 'node:fs';
@@ -12,7 +12,7 @@ declare module 'constants' {
12
12
  export = exp;
13
13
  }
14
14
 
15
- declare module 'node:constants' {
16
- import constants = require('constants');
15
+ declare module 'constants' {
16
+ import constants = require('node:constants');
17
17
  export = constants;
18
18
  }
node/ts4.8/crypto.d.ts CHANGED
@@ -16,7 +16,7 @@
16
16
  * ```
17
17
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/crypto.js)
18
18
  */
19
- declare module 'crypto' {
19
+ declare module 'node:crypto' {
20
20
  import * as stream from 'node:stream';
21
21
  import { PeerCertificate } from 'node:tls';
22
22
  /**
@@ -3972,6 +3972,6 @@ declare module 'crypto' {
3972
3972
  }
3973
3973
  }
3974
3974
  }
3975
- declare module 'node:crypto' {
3976
- export * from 'crypto';
3975
+ declare module 'crypto' {
3976
+ export * from 'node:crypto';
3977
3977
  }
node/ts4.8/dgram.d.ts CHANGED
@@ -25,7 +25,7 @@
25
25
  * ```
26
26
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/dgram.js)
27
27
  */
28
- declare module 'dgram' {
28
+ declare module 'node:dgram' {
29
29
  import { AddressInfo } from 'node:net';
30
30
  import * as dns from 'node:dns';
31
31
  import { EventEmitter, Abortable } from 'node:events';
@@ -545,6 +545,6 @@ declare module 'dgram' {
545
545
  [Symbol.asyncDispose](): Promise<void>;
546
546
  }
547
547
  }
548
- declare module 'node:dgram' {
549
- export * from 'dgram';
548
+ declare module 'dgram' {
549
+ export * from 'node:dgram';
550
550
  }
@@ -22,7 +22,7 @@
22
22
  * @since v15.1.0, v14.17.0
23
23
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/diagnostics_channel.js)
24
24
  */
25
- declare module 'diagnostics_channel' {
25
+ declare module 'node:diagnostics_channel' {
26
26
  /**
27
27
  * Check if there are active subscribers to the named channel. This is helpful if
28
28
  * the message you want to send might be expensive to prepare.
@@ -186,6 +186,6 @@ declare module 'diagnostics_channel' {
186
186
  unsubscribe(onMessage: ChannelListener): void;
187
187
  }
188
188
  }
189
- declare module 'node:diagnostics_channel' {
190
- export * from 'diagnostics_channel';
189
+ declare module 'diagnostics_channel' {
190
+ export * from 'node:diagnostics_channel';
191
191
  }
@@ -4,7 +4,7 @@
4
4
  * via `require('node:dns').promises` or `require('node:dns/promises')`.
5
5
  * @since v10.6.0
6
6
  */
7
- declare module 'dns/promises' {
7
+ declare module 'node:dns/promises' {
8
8
  import {
9
9
  LookupAddress,
10
10
  LookupOneOptions,
@@ -409,6 +409,6 @@ declare module 'dns/promises' {
409
409
  setServers: typeof setServers;
410
410
  }
411
411
  }
412
- declare module 'node:dns/promises' {
413
- export * from 'dns/promises';
412
+ declare module 'dns/promises' {
413
+ export * from 'node:dns/promises';
414
414
  }
node/ts4.8/dns.d.ts CHANGED
@@ -44,7 +44,7 @@
44
44
  * See the `Implementation considerations section` for more information.
45
45
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/dns.js)
46
46
  */
47
- declare module 'dns' {
47
+ declare module 'node:dns' {
48
48
  import * as dnsPromises from 'node:dns/promises';
49
49
  // Supported getaddrinfo flags.
50
50
  export const ADDRCONFIG: number;
@@ -663,6 +663,6 @@ declare module 'dns' {
663
663
  }
664
664
  export { dnsPromises as promises };
665
665
  }
666
- declare module 'node:dns' {
667
- export * from 'dns';
666
+ declare module 'dns' {
667
+ export * from 'node:dns';
668
668
  }
File without changes
node/ts4.8/domain.d.ts CHANGED
@@ -14,7 +14,7 @@
14
14
  * @deprecated Since v1.4.2 - Deprecated
15
15
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/domain.js)
16
16
  */
17
- declare module 'domain' {
17
+ declare module 'node:domain' {
18
18
  import EventEmitter = require('node:events');
19
19
  /**
20
20
  * The `Domain` class encapsulates the functionality of routing errors and
@@ -165,6 +165,6 @@ declare module 'domain' {
165
165
  }
166
166
  function create(): Domain;
167
167
  }
168
- declare module 'node:domain' {
169
- export * from 'domain';
168
+ declare module 'domain' {
169
+ export * from 'node:domain';
170
170
  }
node/ts4.8/events.d.ts CHANGED
@@ -34,7 +34,7 @@
34
34
  * ```
35
35
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/events.js)
36
36
  */
37
- declare module 'events' {
37
+ declare module 'node:events' {
38
38
  // NOTE: This class is in the docs but is **not actually exported** by Node.
39
39
  // If https://github.com/nodejs/node/issues/39903 gets resolved and Node
40
40
  // actually starts exporting the class, uncomment below.
@@ -782,7 +782,7 @@ declare module 'events' {
782
782
  }
783
783
  export = EventEmitter;
784
784
  }
785
- declare module 'node:events' {
786
- import events = require('events');
785
+ declare module 'events' {
786
+ import events = require('node:events');
787
787
  export = events;
788
788
  }
@@ -8,7 +8,7 @@
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 { Abortable } from 'node:events';
13
13
  import { Stream } from 'node:stream';
14
14
  import { ReadableStream } from 'node:stream/web';
@@ -81,6 +81,7 @@ declare module 'fs/promises' {
81
81
  autoClose?: boolean | undefined;
82
82
  emitClose?: boolean | undefined;
83
83
  start?: number | undefined;
84
+ highWaterMark?: number | undefined;
84
85
  }
85
86
  interface ReadableWebStreamOptions {
86
87
  /**
@@ -1197,6 +1198,6 @@ declare module 'fs/promises' {
1197
1198
  */
1198
1199
  function cp(source: string | URL, destination: string | URL, opts?: CopyOptions): Promise<void>;
1199
1200
  }
1200
- declare module 'node:fs/promises' {
1201
- export * from 'fs/promises';
1201
+ declare module 'fs/promises' {
1202
+ export * from 'node:fs/promises';
1202
1203
  }
node/ts4.8/fs.d.ts CHANGED
@@ -18,7 +18,7 @@
18
18
  * forms, and are accessible using both CommonJS syntax and ES6 Modules (ESM).
19
19
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/fs.js)
20
20
  */
21
- declare module 'fs' {
21
+ declare module 'node:fs' {
22
22
  import * as stream from 'node:stream';
23
23
  import { Abortable, EventEmitter } from 'node:events';
24
24
  import { URL } from 'node:url';
@@ -3621,6 +3621,7 @@ declare module 'fs' {
3621
3621
  emitClose?: boolean | undefined;
3622
3622
  start?: number | undefined;
3623
3623
  signal?: AbortSignal | null | undefined;
3624
+ highWaterMark?: number | undefined;
3624
3625
  }
3625
3626
  interface FSImplementation {
3626
3627
  open?: (...args: any[]) => any;
@@ -3636,7 +3637,6 @@ declare module 'fs' {
3636
3637
  interface ReadStreamOptions extends StreamOptions {
3637
3638
  fs?: CreateReadStreamFSImplementation | null | undefined;
3638
3639
  end?: number | undefined;
3639
- highWaterMark?: number | undefined;
3640
3640
  }
3641
3641
  interface WriteStreamOptions extends StreamOptions {
3642
3642
  fs?: CreateWriteStreamFSImplementation | null | undefined;
@@ -4082,6 +4082,6 @@ declare module 'fs' {
4082
4082
  */
4083
4083
  export function cpSync(source: string | URL, destination: string | URL, opts?: CopySyncOptions): void;
4084
4084
  }
4085
- declare module 'node:fs' {
4086
- export * from 'fs';
4085
+ declare module 'fs' {
4086
+ export * from 'node:fs';
4087
4087
  }
node/ts4.8/globals.d.ts CHANGED
File without changes
File without changes
node/ts4.8/http.d.ts CHANGED
@@ -39,7 +39,7 @@
39
39
  * ```
40
40
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/http.js)
41
41
  */
42
- declare module 'http' {
42
+ declare module 'node:http' {
43
43
  import * as stream from 'node:stream';
44
44
  import { URL } from 'node:url';
45
45
  import { LookupOptions } from 'node:dns';
@@ -1751,6 +1751,6 @@ declare module 'http' {
1751
1751
  */
1752
1752
  const maxHeaderSize: number;
1753
1753
  }
1754
- declare module 'node:http' {
1755
- export * from 'http';
1754
+ declare module 'http' {
1755
+ export * from 'node:http';
1756
1756
  }
node/ts4.8/http2.d.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  * @since v8.4.0
9
9
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/http2.js)
10
10
  */
11
- declare module 'http2' {
11
+ declare module 'node:http2' {
12
12
  import EventEmitter = require('node:events');
13
13
  import * as fs from 'node:fs';
14
14
  import * as net from 'node:net';
@@ -2124,6 +2124,6 @@ declare module 'http2' {
2124
2124
  listener?: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void
2125
2125
  ): ClientHttp2Session;
2126
2126
  }
2127
- declare module 'node:http2' {
2128
- export * from 'http2';
2127
+ declare module 'http2' {
2128
+ export * from 'node:http2';
2129
2129
  }
node/ts4.8/https.d.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  * separate module.
4
4
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/https.js)
5
5
  */
6
- declare module 'https' {
6
+ declare module 'node:https' {
7
7
  import { Duplex } from 'node:stream';
8
8
  import * as tls from 'node:tls';
9
9
  import * as http from 'node:http';
@@ -436,6 +436,6 @@ declare module 'https' {
436
436
  function get(url: string | URL, options: RequestOptions, callback?: (res: http.IncomingMessage) => void): http.ClientRequest;
437
437
  let globalAgent: Agent;
438
438
  }
439
- declare module 'node:https' {
440
- export * from 'https';
439
+ declare module 'https' {
440
+ export * from 'node:https';
441
441
  }
node/ts4.8/index.d.ts CHANGED
File without changes
node/ts4.8/inspector.d.ts CHANGED
@@ -23,7 +23,7 @@
23
23
  * ```
24
24
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/inspector.js)
25
25
  */
26
- declare module 'inspector' {
26
+ declare module 'node:inspector' {
27
27
  import EventEmitter = require('node:events');
28
28
  interface InspectorNotification<T> {
29
29
  method: string;
@@ -2742,7 +2742,7 @@ declare module 'inspector' {
2742
2742
  /**
2743
2743
  * The inspector module provides an API for interacting with the V8 inspector.
2744
2744
  */
2745
- declare module 'node:inspector' {
2746
- import inspector = require('inspector');
2745
+ declare module 'inspector' {
2746
+ import inspector = require('node:inspector');
2747
2747
  export = inspector;
2748
2748
  }
node/ts4.8/module.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @since v0.3.7
3
3
  */
4
- declare module 'module' {
4
+ declare module 'node:module' {
5
5
  import { URL } from 'node:url';
6
6
  import { MessagePort } from 'node:worker_threads';
7
7
  namespace Module {
@@ -251,7 +251,7 @@ declare module 'module' {
251
251
  }
252
252
  export = Module;
253
253
  }
254
- declare module 'node:module' {
255
- import module = require('module');
254
+ declare module 'module' {
255
+ import module = require('node:module');
256
256
  export = module;
257
257
  }
node/ts4.8/net.d.ts CHANGED
@@ -12,7 +12,7 @@
12
12
  * ```
13
13
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/net.js)
14
14
  */
15
- declare module 'net' {
15
+ declare module 'node:net' {
16
16
  import * as stream from 'node:stream';
17
17
  import { Abortable, EventEmitter } from 'node:events';
18
18
  import * as dns from 'node:dns';
@@ -888,6 +888,6 @@ declare module 'net' {
888
888
  readonly flowlabel: number;
889
889
  }
890
890
  }
891
- declare module 'node:net' {
892
- export * from 'net';
891
+ declare module 'net' {
892
+ export * from 'node:net';
893
893
  }
node/ts4.8/os.d.ts CHANGED
@@ -7,7 +7,7 @@
7
7
  * ```
8
8
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/os.js)
9
9
  */
10
- declare module 'os' {
10
+ declare module 'node:os' {
11
11
  interface CpuInfo {
12
12
  model: string;
13
13
  speed: number;
@@ -472,6 +472,6 @@ declare module 'os' {
472
472
  function setPriority(priority: number): void;
473
473
  function setPriority(pid: number, priority: number): void;
474
474
  }
475
- declare module 'node:os' {
476
- export * from 'os';
475
+ declare module 'os' {
476
+ export * from 'node:os';
477
477
  }
node/ts4.8/path.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  declare module 'path/posix' {
2
- import path = require('path');
2
+ import path = require('node:path');
3
3
  export = path;
4
4
  }
5
5
  declare module 'path/win32' {
6
- import path = require('path');
6
+ import path = require('node:path');
7
7
  export = path;
8
8
  }
9
9
  /**
@@ -15,7 +15,7 @@ declare module 'path/win32' {
15
15
  * ```
16
16
  * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/path.js)
17
17
  */
18
- declare module 'path' {
18
+ declare module 'node:path' {
19
19
  namespace path {
20
20
  /**
21
21
  * A parsed path object generated by path.parse() or consumed by path.format().
@@ -177,8 +177,8 @@ declare module 'path' {
177
177
  const path: path.PlatformPath;
178
178
  export = path;
179
179
  }
180
- declare module 'node:path' {
181
- import path = require('path');
180
+ declare module 'path' {
181
+ import path = require('node:path');
182
182
  export = path;
183
183
  }
184
184
  declare module 'node:path/posix' {