@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.
- node/LICENSE +0 -0
- node/README.md +1 -1
- node/assert/strict.d.ts +0 -0
- node/assert.d.ts +3 -3
- node/async_hooks.d.ts +3 -3
- node/buffer.d.ts +3 -3
- node/child_process.d.ts +3 -3
- node/cluster.d.ts +4 -4
- node/console.d.ts +0 -0
- node/constants.d.ts +3 -3
- node/crypto.d.ts +3 -3
- node/dgram.d.ts +3 -3
- node/diagnostics_channel.d.ts +3 -3
- node/dns/promises.d.ts +3 -3
- node/dns.d.ts +3 -3
- node/dom-events.d.ts +0 -0
- node/domain.d.ts +3 -3
- node/events.d.ts +3 -3
- node/fs/promises.d.ts +4 -3
- node/fs.d.ts +4 -4
- node/globals.d.ts +0 -0
- node/globals.global.d.ts +0 -0
- node/http.d.ts +3 -3
- node/http2.d.ts +3 -3
- node/https.d.ts +3 -3
- node/index.d.ts +0 -0
- node/inspector.d.ts +3 -3
- node/module.d.ts +3 -3
- node/net.d.ts +3 -3
- node/os.d.ts +3 -3
- node/package.json +3 -3
- node/path.d.ts +5 -5
- node/perf_hooks.d.ts +3 -3
- node/process.d.ts +3 -3
- node/punycode.d.ts +3 -3
- node/querystring.d.ts +3 -3
- node/readline/promises.d.ts +3 -3
- node/readline.d.ts +3 -3
- node/repl.d.ts +3 -3
- node/stream/consumers.d.ts +3 -3
- node/stream/promises.d.ts +3 -3
- node/stream/web.d.ts +3 -3
- node/stream.d.ts +3 -3
- node/string_decoder.d.ts +3 -3
- node/test.d.ts +0 -0
- node/timers/promises.d.ts +3 -3
- node/timers.d.ts +3 -3
- node/tls.d.ts +3 -3
- node/trace_events.d.ts +3 -3
- node/ts4.8/assert/strict.d.ts +0 -0
- node/ts4.8/assert.d.ts +3 -3
- node/ts4.8/async_hooks.d.ts +3 -3
- node/ts4.8/buffer.d.ts +3 -3
- node/ts4.8/child_process.d.ts +3 -3
- node/ts4.8/cluster.d.ts +4 -4
- node/ts4.8/console.d.ts +0 -0
- node/ts4.8/constants.d.ts +3 -3
- node/ts4.8/crypto.d.ts +3 -3
- node/ts4.8/dgram.d.ts +3 -3
- node/ts4.8/diagnostics_channel.d.ts +3 -3
- node/ts4.8/dns/promises.d.ts +3 -3
- node/ts4.8/dns.d.ts +3 -3
- node/ts4.8/dom-events.d.ts +0 -0
- node/ts4.8/domain.d.ts +3 -3
- node/ts4.8/events.d.ts +3 -3
- node/ts4.8/fs/promises.d.ts +4 -3
- node/ts4.8/fs.d.ts +4 -4
- node/ts4.8/globals.d.ts +0 -0
- node/ts4.8/globals.global.d.ts +0 -0
- node/ts4.8/http.d.ts +3 -3
- node/ts4.8/http2.d.ts +3 -3
- node/ts4.8/https.d.ts +3 -3
- node/ts4.8/index.d.ts +0 -0
- node/ts4.8/inspector.d.ts +3 -3
- node/ts4.8/module.d.ts +3 -3
- node/ts4.8/net.d.ts +3 -3
- node/ts4.8/os.d.ts +3 -3
- node/ts4.8/path.d.ts +5 -5
- node/ts4.8/perf_hooks.d.ts +3 -3
- node/ts4.8/process.d.ts +3 -3
- node/ts4.8/punycode.d.ts +3 -3
- node/ts4.8/querystring.d.ts +3 -3
- node/ts4.8/readline/promises.d.ts +3 -3
- node/ts4.8/readline.d.ts +3 -3
- node/ts4.8/repl.d.ts +3 -3
- node/ts4.8/stream/consumers.d.ts +3 -3
- node/ts4.8/stream/promises.d.ts +3 -3
- node/ts4.8/stream/web.d.ts +3 -3
- node/ts4.8/stream.d.ts +3 -3
- node/ts4.8/string_decoder.d.ts +3 -3
- node/ts4.8/test.d.ts +0 -0
- node/ts4.8/timers/promises.d.ts +3 -3
- node/ts4.8/timers.d.ts +3 -3
- node/ts4.8/tls.d.ts +3 -3
- node/ts4.8/trace_events.d.ts +3 -3
- node/ts4.8/tty.d.ts +3 -3
- node/ts4.8/url.d.ts +3 -3
- node/ts4.8/util.d.ts +3 -3
- node/ts4.8/v8.d.ts +3 -3
- node/ts4.8/vm.d.ts +3 -3
- node/ts4.8/wasi.d.ts +3 -3
- node/ts4.8/worker_threads.d.ts +3 -3
- node/ts4.8/zlib.d.ts +3 -3
- node/tty.d.ts +3 -3
- node/url.d.ts +3 -3
- node/util.d.ts +3 -3
- node/v8.d.ts +3 -3
- node/vm.d.ts +3 -3
- node/wasi.d.ts +3 -3
- node/worker_threads.d.ts +3 -3
- node/zlib.d.ts +3 -3
node/ts4.8/perf_hooks.d.ts
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
* ```
|
|
30
30
|
* @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/perf_hooks.js)
|
|
31
31
|
*/
|
|
32
|
-
declare module 'perf_hooks' {
|
|
32
|
+
declare module 'node:perf_hooks' {
|
|
33
33
|
import { AsyncResource } from 'node:async_hooks';
|
|
34
34
|
type EntryType = 'node' | 'mark' | 'measure' | 'gc' | 'function' | 'http2' | 'http';
|
|
35
35
|
interface NodeGCPerformanceDetail {
|
|
@@ -633,6 +633,6 @@ declare module 'perf_hooks' {
|
|
|
633
633
|
: typeof _performance;
|
|
634
634
|
}
|
|
635
635
|
}
|
|
636
|
-
declare module '
|
|
637
|
-
export * from 'perf_hooks';
|
|
636
|
+
declare module 'perf_hooks' {
|
|
637
|
+
export * from 'node:perf_hooks';
|
|
638
638
|
}
|
node/ts4.8/process.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare module 'process' {
|
|
1
|
+
declare module 'node:process' {
|
|
2
2
|
import * as tty from 'node:tty';
|
|
3
3
|
import { Worker } from 'node:worker_threads';
|
|
4
4
|
global {
|
|
@@ -1489,7 +1489,7 @@ declare module 'process' {
|
|
|
1489
1489
|
}
|
|
1490
1490
|
export = process;
|
|
1491
1491
|
}
|
|
1492
|
-
declare module '
|
|
1493
|
-
import process = require('process');
|
|
1492
|
+
declare module 'process' {
|
|
1493
|
+
import process = require('node:process');
|
|
1494
1494
|
export = process;
|
|
1495
1495
|
}
|
node/ts4.8/punycode.d.ts
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
* @deprecated Since v7.0.0 - Deprecated
|
|
27
27
|
* @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/punycode.js)
|
|
28
28
|
*/
|
|
29
|
-
declare module 'punycode' {
|
|
29
|
+
declare module 'node:punycode' {
|
|
30
30
|
/**
|
|
31
31
|
* The `punycode.decode()` method converts a [Punycode](https://tools.ietf.org/html/rfc3492) string of ASCII-only
|
|
32
32
|
* characters to the equivalent string of Unicode codepoints.
|
|
@@ -112,6 +112,6 @@ declare module 'punycode' {
|
|
|
112
112
|
*/
|
|
113
113
|
const version: string;
|
|
114
114
|
}
|
|
115
|
-
declare module '
|
|
116
|
-
export * from 'punycode';
|
|
115
|
+
declare module 'punycode' {
|
|
116
|
+
export * from 'node:punycode';
|
|
117
117
|
}
|
node/ts4.8/querystring.d.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* when compatibility with browser code is desirable.
|
|
12
12
|
* @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/querystring.js)
|
|
13
13
|
*/
|
|
14
|
-
declare module 'querystring' {
|
|
14
|
+
declare module 'node:querystring' {
|
|
15
15
|
interface StringifyOptions {
|
|
16
16
|
encodeURIComponent?: ((str: string) => string) | undefined;
|
|
17
17
|
}
|
|
@@ -126,6 +126,6 @@ declare module 'querystring' {
|
|
|
126
126
|
*/
|
|
127
127
|
function unescape(str: string): string;
|
|
128
128
|
}
|
|
129
|
-
declare module '
|
|
130
|
-
export * from 'querystring';
|
|
129
|
+
declare module 'querystring' {
|
|
130
|
+
export * from 'node:querystring';
|
|
131
131
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @since v17.0.0
|
|
3
3
|
* @experimental
|
|
4
4
|
*/
|
|
5
|
-
declare module 'readline/promises' {
|
|
5
|
+
declare module 'node:readline/promises' {
|
|
6
6
|
import { Interface as _Interface, ReadLineOptions, Completer, AsyncCompleter, Direction } from 'node:readline';
|
|
7
7
|
import { Abortable } from 'node:events';
|
|
8
8
|
/**
|
|
@@ -140,6 +140,6 @@ declare module 'readline/promises' {
|
|
|
140
140
|
function createInterface(input: NodeJS.ReadableStream, output?: NodeJS.WritableStream, completer?: Completer | AsyncCompleter, terminal?: boolean): Interface;
|
|
141
141
|
function createInterface(options: ReadLineOptions): Interface;
|
|
142
142
|
}
|
|
143
|
-
declare module '
|
|
144
|
-
export * from 'readline/promises';
|
|
143
|
+
declare module 'readline/promises' {
|
|
144
|
+
export * from 'node:readline/promises';
|
|
145
145
|
}
|
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 '
|
|
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 '
|
|
423
|
-
export * from 'repl';
|
|
422
|
+
declare module 'repl' {
|
|
423
|
+
export * from 'node:repl';
|
|
424
424
|
}
|
node/ts4.8/stream/consumers.d.ts
CHANGED
|
@@ -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 '
|
|
11
|
-
export * from 'stream/consumers';
|
|
10
|
+
declare module 'stream/consumers' {
|
|
11
|
+
export * from 'node:stream/consumers';
|
|
12
12
|
}
|
node/ts4.8/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 '
|
|
41
|
-
export * from 'stream/promises';
|
|
40
|
+
declare module 'stream/promises' {
|
|
41
|
+
export * from 'node:stream/promises';
|
|
42
42
|
}
|
node/ts4.8/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 '
|
|
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 '
|
|
1428
|
-
import stream = require('stream');
|
|
1427
|
+
declare module 'stream' {
|
|
1428
|
+
import stream = require('node:stream');
|
|
1429
1429
|
export = stream;
|
|
1430
1430
|
}
|
node/ts4.8/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 '
|
|
66
|
-
export * from 'string_decoder';
|
|
65
|
+
declare module 'string_decoder' {
|
|
66
|
+
export * from 'node:string_decoder';
|
|
67
67
|
}
|
node/ts4.8/test.d.ts
CHANGED
|
File without changes
|
node/ts4.8/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 '
|
|
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 '
|
|
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 '
|
|
1129
|
-
export * from 'tls';
|
|
1128
|
+
declare module 'tls' {
|
|
1129
|
+
export * from 'node:tls';
|
|
1130
1130
|
}
|
node/ts4.8/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 '
|
|
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 '
|
|
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 '
|
|
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 '
|
|
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 '
|
|
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 '
|
|
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 '
|
|
151
|
-
export * from 'wasi';
|
|
150
|
+
declare module 'wasi' {
|
|
151
|
+
export * from 'node:wasi';
|
|
152
152
|
}
|
node/ts4.8/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 '
|
|
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 '
|
|
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 '
|
|
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 '
|
|
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 '
|
|
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 '
|
|
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 '
|
|
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 '
|
|
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 '
|
|
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 '
|
|
516
|
-
export * from 'zlib';
|
|
515
|
+
declare module 'zlib' {
|
|
516
|
+
export * from 'node:zlib';
|
|
517
517
|
}
|