@types/node 18.17.15 → 18.17.17
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 v18.17/LICENSE +0 -0
- node v18.17/README.md +1 -1
- node v18.17/assert/strict.d.ts +0 -0
- node v18.17/assert.d.ts +3 -3
- node v18.17/async_hooks.d.ts +3 -3
- node v18.17/buffer.d.ts +3 -3
- node v18.17/child_process.d.ts +3 -3
- node v18.17/cluster.d.ts +4 -4
- node v18.17/console.d.ts +0 -0
- node v18.17/constants.d.ts +3 -3
- node v18.17/crypto.d.ts +3 -3
- node v18.17/dgram.d.ts +3 -3
- node v18.17/diagnostics_channel.d.ts +3 -3
- node v18.17/dns/promises.d.ts +3 -3
- node v18.17/dns.d.ts +3 -3
- node v18.17/dom-events.d.ts +0 -0
- node v18.17/domain.d.ts +3 -3
- node v18.17/events.d.ts +3 -3
- node v18.17/fs/promises.d.ts +4 -3
- node v18.17/fs.d.ts +4 -4
- node v18.17/globals.d.ts +0 -0
- node v18.17/globals.global.d.ts +0 -0
- node v18.17/http.d.ts +3 -3
- node v18.17/http2.d.ts +3 -3
- node v18.17/https.d.ts +3 -3
- node v18.17/index.d.ts +0 -0
- node v18.17/inspector.d.ts +3 -3
- node v18.17/module.d.ts +3 -3
- node v18.17/net.d.ts +3 -3
- node v18.17/os.d.ts +3 -3
- node v18.17/package.json +3 -3
- node v18.17/path.d.ts +5 -5
- node v18.17/perf_hooks.d.ts +3 -3
- node v18.17/process.d.ts +3 -3
- node v18.17/punycode.d.ts +3 -3
- node v18.17/querystring.d.ts +3 -3
- node v18.17/readline/promises.d.ts +3 -3
- node v18.17/readline.d.ts +3 -3
- node v18.17/repl.d.ts +3 -3
- node v18.17/stream/consumers.d.ts +3 -3
- node v18.17/stream/promises.d.ts +3 -3
- node v18.17/stream/web.d.ts +3 -3
- node v18.17/stream.d.ts +3 -3
- node v18.17/string_decoder.d.ts +3 -3
- node v18.17/test.d.ts +0 -0
- node v18.17/timers/promises.d.ts +3 -3
- node v18.17/timers.d.ts +3 -3
- node v18.17/tls.d.ts +3 -3
- node v18.17/trace_events.d.ts +3 -3
- node v18.17/ts4.8/assert/strict.d.ts +0 -0
- node v18.17/ts4.8/assert.d.ts +3 -3
- node v18.17/ts4.8/async_hooks.d.ts +3 -3
- node v18.17/ts4.8/buffer.d.ts +3 -3
- node v18.17/ts4.8/child_process.d.ts +3 -3
- node v18.17/ts4.8/cluster.d.ts +4 -4
- node v18.17/ts4.8/console.d.ts +0 -0
- node v18.17/ts4.8/constants.d.ts +3 -3
- node v18.17/ts4.8/crypto.d.ts +3 -3
- node v18.17/ts4.8/dgram.d.ts +3 -3
- node v18.17/ts4.8/diagnostics_channel.d.ts +3 -3
- node v18.17/ts4.8/dns/promises.d.ts +3 -3
- node v18.17/ts4.8/dns.d.ts +3 -3
- node v18.17/ts4.8/dom-events.d.ts +0 -0
- node v18.17/ts4.8/domain.d.ts +3 -3
- node v18.17/ts4.8/events.d.ts +3 -3
- node v18.17/ts4.8/fs/promises.d.ts +4 -3
- node v18.17/ts4.8/fs.d.ts +4 -4
- node v18.17/ts4.8/globals.d.ts +0 -0
- node v18.17/ts4.8/globals.global.d.ts +0 -0
- node v18.17/ts4.8/http.d.ts +3 -3
- node v18.17/ts4.8/http2.d.ts +3 -3
- node v18.17/ts4.8/https.d.ts +3 -3
- node v18.17/ts4.8/index.d.ts +0 -0
- node v18.17/ts4.8/inspector.d.ts +3 -3
- node v18.17/ts4.8/module.d.ts +3 -3
- node v18.17/ts4.8/net.d.ts +3 -3
- node v18.17/ts4.8/os.d.ts +3 -3
- node v18.17/ts4.8/path.d.ts +5 -5
- node v18.17/ts4.8/perf_hooks.d.ts +3 -3
- node v18.17/ts4.8/process.d.ts +3 -3
- node v18.17/ts4.8/punycode.d.ts +3 -3
- node v18.17/ts4.8/querystring.d.ts +3 -3
- node v18.17/ts4.8/readline/promises.d.ts +3 -3
- node v18.17/ts4.8/readline.d.ts +3 -3
- node v18.17/ts4.8/repl.d.ts +3 -3
- node v18.17/ts4.8/stream/consumers.d.ts +3 -3
- node v18.17/ts4.8/stream/promises.d.ts +3 -3
- node v18.17/ts4.8/stream/web.d.ts +3 -3
- node v18.17/ts4.8/stream.d.ts +3 -3
- node v18.17/ts4.8/string_decoder.d.ts +3 -3
- node v18.17/ts4.8/test.d.ts +0 -0
- node v18.17/ts4.8/timers/promises.d.ts +3 -3
- node v18.17/ts4.8/timers.d.ts +3 -3
- node v18.17/ts4.8/tls.d.ts +3 -3
- node v18.17/ts4.8/trace_events.d.ts +3 -3
- node v18.17/ts4.8/tty.d.ts +3 -3
- node v18.17/ts4.8/url.d.ts +3 -3
- node v18.17/ts4.8/util.d.ts +3 -3
- node v18.17/ts4.8/v8.d.ts +3 -3
- node v18.17/ts4.8/vm.d.ts +3 -3
- node v18.17/ts4.8/wasi.d.ts +3 -3
- node v18.17/ts4.8/worker_threads.d.ts +3 -3
- node v18.17/ts4.8/zlib.d.ts +3 -3
- node v18.17/tty.d.ts +3 -3
- node v18.17/url.d.ts +3 -3
- node v18.17/util.d.ts +3 -3
- node v18.17/v8.d.ts +3 -3
- node v18.17/vm.d.ts +3 -3
- node v18.17/wasi.d.ts +3 -3
- node v18.17/worker_threads.d.ts +3 -3
- node v18.17/zlib.d.ts +3 -3
node v18.17/LICENSE
CHANGED
|
File without changes
|
node v18.17/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v18.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Sat, 16 Sep 2023 06:34:52 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
|
|
14
14
|
|
node v18.17/assert/strict.d.ts
CHANGED
|
File without changes
|
node v18.17/assert.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* invariants.
|
|
4
4
|
* @see [source](https://github.com/nodejs/node/blob/v18.0.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
|
|
@@ -955,7 +955,7 @@ declare module 'assert' {
|
|
|
955
955
|
}
|
|
956
956
|
export = assert;
|
|
957
957
|
}
|
|
958
|
-
declare module '
|
|
959
|
-
import assert = require('assert');
|
|
958
|
+
declare module 'assert' {
|
|
959
|
+
import assert = require('node:assert');
|
|
960
960
|
export = assert;
|
|
961
961
|
}
|
node v18.17/async_hooks.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @experimental
|
|
9
9
|
* @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/async_hooks.js)
|
|
10
10
|
*/
|
|
11
|
-
declare module 'async_hooks' {
|
|
11
|
+
declare module 'node:async_hooks' {
|
|
12
12
|
/**
|
|
13
13
|
* ```js
|
|
14
14
|
* import { executionAsyncId } from 'async_hooks';
|
|
@@ -514,6 +514,6 @@ declare module 'async_hooks' {
|
|
|
514
514
|
enterWith(store: T): void;
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
|
-
declare module '
|
|
518
|
-
export * from 'async_hooks';
|
|
517
|
+
declare module 'async_hooks' {
|
|
518
|
+
export * from 'node:async_hooks';
|
|
519
519
|
}
|
node v18.17/buffer.d.ts
CHANGED
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
* ```
|
|
44
44
|
* @see [source](https://github.com/nodejs/node/blob/v18.0.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
|
export function isUtf8(input: Buffer | ArrayBuffer | NodeJS.TypedArray): boolean;
|
|
@@ -2318,6 +2318,6 @@ declare module 'buffer' {
|
|
|
2318
2318
|
: typeof NodeBlob;
|
|
2319
2319
|
}
|
|
2320
2320
|
}
|
|
2321
|
-
declare module '
|
|
2322
|
-
export * from 'buffer';
|
|
2321
|
+
declare module 'buffer' {
|
|
2322
|
+
export * from 'node:buffer';
|
|
2323
2323
|
}
|
node v18.17/child_process.d.ts
CHANGED
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
* stalling the event loop while spawned processes complete.
|
|
66
66
|
* @see [source](https://github.com/nodejs/node/blob/v18.0.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';
|
|
@@ -1394,6 +1394,6 @@ declare module 'child_process' {
|
|
|
1394
1394
|
function execFileSync(file: string, args: ReadonlyArray<string>, options: ExecFileSyncOptionsWithBufferEncoding): Buffer;
|
|
1395
1395
|
function execFileSync(file: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptions): string | Buffer;
|
|
1396
1396
|
}
|
|
1397
|
-
declare module '
|
|
1398
|
-
export * from 'child_process';
|
|
1397
|
+
declare module 'child_process' {
|
|
1398
|
+
export * from 'node:child_process';
|
|
1399
1399
|
}
|
node v18.17/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/v18.0.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 '
|
|
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 v18.17/console.d.ts
CHANGED
|
File without changes
|
node v18.17/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 '
|
|
16
|
-
import constants = require('constants');
|
|
15
|
+
declare module 'constants' {
|
|
16
|
+
import constants = require('node:constants');
|
|
17
17
|
export = constants;
|
|
18
18
|
}
|
node v18.17/crypto.d.ts
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* ```
|
|
16
16
|
* @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/crypto.js)
|
|
17
17
|
*/
|
|
18
|
-
declare module 'crypto' {
|
|
18
|
+
declare module 'node:crypto' {
|
|
19
19
|
import * as stream from 'node:stream';
|
|
20
20
|
import { PeerCertificate } from 'node:tls';
|
|
21
21
|
/**
|
|
@@ -3968,6 +3968,6 @@ declare module 'crypto' {
|
|
|
3968
3968
|
}
|
|
3969
3969
|
}
|
|
3970
3970
|
}
|
|
3971
|
-
declare module '
|
|
3972
|
-
export * from 'crypto';
|
|
3971
|
+
declare module 'crypto' {
|
|
3972
|
+
export * from 'node:crypto';
|
|
3973
3973
|
}
|
node v18.17/dgram.d.ts
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* ```
|
|
26
26
|
* @see [source](https://github.com/nodejs/node/blob/v18.0.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';
|
|
@@ -540,6 +540,6 @@ declare module 'dgram' {
|
|
|
540
540
|
prependOnceListener(event: 'message', listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
|
-
declare module '
|
|
544
|
-
export * from 'dgram';
|
|
543
|
+
declare module 'dgram' {
|
|
544
|
+
export * from 'node:dgram';
|
|
545
545
|
}
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* @experimental
|
|
23
23
|
* @see [source](https://github.com/nodejs/node/blob/v18.0.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.
|
|
@@ -187,6 +187,6 @@ declare module 'diagnostics_channel' {
|
|
|
187
187
|
unsubscribe(onMessage: ChannelListener): void;
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
declare module '
|
|
191
|
-
export * from 'diagnostics_channel';
|
|
190
|
+
declare module 'diagnostics_channel' {
|
|
191
|
+
export * from 'node:diagnostics_channel';
|
|
192
192
|
}
|
node v18.17/dns/promises.d.ts
CHANGED
|
@@ -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 'dns/promises' {
|
|
7
|
+
declare module 'node:dns/promises' {
|
|
8
8
|
import {
|
|
9
9
|
LookupAddress,
|
|
10
10
|
LookupOneOptions,
|
|
@@ -365,6 +365,6 @@ declare module 'dns/promises' {
|
|
|
365
365
|
setServers: typeof setServers;
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
-
declare module '
|
|
369
|
-
export * from 'dns/promises';
|
|
368
|
+
declare module 'dns/promises' {
|
|
369
|
+
export * from 'node:dns/promises';
|
|
370
370
|
}
|
node v18.17/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/v18.0.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 '
|
|
667
|
-
export * from 'dns';
|
|
666
|
+
declare module 'dns' {
|
|
667
|
+
export * from 'node:dns';
|
|
668
668
|
}
|
node v18.17/dom-events.d.ts
CHANGED
|
File without changes
|
node v18.17/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/v18.0.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 '
|
|
169
|
-
export * from 'domain';
|
|
168
|
+
declare module 'domain' {
|
|
169
|
+
export * from 'node:domain';
|
|
170
170
|
}
|
node v18.17/events.d.ts
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
* ```
|
|
35
35
|
* @see [source](https://github.com/nodejs/node/blob/v18.0.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.
|
|
@@ -705,7 +705,7 @@ declare module 'events' {
|
|
|
705
705
|
}
|
|
706
706
|
export = EventEmitter;
|
|
707
707
|
}
|
|
708
|
-
declare module '
|
|
709
|
-
import events = require('events');
|
|
708
|
+
declare module 'events' {
|
|
709
|
+
import events = require('node:events');
|
|
710
710
|
export = events;
|
|
711
711
|
}
|
node v18.17/fs/promises.d.ts
CHANGED
|
@@ -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';
|
|
@@ -82,6 +82,7 @@ declare module 'fs/promises' {
|
|
|
82
82
|
autoClose?: boolean | undefined;
|
|
83
83
|
emitClose?: boolean | undefined;
|
|
84
84
|
start?: number | undefined;
|
|
85
|
+
highWaterMark?: number | undefined;
|
|
85
86
|
}
|
|
86
87
|
interface ReadableWebStreamOptions {
|
|
87
88
|
/**
|
|
@@ -1165,6 +1166,6 @@ declare module 'fs/promises' {
|
|
|
1165
1166
|
*/
|
|
1166
1167
|
function cp(source: string | URL, destination: string | URL, opts?: CopyOptions): Promise<void>;
|
|
1167
1168
|
}
|
|
1168
|
-
declare module '
|
|
1169
|
-
export * from 'fs/promises';
|
|
1169
|
+
declare module 'fs/promises' {
|
|
1170
|
+
export * from 'node:fs/promises';
|
|
1170
1171
|
}
|
node v18.17/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/v18.0.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';
|
|
@@ -3584,6 +3584,7 @@ declare module 'fs' {
|
|
|
3584
3584
|
autoClose?: boolean | undefined;
|
|
3585
3585
|
emitClose?: boolean | undefined;
|
|
3586
3586
|
start?: number | undefined;
|
|
3587
|
+
highWaterMark?: number | undefined;
|
|
3587
3588
|
}
|
|
3588
3589
|
interface FSImplementation {
|
|
3589
3590
|
open?: (...args: any[]) => any;
|
|
@@ -3599,7 +3600,6 @@ declare module 'fs' {
|
|
|
3599
3600
|
interface ReadStreamOptions extends StreamOptions {
|
|
3600
3601
|
fs?: CreateReadStreamFSImplementation | null | undefined;
|
|
3601
3602
|
end?: number | undefined;
|
|
3602
|
-
highWaterMark?: number | undefined;
|
|
3603
3603
|
}
|
|
3604
3604
|
interface WriteStreamOptions extends StreamOptions {
|
|
3605
3605
|
fs?: CreateWriteStreamFSImplementation | null | undefined;
|
|
@@ -4004,6 +4004,6 @@ declare module 'fs' {
|
|
|
4004
4004
|
*/
|
|
4005
4005
|
export function cpSync(source: string | URL, destination: string | URL, opts?: CopySyncOptions): void;
|
|
4006
4006
|
}
|
|
4007
|
-
declare module '
|
|
4008
|
-
export * from 'fs';
|
|
4007
|
+
declare module 'fs' {
|
|
4008
|
+
export * from 'node:fs';
|
|
4009
4009
|
}
|
node v18.17/globals.d.ts
CHANGED
|
File without changes
|
node v18.17/globals.global.d.ts
CHANGED
|
File without changes
|
node v18.17/http.d.ts
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
* ```
|
|
40
40
|
* @see [source](https://github.com/nodejs/node/blob/v18.0.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 { EventEmitter } from 'node:events';
|
|
@@ -1716,6 +1716,6 @@ declare module 'http' {
|
|
|
1716
1716
|
*/
|
|
1717
1717
|
const maxHeaderSize: number;
|
|
1718
1718
|
}
|
|
1719
|
-
declare module '
|
|
1720
|
-
export * from 'http';
|
|
1719
|
+
declare module 'http' {
|
|
1720
|
+
export * from 'node:http';
|
|
1721
1721
|
}
|
node v18.17/http2.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @since v8.4.0
|
|
9
9
|
* @see [source](https://github.com/nodejs/node/blob/v18.0.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';
|
|
@@ -2128,6 +2128,6 @@ declare module 'http2' {
|
|
|
2128
2128
|
listener?: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void
|
|
2129
2129
|
): ClientHttp2Session;
|
|
2130
2130
|
}
|
|
2131
|
-
declare module '
|
|
2132
|
-
export * from 'http2';
|
|
2131
|
+
declare module 'http2' {
|
|
2132
|
+
export * from 'node:http2';
|
|
2133
2133
|
}
|
node v18.17/https.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* separate module.
|
|
4
4
|
* @see [source](https://github.com/nodejs/node/blob/v18.0.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';
|
|
@@ -537,6 +537,6 @@ declare module 'https' {
|
|
|
537
537
|
): http.ClientRequest;
|
|
538
538
|
let globalAgent: Agent;
|
|
539
539
|
}
|
|
540
|
-
declare module '
|
|
541
|
-
export * from 'https';
|
|
540
|
+
declare module 'https' {
|
|
541
|
+
export * from 'node:https';
|
|
542
542
|
}
|
node v18.17/index.d.ts
CHANGED
|
File without changes
|
node v18.17/inspector.d.ts
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* ```
|
|
17
17
|
* @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/inspector.js)
|
|
18
18
|
*/
|
|
19
|
-
declare module 'inspector' {
|
|
19
|
+
declare module 'node:inspector' {
|
|
20
20
|
import EventEmitter = require('node:events');
|
|
21
21
|
interface InspectorNotification<T> {
|
|
22
22
|
method: string;
|
|
@@ -2734,7 +2734,7 @@ declare module 'inspector' {
|
|
|
2734
2734
|
/**
|
|
2735
2735
|
* The inspector module provides an API for interacting with the V8 inspector.
|
|
2736
2736
|
*/
|
|
2737
|
-
declare module '
|
|
2738
|
-
import inspector = require('inspector');
|
|
2737
|
+
declare module 'inspector' {
|
|
2738
|
+
import inspector = require('node:inspector');
|
|
2739
2739
|
export = inspector;
|
|
2740
2740
|
}
|
node v18.17/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 {
|
|
@@ -212,7 +212,7 @@ declare module 'module' {
|
|
|
212
212
|
}
|
|
213
213
|
export = Module;
|
|
214
214
|
}
|
|
215
|
-
declare module '
|
|
216
|
-
import module = require('module');
|
|
215
|
+
declare module 'module' {
|
|
216
|
+
import module = require('node:module');
|
|
217
217
|
export = module;
|
|
218
218
|
}
|
node v18.17/net.d.ts
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* ```
|
|
13
13
|
* @see [source](https://github.com/nodejs/node/blob/v18.0.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';
|
|
@@ -878,6 +878,6 @@ declare module 'net' {
|
|
|
878
878
|
readonly flowlabel: number;
|
|
879
879
|
}
|
|
880
880
|
}
|
|
881
|
-
declare module '
|
|
882
|
-
export * from 'net';
|
|
881
|
+
declare module 'net' {
|
|
882
|
+
export * from 'node:net';
|
|
883
883
|
}
|
node v18.17/os.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* ```
|
|
8
8
|
* @see [source](https://github.com/nodejs/node/blob/v18.0.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;
|
|
@@ -468,6 +468,6 @@ declare module 'os' {
|
|
|
468
468
|
function setPriority(priority: number): void;
|
|
469
469
|
function setPriority(pid: number, priority: number): void;
|
|
470
470
|
}
|
|
471
|
-
declare module '
|
|
472
|
-
export * from 'os';
|
|
471
|
+
declare module 'os' {
|
|
472
|
+
export * from 'node:os';
|
|
473
473
|
}
|
node v18.17/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "18.17.
|
|
3
|
+
"version": "18.17.17",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -232,6 +232,6 @@
|
|
|
232
232
|
},
|
|
233
233
|
"scripts": {},
|
|
234
234
|
"dependencies": {},
|
|
235
|
-
"typesPublisherContentHash": "
|
|
236
|
-
"typeScriptVersion": "4.
|
|
235
|
+
"typesPublisherContentHash": "bd556edee472fa0c0e916aac64a7fd2cc5a1d7ba9238a22c7f3e01db97da23b8",
|
|
236
|
+
"typeScriptVersion": "4.5"
|
|
237
237
|
}
|
node v18.17/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/v18.0.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 '
|
|
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' {
|
node v18.17/perf_hooks.d.ts
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
* ```
|
|
29
29
|
* @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/perf_hooks.js)
|
|
30
30
|
*/
|
|
31
|
-
declare module 'perf_hooks' {
|
|
31
|
+
declare module 'node:perf_hooks' {
|
|
32
32
|
import { AsyncResource } from 'node:async_hooks';
|
|
33
33
|
type EntryType = 'node' | 'mark' | 'measure' | 'gc' | 'function' | 'http2' | 'http' | 'dns';
|
|
34
34
|
interface NodeGCPerformanceDetail {
|
|
@@ -620,6 +620,6 @@ declare module 'perf_hooks' {
|
|
|
620
620
|
: typeof _performance;
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
|
-
declare module '
|
|
624
|
-
export * from 'perf_hooks';
|
|
623
|
+
declare module 'perf_hooks' {
|
|
624
|
+
export * from 'node:perf_hooks';
|
|
625
625
|
}
|
node v18.17/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 {
|
|
@@ -1482,7 +1482,7 @@ declare module 'process' {
|
|
|
1482
1482
|
}
|
|
1483
1483
|
export = process;
|
|
1484
1484
|
}
|
|
1485
|
-
declare module '
|
|
1486
|
-
import process = require('process');
|
|
1485
|
+
declare module 'process' {
|
|
1486
|
+
import process = require('node:process');
|
|
1487
1487
|
export = process;
|
|
1488
1488
|
}
|
node v18.17/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/v18.0.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 v18.17/querystring.d.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* or when compatibility with browser code is desirable.
|
|
12
12
|
* @see [source](https://github.com/nodejs/node/blob/v18.0.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
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/readline/promises.js)
|
|
5
5
|
* @since v17.0.0
|
|
6
6
|
*/
|
|
7
|
-
declare module 'readline/promises' {
|
|
7
|
+
declare module 'node:readline/promises' {
|
|
8
8
|
import { Interface as _Interface, ReadLineOptions, Completer, AsyncCompleter, Direction } from 'node:readline';
|
|
9
9
|
import { Abortable } from 'node:events';
|
|
10
10
|
|
|
@@ -138,6 +138,6 @@ declare module 'readline/promises' {
|
|
|
138
138
|
): Interface;
|
|
139
139
|
function createInterface(options: ReadLineOptions): Interface;
|
|
140
140
|
}
|
|
141
|
-
declare module '
|
|
142
|
-
export * from 'readline/promises';
|
|
141
|
+
declare module 'readline/promises' {
|
|
142
|
+
export * from 'node:readline/promises';
|
|
143
143
|
}
|
node v18.17/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/v18.0.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
|
|
|
@@ -648,6 +648,6 @@ declare module 'readline' {
|
|
|
648
648
|
*/
|
|
649
649
|
export function moveCursor(stream: NodeJS.WritableStream, dx: number, dy: number, callback?: () => void): boolean;
|
|
650
650
|
}
|
|
651
|
-
declare module '
|
|
652
|
-
export * from 'readline';
|
|
651
|
+
declare module 'readline' {
|
|
652
|
+
export * from 'node:readline';
|
|
653
653
|
}
|
node v18.17/repl.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* ```
|
|
9
9
|
* @see [source](https://github.com/nodejs/node/blob/v18.0.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
|
}
|