@types/node 16.18.52 → 16.18.53
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 v16.18/README.md +1 -1
- node v16.18/assert.d.ts +3 -3
- node v16.18/async_hooks.d.ts +3 -3
- node v16.18/buffer.d.ts +3 -3
- node v16.18/child_process.d.ts +3 -3
- node v16.18/cluster.d.ts +4 -4
- node v16.18/constants.d.ts +3 -3
- node v16.18/crypto.d.ts +3 -3
- node v16.18/dgram.d.ts +3 -3
- node v16.18/diagnostics_channel.d.ts +3 -3
- node v16.18/dns/promises.d.ts +3 -3
- node v16.18/dns.d.ts +3 -3
- node v16.18/domain.d.ts +3 -3
- node v16.18/events.d.ts +3 -3
- node v16.18/fs/promises.d.ts +3 -3
- node v16.18/fs.d.ts +3 -3
- node v16.18/http.d.ts +3 -3
- node v16.18/http2.d.ts +3 -3
- node v16.18/https.d.ts +3 -3
- node v16.18/inspector.d.ts +3 -3
- node v16.18/module.d.ts +3 -3
- node v16.18/net.d.ts +3 -3
- node v16.18/os.d.ts +3 -3
- node v16.18/package.json +2 -2
- node v16.18/path.d.ts +5 -5
- node v16.18/perf_hooks.d.ts +3 -3
- node v16.18/process.d.ts +3 -3
- node v16.18/punycode.d.ts +3 -3
- node v16.18/querystring.d.ts +3 -3
- node v16.18/readline.d.ts +3 -3
- node v16.18/repl.d.ts +3 -3
- node v16.18/stream/consumers.d.ts +3 -3
- node v16.18/stream/promises.d.ts +3 -3
- node v16.18/stream/web.d.ts +3 -3
- node v16.18/stream.d.ts +3 -3
- node v16.18/string_decoder.d.ts +3 -3
- node v16.18/timers/promises.d.ts +3 -3
- node v16.18/timers.d.ts +3 -3
- node v16.18/tls.d.ts +3 -3
- node v16.18/trace_events.d.ts +3 -3
- node v16.18/ts4.8/assert.d.ts +3 -3
- node v16.18/ts4.8/async_hooks.d.ts +3 -3
- node v16.18/ts4.8/buffer.d.ts +3 -3
- node v16.18/ts4.8/child_process.d.ts +3 -3
- node v16.18/ts4.8/cluster.d.ts +4 -4
- node v16.18/ts4.8/constants.d.ts +3 -3
- node v16.18/ts4.8/crypto.d.ts +3 -3
- node v16.18/ts4.8/dgram.d.ts +3 -3
- node v16.18/ts4.8/diagnostics_channel.d.ts +3 -3
- node v16.18/ts4.8/dns/promises.d.ts +3 -3
- node v16.18/ts4.8/dns.d.ts +3 -3
- node v16.18/ts4.8/domain.d.ts +3 -3
- node v16.18/ts4.8/events.d.ts +3 -3
- node v16.18/ts4.8/fs/promises.d.ts +3 -3
- node v16.18/ts4.8/fs.d.ts +3 -3
- node v16.18/ts4.8/http.d.ts +3 -3
- node v16.18/ts4.8/http2.d.ts +3 -3
- node v16.18/ts4.8/https.d.ts +3 -3
- node v16.18/ts4.8/inspector.d.ts +3 -3
- node v16.18/ts4.8/module.d.ts +3 -3
- node v16.18/ts4.8/net.d.ts +3 -3
- node v16.18/ts4.8/os.d.ts +3 -3
- node v16.18/ts4.8/path.d.ts +5 -5
- node v16.18/ts4.8/perf_hooks.d.ts +3 -3
- node v16.18/ts4.8/process.d.ts +3 -3
- node v16.18/ts4.8/punycode.d.ts +3 -3
- node v16.18/ts4.8/querystring.d.ts +3 -3
- node v16.18/ts4.8/readline.d.ts +3 -3
- node v16.18/ts4.8/repl.d.ts +3 -3
- node v16.18/ts4.8/stream/consumers.d.ts +3 -3
- node v16.18/ts4.8/stream/promises.d.ts +3 -3
- node v16.18/ts4.8/stream/web.d.ts +3 -3
- node v16.18/ts4.8/stream.d.ts +3 -3
- node v16.18/ts4.8/string_decoder.d.ts +3 -3
- node v16.18/ts4.8/timers/promises.d.ts +3 -3
- node v16.18/ts4.8/timers.d.ts +3 -3
- node v16.18/ts4.8/tls.d.ts +3 -3
- node v16.18/ts4.8/trace_events.d.ts +3 -3
- node v16.18/ts4.8/tty.d.ts +3 -3
- node v16.18/ts4.8/url.d.ts +3 -3
- node v16.18/ts4.8/util.d.ts +3 -3
- node v16.18/ts4.8/v8.d.ts +3 -3
- node v16.18/ts4.8/vm.d.ts +3 -3
- node v16.18/ts4.8/wasi.d.ts +3 -3
- node v16.18/ts4.8/worker_threads.d.ts +3 -3
- node v16.18/ts4.8/zlib.d.ts +3 -3
- node v16.18/tty.d.ts +3 -3
- node v16.18/url.d.ts +3 -3
- node v16.18/util.d.ts +3 -3
- node v16.18/v8.d.ts +3 -3
- node v16.18/vm.d.ts +3 -3
- node v16.18/wasi.d.ts +3 -3
- node v16.18/worker_threads.d.ts +3 -3
- node v16.18/zlib.d.ts +3 -3
node v16.18/string_decoder.d.ts
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
* ```
|
|
39
39
|
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/string_decoder.js)
|
|
40
40
|
*/
|
|
41
|
-
declare module '
|
|
41
|
+
declare module 'string_decoder' {
|
|
42
42
|
class StringDecoder {
|
|
43
43
|
constructor(encoding?: BufferEncoding);
|
|
44
44
|
/**
|
|
@@ -62,6 +62,6 @@ declare module 'node:string_decoder' {
|
|
|
62
62
|
end(buffer?: Buffer): string;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
declare module 'string_decoder' {
|
|
66
|
-
export * from '
|
|
65
|
+
declare module 'node:string_decoder' {
|
|
66
|
+
export * from 'string_decoder';
|
|
67
67
|
}
|
node v16.18/timers/promises.d.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* ```
|
|
12
12
|
* @since v15.0.0
|
|
13
13
|
*/
|
|
14
|
-
declare module '
|
|
14
|
+
declare module 'timers/promises' {
|
|
15
15
|
import { TimerOptions } from 'node:timers';
|
|
16
16
|
/**
|
|
17
17
|
* ```js
|
|
@@ -88,6 +88,6 @@ declare module 'node:timers/promises' {
|
|
|
88
88
|
|
|
89
89
|
const scheduler: Scheduler;
|
|
90
90
|
}
|
|
91
|
-
declare module 'timers/promises' {
|
|
92
|
-
export * from '
|
|
91
|
+
declare module 'node:timers/promises' {
|
|
92
|
+
export * from 'timers/promises';
|
|
93
93
|
}
|
node v16.18/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/v16.9.0/lib/timers.js)
|
|
10
10
|
*/
|
|
11
|
-
declare module '
|
|
11
|
+
declare module '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 {
|
|
@@ -89,6 +89,6 @@ declare module 'node:timers' {
|
|
|
89
89
|
function queueMicrotask(callback: () => void): void;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
declare module 'timers' {
|
|
93
|
-
export * from '
|
|
92
|
+
declare module 'node:timers' {
|
|
93
|
+
export * from 'timers';
|
|
94
94
|
}
|
node v16.18/tls.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* ```
|
|
9
9
|
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/tls.js)
|
|
10
10
|
*/
|
|
11
|
-
declare module '
|
|
11
|
+
declare module 'tls' {
|
|
12
12
|
import { X509Certificate } from 'node:crypto';
|
|
13
13
|
import * as net from 'node:net';
|
|
14
14
|
const CLIENT_RENEG_LIMIT: number;
|
|
@@ -1014,6 +1014,6 @@ declare module 'node:tls' {
|
|
|
1014
1014
|
*/
|
|
1015
1015
|
const rootCertificates: ReadonlyArray<string>;
|
|
1016
1016
|
}
|
|
1017
|
-
declare module 'tls' {
|
|
1018
|
-
export * from '
|
|
1017
|
+
declare module 'node:tls' {
|
|
1018
|
+
export * from 'tls';
|
|
1019
1019
|
}
|
node v16.18/trace_events.d.ts
CHANGED
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
* @experimental
|
|
76
76
|
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/trace_events.js)
|
|
77
77
|
*/
|
|
78
|
-
declare module '
|
|
78
|
+
declare module 'trace_events' {
|
|
79
79
|
/**
|
|
80
80
|
* The `Tracing` object is used to enable or disable tracing for sets of
|
|
81
81
|
* categories. Instances are created using the
|
|
@@ -156,6 +156,6 @@ declare module 'node:trace_events' {
|
|
|
156
156
|
*/
|
|
157
157
|
function getEnabledCategories(): string | undefined;
|
|
158
158
|
}
|
|
159
|
-
declare module 'trace_events' {
|
|
160
|
-
export * from '
|
|
159
|
+
declare module 'node:trace_events' {
|
|
160
|
+
export * from 'trace_events';
|
|
161
161
|
}
|
node v16.18/ts4.8/assert.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* invariants.
|
|
4
4
|
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/assert.js)
|
|
5
5
|
*/
|
|
6
|
-
declare module '
|
|
6
|
+
declare module 'assert' {
|
|
7
7
|
/**
|
|
8
8
|
* An alias of {@link ok}.
|
|
9
9
|
* @since v0.5.9
|
|
@@ -956,7 +956,7 @@ declare module 'node:assert' {
|
|
|
956
956
|
}
|
|
957
957
|
export = assert;
|
|
958
958
|
}
|
|
959
|
-
declare module 'assert' {
|
|
960
|
-
import assert = require('
|
|
959
|
+
declare module 'node:assert' {
|
|
960
|
+
import assert = require('assert');
|
|
961
961
|
export = assert;
|
|
962
962
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @experimental
|
|
9
9
|
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/async_hooks.js)
|
|
10
10
|
*/
|
|
11
|
-
declare module '
|
|
11
|
+
declare module 'async_hooks' {
|
|
12
12
|
/**
|
|
13
13
|
* ```js
|
|
14
14
|
* import { executionAsyncId } from 'async_hooks';
|
|
@@ -493,6 +493,6 @@ declare module 'node:async_hooks' {
|
|
|
493
493
|
enterWith(store: T): void;
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
|
-
declare module 'async_hooks' {
|
|
497
|
-
export * from '
|
|
496
|
+
declare module 'node:async_hooks' {
|
|
497
|
+
export * from 'async_hooks';
|
|
498
498
|
}
|
node v16.18/ts4.8/buffer.d.ts
CHANGED
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
* ```
|
|
44
44
|
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/buffer.js)
|
|
45
45
|
*/
|
|
46
|
-
declare module '
|
|
46
|
+
declare module 'buffer' {
|
|
47
47
|
import { BinaryLike } from 'node:crypto';
|
|
48
48
|
import { ReadableStream as WebReadableStream } from 'node:stream/web';
|
|
49
49
|
export const INSPECT_MAX_BYTES: number;
|
|
@@ -2231,6 +2231,6 @@ declare module 'node:buffer' {
|
|
|
2231
2231
|
function btoa(data: string): string;
|
|
2232
2232
|
}
|
|
2233
2233
|
}
|
|
2234
|
-
declare module 'buffer' {
|
|
2235
|
-
export * from '
|
|
2234
|
+
declare module 'node:buffer' {
|
|
2235
|
+
export * from 'buffer';
|
|
2236
2236
|
}
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
* stalling the event loop while spawned processes complete.
|
|
63
63
|
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/child_process.js)
|
|
64
64
|
*/
|
|
65
|
-
declare module '
|
|
65
|
+
declare module 'child_process' {
|
|
66
66
|
import { ObjectEncodingOptions } from 'node:fs';
|
|
67
67
|
import { EventEmitter, Abortable } from 'node:events';
|
|
68
68
|
import * as net from 'node:net';
|
|
@@ -1391,6 +1391,6 @@ declare module 'node:child_process' {
|
|
|
1391
1391
|
function execFileSync(file: string, args: ReadonlyArray<string>, options: ExecFileSyncOptionsWithBufferEncoding): Buffer;
|
|
1392
1392
|
function execFileSync(file: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptions): string | Buffer;
|
|
1393
1393
|
}
|
|
1394
|
-
declare module 'child_process' {
|
|
1395
|
-
export * from '
|
|
1394
|
+
declare module 'node:child_process' {
|
|
1395
|
+
export * from 'child_process';
|
|
1396
1396
|
}
|
node v16.18/ts4.8/cluster.d.ts
CHANGED
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
* On Windows, it is not yet possible to set up a named pipe server in a worker.
|
|
52
52
|
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/cluster.js)
|
|
53
53
|
*/
|
|
54
|
-
declare module '
|
|
54
|
+
declare module 'cluster' {
|
|
55
55
|
import * as child from 'node:child_process';
|
|
56
56
|
import EventEmitter = require('node:events');
|
|
57
57
|
import * as net from 'node:net';
|
|
@@ -412,7 +412,7 @@ declare module 'node:cluster' {
|
|
|
412
412
|
const cluster: Cluster;
|
|
413
413
|
export default cluster;
|
|
414
414
|
}
|
|
415
|
-
declare module 'cluster' {
|
|
416
|
-
export * from '
|
|
417
|
-
export { default as default } from '
|
|
415
|
+
declare module 'node:cluster' {
|
|
416
|
+
export * from 'cluster';
|
|
417
|
+
export { default as default } from 'cluster';
|
|
418
418
|
}
|
node v16.18/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 '
|
|
2
|
+
declare module '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 'node:constants' {
|
|
|
12
12
|
export = exp;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
declare module 'constants' {
|
|
16
|
-
import constants = require('
|
|
15
|
+
declare module 'node:constants' {
|
|
16
|
+
import constants = require('constants');
|
|
17
17
|
export = constants;
|
|
18
18
|
}
|
node v16.18/ts4.8/crypto.d.ts
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* ```
|
|
16
16
|
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/crypto.js)
|
|
17
17
|
*/
|
|
18
|
-
declare module '
|
|
18
|
+
declare module 'crypto' {
|
|
19
19
|
import * as stream from 'node:stream';
|
|
20
20
|
import { PeerCertificate } from 'node:tls';
|
|
21
21
|
interface Certificate {
|
|
@@ -3861,6 +3861,6 @@ declare module 'node:crypto' {
|
|
|
3861
3861
|
}
|
|
3862
3862
|
}
|
|
3863
3863
|
}
|
|
3864
|
-
declare module 'crypto' {
|
|
3865
|
-
export * from '
|
|
3864
|
+
declare module 'node:crypto' {
|
|
3865
|
+
export * from 'crypto';
|
|
3866
3866
|
}
|
node v16.18/ts4.8/dgram.d.ts
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* ```
|
|
26
26
|
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/dgram.js)
|
|
27
27
|
*/
|
|
28
|
-
declare module '
|
|
28
|
+
declare module 'dgram' {
|
|
29
29
|
import { AddressInfo } from 'node:net';
|
|
30
30
|
import * as dns from 'node:dns';
|
|
31
31
|
import { EventEmitter, Abortable } from 'node:events';
|
|
@@ -540,6 +540,6 @@ declare module 'node:dgram' {
|
|
|
540
540
|
prependOnceListener(event: 'message', listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
|
-
declare module 'dgram' {
|
|
544
|
-
export * from '
|
|
543
|
+
declare module 'node:dgram' {
|
|
544
|
+
export * from 'dgram';
|
|
545
545
|
}
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* @experimental
|
|
23
23
|
* @see [source](https://github.com/nodejs/node/blob/v16.19.1/lib/diagnostics_channel.js)
|
|
24
24
|
*/
|
|
25
|
-
declare module '
|
|
25
|
+
declare module '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 'node:diagnostics_channel' {
|
|
|
186
186
|
unsubscribe(onMessage: ChannelListener): void;
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
|
-
declare module 'diagnostics_channel' {
|
|
190
|
-
export * from '
|
|
189
|
+
declare module 'node:diagnostics_channel' {
|
|
190
|
+
export * from 'diagnostics_channel';
|
|
191
191
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* via `require('dns').promises` or `require('dns/promises')`.
|
|
5
5
|
* @since v10.6.0
|
|
6
6
|
*/
|
|
7
|
-
declare module '
|
|
7
|
+
declare module 'dns/promises' {
|
|
8
8
|
import {
|
|
9
9
|
LookupAddress,
|
|
10
10
|
LookupOneOptions,
|
|
@@ -363,6 +363,6 @@ declare module 'node:dns/promises' {
|
|
|
363
363
|
setServers: typeof setServers;
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
|
-
declare module 'dns/promises' {
|
|
367
|
-
export * from '
|
|
366
|
+
declare module 'node:dns/promises' {
|
|
367
|
+
export * from 'dns/promises';
|
|
368
368
|
}
|
node v16.18/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/v16.9.0/lib/dns.js)
|
|
46
46
|
*/
|
|
47
|
-
declare module '
|
|
47
|
+
declare module 'dns' {
|
|
48
48
|
import * as dnsPromises from 'node:dns/promises';
|
|
49
49
|
// Supported getaddrinfo flags.
|
|
50
50
|
export const ADDRCONFIG: number;
|
|
@@ -649,6 +649,6 @@ declare module 'node:dns' {
|
|
|
649
649
|
}
|
|
650
650
|
export { dnsPromises as promises };
|
|
651
651
|
}
|
|
652
|
-
declare module 'dns' {
|
|
653
|
-
export * from '
|
|
652
|
+
declare module 'node:dns' {
|
|
653
|
+
export * from 'dns';
|
|
654
654
|
}
|
node v16.18/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/v16.9.0/lib/domain.js)
|
|
16
16
|
*/
|
|
17
|
-
declare module '
|
|
17
|
+
declare module '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 'node:domain' {
|
|
|
165
165
|
}
|
|
166
166
|
function create(): Domain;
|
|
167
167
|
}
|
|
168
|
-
declare module 'domain' {
|
|
169
|
-
export * from '
|
|
168
|
+
declare module 'node:domain' {
|
|
169
|
+
export * from 'domain';
|
|
170
170
|
}
|
node v16.18/ts4.8/events.d.ts
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
* ```
|
|
35
35
|
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/events.js)
|
|
36
36
|
*/
|
|
37
|
-
declare module '
|
|
37
|
+
declare module 'events' {
|
|
38
38
|
interface EventEmitterOptions {
|
|
39
39
|
/**
|
|
40
40
|
* Enables automatic capturing of promise rejection.
|
|
@@ -635,7 +635,7 @@ declare module 'node:events' {
|
|
|
635
635
|
}
|
|
636
636
|
export = EventEmitter;
|
|
637
637
|
}
|
|
638
|
-
declare module 'events' {
|
|
639
|
-
import events = require('
|
|
638
|
+
declare module 'node:events' {
|
|
639
|
+
import events = require('events');
|
|
640
640
|
export = events;
|
|
641
641
|
}
|
|
@@ -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 '
|
|
11
|
+
declare module 'fs/promises' {
|
|
12
12
|
import { Abortable } from 'node:events';
|
|
13
13
|
import { Stream } from 'node:stream';
|
|
14
14
|
import {
|
|
@@ -1090,6 +1090,6 @@ declare module 'node:fs/promises' {
|
|
|
1090
1090
|
*/
|
|
1091
1091
|
function cp(source: string | URL, destination: string | URL, opts?: CopyOptions): Promise<void>;
|
|
1092
1092
|
}
|
|
1093
|
-
declare module 'fs/promises' {
|
|
1094
|
-
export * from '
|
|
1093
|
+
declare module 'node:fs/promises' {
|
|
1094
|
+
export * from 'fs/promises';
|
|
1095
1095
|
}
|
node v16.18/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/v16.9.0/lib/fs.js)
|
|
20
20
|
*/
|
|
21
|
-
declare module '
|
|
21
|
+
declare module 'fs' {
|
|
22
22
|
import * as stream from 'node:stream';
|
|
23
23
|
import { Abortable, EventEmitter } from 'node:events';
|
|
24
24
|
import { URL } from 'node:url';
|
|
@@ -3810,6 +3810,6 @@ declare module 'node:fs' {
|
|
|
3810
3810
|
*/
|
|
3811
3811
|
export function cpSync(source: string | URL, destination: string | URL, opts?: CopySyncOptions): void;
|
|
3812
3812
|
}
|
|
3813
|
-
declare module 'fs' {
|
|
3814
|
-
export * from '
|
|
3813
|
+
declare module 'node:fs' {
|
|
3814
|
+
export * from 'fs';
|
|
3815
3815
|
}
|
node v16.18/ts4.8/http.d.ts
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
* ```
|
|
40
40
|
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/http.js)
|
|
41
41
|
*/
|
|
42
|
-
declare module '
|
|
42
|
+
declare module 'http' {
|
|
43
43
|
import * as stream from 'node:stream';
|
|
44
44
|
import { URL } from 'node:url';
|
|
45
45
|
import { TcpSocketConnectOpts, Socket, Server as NetServer, LookupFunction } from 'node:net';
|
|
@@ -1498,6 +1498,6 @@ declare module 'node:http' {
|
|
|
1498
1498
|
*/
|
|
1499
1499
|
const maxHeaderSize: number;
|
|
1500
1500
|
}
|
|
1501
|
-
declare module 'http' {
|
|
1502
|
-
export * from '
|
|
1501
|
+
declare module 'node:http' {
|
|
1502
|
+
export * from 'http';
|
|
1503
1503
|
}
|
node v16.18/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/v16.9.0/lib/http2.js)
|
|
10
10
|
*/
|
|
11
|
-
declare module '
|
|
11
|
+
declare module 'http2' {
|
|
12
12
|
import EventEmitter = require('node:events');
|
|
13
13
|
import * as fs from 'node:fs';
|
|
14
14
|
import * as net from 'node:net';
|
|
@@ -2095,6 +2095,6 @@ declare module 'node:http2' {
|
|
|
2095
2095
|
listener?: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void
|
|
2096
2096
|
): ClientHttp2Session;
|
|
2097
2097
|
}
|
|
2098
|
-
declare module 'http2' {
|
|
2099
|
-
export * from '
|
|
2098
|
+
declare module 'node:http2' {
|
|
2099
|
+
export * from 'http2';
|
|
2100
2100
|
}
|
node v16.18/ts4.8/https.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* separate module.
|
|
4
4
|
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/https.js)
|
|
5
5
|
*/
|
|
6
|
-
declare module '
|
|
6
|
+
declare module 'https' {
|
|
7
7
|
import { Duplex } from 'node:stream';
|
|
8
8
|
import * as tls from 'node:tls';
|
|
9
9
|
import * as http from 'node:http';
|
|
@@ -527,6 +527,6 @@ declare module 'node:https' {
|
|
|
527
527
|
): http.ClientRequest;
|
|
528
528
|
let globalAgent: Agent;
|
|
529
529
|
}
|
|
530
|
-
declare module 'https' {
|
|
531
|
-
export * from '
|
|
530
|
+
declare module 'node:https' {
|
|
531
|
+
export * from 'https';
|
|
532
532
|
}
|
node v16.18/ts4.8/inspector.d.ts
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* ```
|
|
17
17
|
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/inspector.js)
|
|
18
18
|
*/
|
|
19
|
-
declare module '
|
|
19
|
+
declare module 'inspector' {
|
|
20
20
|
import EventEmitter = require('node:events');
|
|
21
21
|
interface InspectorNotification<T> {
|
|
22
22
|
method: string;
|
|
@@ -2738,7 +2738,7 @@ declare module 'node:inspector' {
|
|
|
2738
2738
|
*/
|
|
2739
2739
|
function waitForDebugger(): void;
|
|
2740
2740
|
}
|
|
2741
|
-
declare module 'inspector' {
|
|
2742
|
-
import EventEmitter = require('
|
|
2741
|
+
declare module 'node:inspector' {
|
|
2742
|
+
import EventEmitter = require('inspector');
|
|
2743
2743
|
export = EventEmitter;
|
|
2744
2744
|
}
|
node v16.18/ts4.8/module.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since v0.3.7
|
|
3
3
|
*/
|
|
4
|
-
declare module '
|
|
4
|
+
declare module 'module' {
|
|
5
5
|
import { URL } from 'node:url';
|
|
6
6
|
import { MessagePort } from 'node:worker_threads';
|
|
7
7
|
namespace Module {
|
|
@@ -212,7 +212,7 @@ declare module 'node:module' {
|
|
|
212
212
|
}
|
|
213
213
|
export = Module;
|
|
214
214
|
}
|
|
215
|
-
declare module 'module' {
|
|
216
|
-
import module = require('
|
|
215
|
+
declare module 'node:module' {
|
|
216
|
+
import module = require('module');
|
|
217
217
|
export = module;
|
|
218
218
|
}
|
node v16.18/ts4.8/net.d.ts
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* ```
|
|
13
13
|
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/net.js)
|
|
14
14
|
*/
|
|
15
|
-
declare module '
|
|
15
|
+
declare module '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';
|
|
@@ -823,6 +823,6 @@ declare module 'node:net' {
|
|
|
823
823
|
readonly flowlabel: number;
|
|
824
824
|
}
|
|
825
825
|
}
|
|
826
|
-
declare module 'net' {
|
|
827
|
-
export * from '
|
|
826
|
+
declare module 'node:net' {
|
|
827
|
+
export * from 'net';
|
|
828
828
|
}
|
node v16.18/ts4.8/os.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* ```
|
|
8
8
|
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/os.js)
|
|
9
9
|
*/
|
|
10
|
-
declare module '
|
|
10
|
+
declare module 'os' {
|
|
11
11
|
interface CpuInfo {
|
|
12
12
|
model: string;
|
|
13
13
|
speed: number;
|
|
@@ -451,6 +451,6 @@ declare module 'node:os' {
|
|
|
451
451
|
function setPriority(priority: number): void;
|
|
452
452
|
function setPriority(pid: number, priority: number): void;
|
|
453
453
|
}
|
|
454
|
-
declare module 'os' {
|
|
455
|
-
export * from '
|
|
454
|
+
declare module 'node:os' {
|
|
455
|
+
export * from 'os';
|
|
456
456
|
}
|
node v16.18/ts4.8/path.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
declare module 'path/posix' {
|
|
2
|
-
import path = require('
|
|
2
|
+
import path = require('path');
|
|
3
3
|
export = path;
|
|
4
4
|
}
|
|
5
5
|
declare module 'path/win32' {
|
|
6
|
-
import path = require('
|
|
6
|
+
import path = require('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/v16.9.0/lib/path.js)
|
|
17
17
|
*/
|
|
18
|
-
declare module '
|
|
18
|
+
declare module '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 'node:path' {
|
|
|
177
177
|
const path: path.PlatformPath;
|
|
178
178
|
export = path;
|
|
179
179
|
}
|
|
180
|
-
declare module 'path' {
|
|
181
|
-
import path = require('
|
|
180
|
+
declare module 'node:path' {
|
|
181
|
+
import path = require('path');
|
|
182
182
|
export = path;
|
|
183
183
|
}
|
|
184
184
|
declare module 'node:path/posix' {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
* ```
|
|
29
29
|
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/perf_hooks.js)
|
|
30
30
|
*/
|
|
31
|
-
declare module '
|
|
31
|
+
declare module 'perf_hooks' {
|
|
32
32
|
import { AsyncResource } from 'node:async_hooks';
|
|
33
33
|
type EntryType = 'node' | 'mark' | 'measure' | 'gc' | 'function' | 'http2' | 'http';
|
|
34
34
|
interface NodeGCPerformanceDetail {
|
|
@@ -596,6 +596,6 @@ declare module 'node:perf_hooks' {
|
|
|
596
596
|
: typeof _performance;
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
|
-
declare module 'perf_hooks' {
|
|
600
|
-
export * from '
|
|
599
|
+
declare module 'node:perf_hooks' {
|
|
600
|
+
export * from 'perf_hooks';
|
|
601
601
|
}
|
node v16.18/ts4.8/process.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare module '
|
|
1
|
+
declare module 'process' {
|
|
2
2
|
import * as tty from 'node:tty';
|
|
3
3
|
import { Worker } from 'node:worker_threads';
|
|
4
4
|
global {
|
|
@@ -1475,7 +1475,7 @@ declare module 'node:process' {
|
|
|
1475
1475
|
}
|
|
1476
1476
|
export = process;
|
|
1477
1477
|
}
|
|
1478
|
-
declare module 'process' {
|
|
1479
|
-
import process = require('
|
|
1478
|
+
declare module 'node:process' {
|
|
1479
|
+
import process = require('process');
|
|
1480
1480
|
export = process;
|
|
1481
1481
|
}
|
node v16.18/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/v16.9.0/lib/punycode.js)
|
|
28
28
|
*/
|
|
29
|
-
declare module '
|
|
29
|
+
declare module '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 'node:punycode' {
|
|
|
112
112
|
*/
|
|
113
113
|
const version: string;
|
|
114
114
|
}
|
|
115
|
-
declare module 'punycode' {
|
|
116
|
-
export * from '
|
|
115
|
+
declare module 'node:punycode' {
|
|
116
|
+
export * from 'punycode';
|
|
117
117
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* or when compatibility with browser code is desirable.
|
|
12
12
|
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/querystring.js)
|
|
13
13
|
*/
|
|
14
|
-
declare module '
|
|
14
|
+
declare module 'querystring' {
|
|
15
15
|
interface StringifyOptions {
|
|
16
16
|
encodeURIComponent?: ((str: string) => string) | undefined;
|
|
17
17
|
}
|
|
@@ -126,6 +126,6 @@ declare module 'node:querystring' {
|
|
|
126
126
|
*/
|
|
127
127
|
function unescape(str: string): string;
|
|
128
128
|
}
|
|
129
|
-
declare module 'querystring' {
|
|
130
|
-
export * from '
|
|
129
|
+
declare module 'node:querystring' {
|
|
130
|
+
export * from 'querystring';
|
|
131
131
|
}
|
node v16.18/ts4.8/readline.d.ts
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
* received on the `input` stream.
|
|
29
29
|
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/readline.js)
|
|
30
30
|
*/
|
|
31
|
-
declare module '
|
|
31
|
+
declare module 'readline' {
|
|
32
32
|
import { Abortable, EventEmitter } from 'node:events';
|
|
33
33
|
interface Key {
|
|
34
34
|
sequence?: string | undefined;
|
|
@@ -538,6 +538,6 @@ declare module 'node:readline' {
|
|
|
538
538
|
*/
|
|
539
539
|
function moveCursor(stream: NodeJS.WritableStream, dx: number, dy: number, callback?: () => void): boolean;
|
|
540
540
|
}
|
|
541
|
-
declare module 'readline' {
|
|
542
|
-
export * from '
|
|
541
|
+
declare module 'node:readline' {
|
|
542
|
+
export * from 'readline';
|
|
543
543
|
}
|
node v16.18/ts4.8/repl.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* ```
|
|
9
9
|
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/repl.js)
|
|
10
10
|
*/
|
|
11
|
-
declare module '
|
|
11
|
+
declare module '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 'node:repl' {
|
|
|
419
419
|
constructor(err: Error);
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
declare module 'repl' {
|
|
423
|
-
export * from '
|
|
422
|
+
declare module 'node:repl' {
|
|
423
|
+
export * from 'repl';
|
|
424
424
|
}
|