@types/node 16.3.2 → 16.3.3
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/README.md +1 -1
- node/assert/strict.d.ts +3 -3
- node/buffer.d.ts +1 -1
- node/child_process.d.ts +4 -4
- node/cluster.d.ts +4 -3
- node/console.d.ts +6 -6
- node/constants.d.ts +3 -3
- node/crypto.d.ts +2 -2
- node/dgram.d.ts +3 -3
- node/{diagnostic_channel.d.ts → diagnostics_channel.d.ts} +3 -3
- node/dns/promises.d.ts +1 -1
- node/dns.d.ts +1 -1
- node/domain.d.ts +7 -7
- node/events.d.ts +1 -1
- node/fs/promises.d.ts +3 -3
- node/fs.d.ts +4 -4
- node/http.d.ts +3 -3
- node/http2.d.ts +8 -8
- node/https.d.ts +3 -3
- node/inspector.d.ts +325 -2
- node/module.d.ts +1 -1
- node/net.d.ts +3 -3
- node/package.json +2 -2
- node/perf_hooks.d.ts +1 -1
- node/process.d.ts +2 -2
- node/readline.d.ts +1 -1
- node/repl.d.ts +3 -3
- node/stream/promises.d.ts +1 -1
- node/stream.d.ts +2 -2
- node/timers/promises.d.ts +1 -1
- node/timers.d.ts +2 -28
- node/tls.d.ts +2 -2
- node/ts3.6/assert.d.ts +5 -0
- node/ts3.6/base.d.ts +1 -1
- node/tty.d.ts +1 -1
- node/url.d.ts +2 -2
- node/util.d.ts +8 -4
- node/v8.d.ts +1 -1
- node/worker_threads.d.ts +7 -7
- node/zlib.d.ts +1 -1
node/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (http://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Fri, 16 Jul 2021 19:01:24 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
|
|
14
14
|
|
node/assert/strict.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
declare module 'assert/strict' {
|
|
2
|
-
import { strict } from 'assert';
|
|
2
|
+
import { strict } from 'node:assert';
|
|
3
3
|
export = strict;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
declare module 'node:assert/strict' {
|
|
7
|
-
import
|
|
8
|
-
export =
|
|
7
|
+
import { strict } from 'node:assert';
|
|
8
|
+
export = strict;
|
|
9
9
|
}
|
node/buffer.d.ts
CHANGED
node/child_process.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
declare module 'child_process' {
|
|
2
|
-
import { ObjectEncodingOptions } from 'fs';
|
|
3
|
-
import { EventEmitter, Abortable } from 'events';
|
|
4
|
-
import * as net from 'net';
|
|
5
|
-
import { Writable, Readable, Stream, Pipe } from 'stream';
|
|
2
|
+
import { ObjectEncodingOptions } from 'node:fs';
|
|
3
|
+
import { EventEmitter, Abortable } from 'node:events';
|
|
4
|
+
import * as net from 'node:net';
|
|
5
|
+
import { Writable, Readable, Stream, Pipe } from 'node:stream';
|
|
6
6
|
|
|
7
7
|
type Serializable = string | object | number | boolean | bigint;
|
|
8
8
|
type SendHandle = net.Socket | net.Server;
|
node/cluster.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Requires `esModuleInterop: true`
|
|
2
2
|
declare module 'cluster' {
|
|
3
|
-
import * as child from 'child_process';
|
|
4
|
-
import EventEmitter = require('events');
|
|
5
|
-
import * as net from 'net';
|
|
3
|
+
import * as child from 'node:child_process';
|
|
4
|
+
import EventEmitter = require('node:events');
|
|
5
|
+
import * as net from 'node:net';
|
|
6
6
|
|
|
7
7
|
export interface ClusterSettings {
|
|
8
8
|
execArgv?: string[] | undefined; // default: process.execArgv
|
|
@@ -184,4 +184,5 @@ declare module 'cluster' {
|
|
|
184
184
|
|
|
185
185
|
declare module 'node:cluster' {
|
|
186
186
|
export * from 'cluster';
|
|
187
|
+
export { default as default } from 'cluster';
|
|
187
188
|
}
|
node/console.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
declare module 'console' {
|
|
2
|
-
import
|
|
2
|
+
import console = require('node:console');
|
|
3
|
+
export = console;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
declare module 'node:console' {
|
|
7
|
+
import { InspectOptions } from 'node:util';
|
|
3
8
|
|
|
4
9
|
global {
|
|
5
10
|
// This needs to be global to avoid TS2403 in case lib.dom.d.ts is present in the same build
|
|
@@ -127,8 +132,3 @@ declare module 'console' {
|
|
|
127
132
|
|
|
128
133
|
export = globalThis.console;
|
|
129
134
|
}
|
|
130
|
-
|
|
131
|
-
declare module 'node:console' {
|
|
132
|
-
import console = require('console');
|
|
133
|
-
export = console;
|
|
134
|
-
}
|
node/constants.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** @deprecated since v6.3.0 - use constants property exposed by the relevant module instead. */
|
|
2
2
|
declare module 'constants' {
|
|
3
|
-
import { constants as osConstants, SignalConstants } from 'os';
|
|
4
|
-
import { constants as cryptoConstants } from 'crypto';
|
|
5
|
-
import { constants as fsConstants } from 'fs';
|
|
3
|
+
import { constants as osConstants, SignalConstants } from 'node:os';
|
|
4
|
+
import { constants as cryptoConstants } from 'node:crypto';
|
|
5
|
+
import { constants as fsConstants } from 'node:fs';
|
|
6
6
|
|
|
7
7
|
const exp: typeof osConstants.errno &
|
|
8
8
|
typeof osConstants.priority &
|
node/crypto.d.ts
CHANGED
node/dgram.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare module 'dgram' {
|
|
2
|
-
import { AddressInfo } from 'net';
|
|
3
|
-
import * as dns from 'dns';
|
|
4
|
-
import { EventEmitter, Abortable } from 'events';
|
|
2
|
+
import { AddressInfo } from 'node:net';
|
|
3
|
+
import * as dns from 'node:dns';
|
|
4
|
+
import { EventEmitter, Abortable } from 'node:events';
|
|
5
5
|
|
|
6
6
|
interface RemoteInfo {
|
|
7
7
|
address: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @experimental
|
|
3
3
|
*/
|
|
4
|
-
declare module '
|
|
4
|
+
declare module 'diagnostics_channel' {
|
|
5
5
|
/**
|
|
6
6
|
* Returns wether a named channel has subscribers or not.
|
|
7
7
|
*/
|
|
@@ -33,6 +33,6 @@ declare module 'diagnostic_channel' {
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
declare module 'node:
|
|
37
|
-
export * from '
|
|
36
|
+
declare module 'node:diagnostics_channel' {
|
|
37
|
+
export * from 'diagnostics_channel';
|
|
38
38
|
}
|
node/dns/promises.d.ts
CHANGED
node/dns.d.ts
CHANGED
node/domain.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated
|
|
3
|
+
*/
|
|
4
4
|
declare module 'domain' {
|
|
5
|
-
import EventEmitter = require('events');
|
|
5
|
+
import EventEmitter = require('node:events');
|
|
6
6
|
class Domain extends EventEmitter {
|
|
7
7
|
members: Array<EventEmitter | NodeJS.Timer>;
|
|
8
8
|
enter(): void;
|
|
@@ -17,9 +17,9 @@ declare module 'domain' {
|
|
|
17
17
|
function create(): Domain;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
/**
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated
|
|
22
|
+
*/
|
|
23
23
|
declare module 'node:domain' {
|
|
24
24
|
export * from 'domain';
|
|
25
25
|
}
|
node/events.d.ts
CHANGED
|
@@ -53,7 +53,7 @@ declare module 'events' {
|
|
|
53
53
|
static defaultMaxListeners: number;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
import internal = require('events');
|
|
56
|
+
import internal = require('node:events');
|
|
57
57
|
namespace EventEmitter {
|
|
58
58
|
// Should just be `export { EventEmitter }`, but that doesn't work in TypeScript 3.4
|
|
59
59
|
export { internal as EventEmitter };
|
node/fs/promises.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare module 'fs/promises' {
|
|
2
|
-
import { Abortable } from 'events';
|
|
3
|
-
import { Stream } from 'stream';
|
|
2
|
+
import { Abortable } from 'node:events';
|
|
3
|
+
import { Stream } from 'node:stream';
|
|
4
4
|
import {
|
|
5
5
|
Stats,
|
|
6
6
|
BigIntStats,
|
|
@@ -19,7 +19,7 @@ declare module 'fs/promises' {
|
|
|
19
19
|
OpenMode,
|
|
20
20
|
Mode,
|
|
21
21
|
WatchOptions,
|
|
22
|
-
} from 'fs';
|
|
22
|
+
} from 'node:fs';
|
|
23
23
|
|
|
24
24
|
interface FlagAndOpenMode {
|
|
25
25
|
mode?: Mode | undefined;
|
node/fs.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
declare module 'fs' {
|
|
2
|
-
import * as stream from 'stream';
|
|
3
|
-
import { Abortable, EventEmitter } from 'events';
|
|
4
|
-
import { URL } from 'url';
|
|
5
|
-
import * as promises from 'fs/promises';
|
|
2
|
+
import * as stream from 'node:stream';
|
|
3
|
+
import { Abortable, EventEmitter } from 'node:events';
|
|
4
|
+
import { URL } from 'node:url';
|
|
5
|
+
import * as promises from 'node:fs/promises';
|
|
6
6
|
|
|
7
7
|
export { promises };
|
|
8
8
|
/**
|
node/http.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare module 'http' {
|
|
2
|
-
import * as stream from 'stream';
|
|
3
|
-
import { URL } from 'url';
|
|
4
|
-
import { Socket, Server as NetServer } from 'net';
|
|
2
|
+
import * as stream from 'node:stream';
|
|
3
|
+
import { URL } from 'node:url';
|
|
4
|
+
import { Socket, Server as NetServer } from 'node:net';
|
|
5
5
|
|
|
6
6
|
// incoming headers will never contain number
|
|
7
7
|
interface IncomingHttpHeaders extends NodeJS.Dict<string | string[]> {
|
node/http2.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
declare module 'http2' {
|
|
2
|
-
import EventEmitter = require('events');
|
|
3
|
-
import * as fs from 'fs';
|
|
4
|
-
import * as net from 'net';
|
|
5
|
-
import * as stream from 'stream';
|
|
6
|
-
import * as tls from 'tls';
|
|
7
|
-
import * as url from 'url';
|
|
2
|
+
import EventEmitter = require('node:events');
|
|
3
|
+
import * as fs from 'node:fs';
|
|
4
|
+
import * as net from 'node:net';
|
|
5
|
+
import * as stream from 'node:stream';
|
|
6
|
+
import * as tls from 'node:tls';
|
|
7
|
+
import * as url from 'node:url';
|
|
8
8
|
|
|
9
9
|
import {
|
|
10
10
|
IncomingHttpHeaders as Http1IncomingHttpHeaders,
|
|
11
11
|
OutgoingHttpHeaders,
|
|
12
12
|
IncomingMessage,
|
|
13
13
|
ServerResponse,
|
|
14
|
-
} from 'http';
|
|
15
|
-
export { OutgoingHttpHeaders } from 'http';
|
|
14
|
+
} from 'node:http';
|
|
15
|
+
export { OutgoingHttpHeaders } from 'node:http';
|
|
16
16
|
|
|
17
17
|
export interface IncomingHttpStatusHeader {
|
|
18
18
|
":status"?: number | undefined;
|
node/https.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare module 'https' {
|
|
2
|
-
import * as tls from 'tls';
|
|
3
|
-
import * as http from 'http';
|
|
4
|
-
import { URL } from 'url';
|
|
2
|
+
import * as tls from 'node:tls';
|
|
3
|
+
import * as http from 'node:http';
|
|
4
|
+
import { URL } from 'node:url';
|
|
5
5
|
|
|
6
6
|
type ServerOptions = tls.SecureContextOptions & tls.TlsOptions & http.ServerOptions;
|
|
7
7
|
|
node/inspector.d.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* The inspector module provides an API for interacting with the V8 inspector.
|
|
12
12
|
*/
|
|
13
13
|
declare module 'inspector' {
|
|
14
|
-
import EventEmitter = require('events');
|
|
14
|
+
import EventEmitter = require('node:events');
|
|
15
15
|
|
|
16
16
|
interface InspectorNotification<T> {
|
|
17
17
|
method: string;
|
|
@@ -1804,6 +1804,100 @@ declare module 'inspector' {
|
|
|
1804
1804
|
}
|
|
1805
1805
|
}
|
|
1806
1806
|
|
|
1807
|
+
namespace NodeTracing {
|
|
1808
|
+
interface TraceConfig {
|
|
1809
|
+
/**
|
|
1810
|
+
* Controls how the trace buffer stores data.
|
|
1811
|
+
*/
|
|
1812
|
+
recordMode?: string;
|
|
1813
|
+
/**
|
|
1814
|
+
* Included category filters.
|
|
1815
|
+
*/
|
|
1816
|
+
includedCategories: string[];
|
|
1817
|
+
}
|
|
1818
|
+
|
|
1819
|
+
interface StartParameterType {
|
|
1820
|
+
traceConfig: TraceConfig;
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1823
|
+
interface GetCategoriesReturnType {
|
|
1824
|
+
/**
|
|
1825
|
+
* A list of supported tracing categories.
|
|
1826
|
+
*/
|
|
1827
|
+
categories: string[];
|
|
1828
|
+
}
|
|
1829
|
+
|
|
1830
|
+
interface DataCollectedEventDataType {
|
|
1831
|
+
value: Array<{}>;
|
|
1832
|
+
}
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1835
|
+
namespace NodeWorker {
|
|
1836
|
+
type WorkerID = string;
|
|
1837
|
+
|
|
1838
|
+
/**
|
|
1839
|
+
* Unique identifier of attached debugging session.
|
|
1840
|
+
*/
|
|
1841
|
+
type SessionID = string;
|
|
1842
|
+
|
|
1843
|
+
interface WorkerInfo {
|
|
1844
|
+
workerId: WorkerID;
|
|
1845
|
+
type: string;
|
|
1846
|
+
title: string;
|
|
1847
|
+
url: string;
|
|
1848
|
+
}
|
|
1849
|
+
|
|
1850
|
+
interface SendMessageToWorkerParameterType {
|
|
1851
|
+
message: string;
|
|
1852
|
+
/**
|
|
1853
|
+
* Identifier of the session.
|
|
1854
|
+
*/
|
|
1855
|
+
sessionId: SessionID;
|
|
1856
|
+
}
|
|
1857
|
+
|
|
1858
|
+
interface EnableParameterType {
|
|
1859
|
+
/**
|
|
1860
|
+
* Whether to new workers should be paused until the frontend sends `Runtime.runIfWaitingForDebugger`
|
|
1861
|
+
* message to run them.
|
|
1862
|
+
*/
|
|
1863
|
+
waitForDebuggerOnStart: boolean;
|
|
1864
|
+
}
|
|
1865
|
+
|
|
1866
|
+
interface DetachParameterType {
|
|
1867
|
+
sessionId: SessionID;
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1870
|
+
interface AttachedToWorkerEventDataType {
|
|
1871
|
+
/**
|
|
1872
|
+
* Identifier assigned to the session used to send/receive messages.
|
|
1873
|
+
*/
|
|
1874
|
+
sessionId: SessionID;
|
|
1875
|
+
workerInfo: WorkerInfo;
|
|
1876
|
+
waitingForDebugger: boolean;
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
interface DetachedFromWorkerEventDataType {
|
|
1880
|
+
/**
|
|
1881
|
+
* Detached session identifier.
|
|
1882
|
+
*/
|
|
1883
|
+
sessionId: SessionID;
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1886
|
+
interface ReceivedMessageFromWorkerEventDataType {
|
|
1887
|
+
/**
|
|
1888
|
+
* Identifier of a session which sends a message.
|
|
1889
|
+
*/
|
|
1890
|
+
sessionId: SessionID;
|
|
1891
|
+
message: string;
|
|
1892
|
+
}
|
|
1893
|
+
}
|
|
1894
|
+
|
|
1895
|
+
namespace NodeRuntime {
|
|
1896
|
+
interface NotifyWhenWaitingForDisconnectParameterType {
|
|
1897
|
+
enabled: boolean;
|
|
1898
|
+
}
|
|
1899
|
+
}
|
|
1900
|
+
|
|
1807
1901
|
/**
|
|
1808
1902
|
* The inspector.Session is used for dispatching messages to the V8 inspector back-end and receiving message responses and notifications.
|
|
1809
1903
|
*/
|
|
@@ -2203,6 +2297,53 @@ declare module 'inspector' {
|
|
|
2203
2297
|
|
|
2204
2298
|
post(method: "HeapProfiler.getSamplingProfile", callback?: (err: Error | null, params: HeapProfiler.GetSamplingProfileReturnType) => void): void;
|
|
2205
2299
|
|
|
2300
|
+
/**
|
|
2301
|
+
* Gets supported tracing categories.
|
|
2302
|
+
*/
|
|
2303
|
+
post(method: "NodeTracing.getCategories", callback?: (err: Error | null, params: NodeTracing.GetCategoriesReturnType) => void): void;
|
|
2304
|
+
|
|
2305
|
+
/**
|
|
2306
|
+
* Start trace events collection.
|
|
2307
|
+
*/
|
|
2308
|
+
post(method: "NodeTracing.start", params?: NodeTracing.StartParameterType, callback?: (err: Error | null) => void): void;
|
|
2309
|
+
post(method: "NodeTracing.start", callback?: (err: Error | null) => void): void;
|
|
2310
|
+
|
|
2311
|
+
/**
|
|
2312
|
+
* Stop trace events collection. Remaining collected events will be sent as a sequence of
|
|
2313
|
+
* dataCollected events followed by tracingComplete event.
|
|
2314
|
+
*/
|
|
2315
|
+
post(method: "NodeTracing.stop", callback?: (err: Error | null) => void): void;
|
|
2316
|
+
|
|
2317
|
+
/**
|
|
2318
|
+
* Sends protocol message over session with given id.
|
|
2319
|
+
*/
|
|
2320
|
+
post(method: "NodeWorker.sendMessageToWorker", params?: NodeWorker.SendMessageToWorkerParameterType, callback?: (err: Error | null) => void): void;
|
|
2321
|
+
post(method: "NodeWorker.sendMessageToWorker", callback?: (err: Error | null) => void): void;
|
|
2322
|
+
|
|
2323
|
+
/**
|
|
2324
|
+
* Instructs the inspector to attach to running workers. Will also attach to new workers
|
|
2325
|
+
* as they start
|
|
2326
|
+
*/
|
|
2327
|
+
post(method: "NodeWorker.enable", params?: NodeWorker.EnableParameterType, callback?: (err: Error | null) => void): void;
|
|
2328
|
+
post(method: "NodeWorker.enable", callback?: (err: Error | null) => void): void;
|
|
2329
|
+
|
|
2330
|
+
/**
|
|
2331
|
+
* Detaches from all running workers and disables attaching to new workers as they are started.
|
|
2332
|
+
*/
|
|
2333
|
+
post(method: "NodeWorker.disable", callback?: (err: Error | null) => void): void;
|
|
2334
|
+
|
|
2335
|
+
/**
|
|
2336
|
+
* Detached from the worker with given sessionId.
|
|
2337
|
+
*/
|
|
2338
|
+
post(method: "NodeWorker.detach", params?: NodeWorker.DetachParameterType, callback?: (err: Error | null) => void): void;
|
|
2339
|
+
post(method: "NodeWorker.detach", callback?: (err: Error | null) => void): void;
|
|
2340
|
+
|
|
2341
|
+
/**
|
|
2342
|
+
* Enable the `NodeRuntime.waitingForDisconnect`.
|
|
2343
|
+
*/
|
|
2344
|
+
post(method: "NodeRuntime.notifyWhenWaitingForDisconnect", params?: NodeRuntime.NotifyWhenWaitingForDisconnectParameterType, callback?: (err: Error | null) => void): void;
|
|
2345
|
+
post(method: "NodeRuntime.notifyWhenWaitingForDisconnect", callback?: (err: Error | null) => void): void;
|
|
2346
|
+
|
|
2206
2347
|
// Events
|
|
2207
2348
|
|
|
2208
2349
|
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
@@ -2297,6 +2438,41 @@ declare module 'inspector' {
|
|
|
2297
2438
|
*/
|
|
2298
2439
|
addListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
|
|
2299
2440
|
|
|
2441
|
+
/**
|
|
2442
|
+
* Contains an bucket of collected trace events.
|
|
2443
|
+
*/
|
|
2444
|
+
addListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
|
|
2445
|
+
|
|
2446
|
+
/**
|
|
2447
|
+
* Signals that tracing is stopped and there is no trace buffers pending flush, all data were
|
|
2448
|
+
* delivered via dataCollected events.
|
|
2449
|
+
*/
|
|
2450
|
+
addListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
|
|
2451
|
+
|
|
2452
|
+
/**
|
|
2453
|
+
* Issued when attached to a worker.
|
|
2454
|
+
*/
|
|
2455
|
+
addListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
|
|
2456
|
+
|
|
2457
|
+
/**
|
|
2458
|
+
* Issued when detached from the worker.
|
|
2459
|
+
*/
|
|
2460
|
+
addListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
|
|
2461
|
+
|
|
2462
|
+
/**
|
|
2463
|
+
* Notifies about a new protocol message received from the session
|
|
2464
|
+
* (session ID is provided in attachedToWorker notification).
|
|
2465
|
+
*/
|
|
2466
|
+
addListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
|
|
2467
|
+
|
|
2468
|
+
/**
|
|
2469
|
+
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
2470
|
+
* enabled.
|
|
2471
|
+
* It is fired when the Node process finished all code execution and is
|
|
2472
|
+
* waiting for all frontends to disconnect.
|
|
2473
|
+
*/
|
|
2474
|
+
addListener(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this;
|
|
2475
|
+
|
|
2300
2476
|
emit(event: string | symbol, ...args: any[]): boolean;
|
|
2301
2477
|
emit(event: "inspectorNotification", message: InspectorNotification<{}>): boolean;
|
|
2302
2478
|
emit(event: "Runtime.executionContextCreated", message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>): boolean;
|
|
@@ -2319,6 +2495,12 @@ declare module 'inspector' {
|
|
|
2319
2495
|
emit(event: "HeapProfiler.reportHeapSnapshotProgress", message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>): boolean;
|
|
2320
2496
|
emit(event: "HeapProfiler.lastSeenObjectId", message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>): boolean;
|
|
2321
2497
|
emit(event: "HeapProfiler.heapStatsUpdate", message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>): boolean;
|
|
2498
|
+
emit(event: "NodeTracing.dataCollected", message: InspectorNotification<NodeTracing.DataCollectedEventDataType>): boolean;
|
|
2499
|
+
emit(event: "NodeTracing.tracingComplete"): boolean;
|
|
2500
|
+
emit(event: "NodeWorker.attachedToWorker", message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>): boolean;
|
|
2501
|
+
emit(event: "NodeWorker.detachedFromWorker", message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>): boolean;
|
|
2502
|
+
emit(event: "NodeWorker.receivedMessageFromWorker", message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>): boolean;
|
|
2503
|
+
emit(event: "NodeRuntime.waitingForDisconnect"): boolean;
|
|
2322
2504
|
|
|
2323
2505
|
on(event: string, listener: (...args: any[]) => void): this;
|
|
2324
2506
|
|
|
@@ -2412,6 +2594,41 @@ declare module 'inspector' {
|
|
|
2412
2594
|
*/
|
|
2413
2595
|
on(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
|
|
2414
2596
|
|
|
2597
|
+
/**
|
|
2598
|
+
* Contains an bucket of collected trace events.
|
|
2599
|
+
*/
|
|
2600
|
+
on(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
|
|
2601
|
+
|
|
2602
|
+
/**
|
|
2603
|
+
* Signals that tracing is stopped and there is no trace buffers pending flush, all data were
|
|
2604
|
+
* delivered via dataCollected events.
|
|
2605
|
+
*/
|
|
2606
|
+
on(event: "NodeTracing.tracingComplete", listener: () => void): this;
|
|
2607
|
+
|
|
2608
|
+
/**
|
|
2609
|
+
* Issued when attached to a worker.
|
|
2610
|
+
*/
|
|
2611
|
+
on(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
|
|
2612
|
+
|
|
2613
|
+
/**
|
|
2614
|
+
* Issued when detached from the worker.
|
|
2615
|
+
*/
|
|
2616
|
+
on(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
|
|
2617
|
+
|
|
2618
|
+
/**
|
|
2619
|
+
* Notifies about a new protocol message received from the session
|
|
2620
|
+
* (session ID is provided in attachedToWorker notification).
|
|
2621
|
+
*/
|
|
2622
|
+
on(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
|
|
2623
|
+
|
|
2624
|
+
/**
|
|
2625
|
+
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
2626
|
+
* enabled.
|
|
2627
|
+
* It is fired when the Node process finished all code execution and is
|
|
2628
|
+
* waiting for all frontends to disconnect.
|
|
2629
|
+
*/
|
|
2630
|
+
on(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this;
|
|
2631
|
+
|
|
2415
2632
|
once(event: string, listener: (...args: any[]) => void): this;
|
|
2416
2633
|
|
|
2417
2634
|
/**
|
|
@@ -2504,6 +2721,41 @@ declare module 'inspector' {
|
|
|
2504
2721
|
*/
|
|
2505
2722
|
once(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
|
|
2506
2723
|
|
|
2724
|
+
/**
|
|
2725
|
+
* Contains an bucket of collected trace events.
|
|
2726
|
+
*/
|
|
2727
|
+
once(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
|
|
2728
|
+
|
|
2729
|
+
/**
|
|
2730
|
+
* Signals that tracing is stopped and there is no trace buffers pending flush, all data were
|
|
2731
|
+
* delivered via dataCollected events.
|
|
2732
|
+
*/
|
|
2733
|
+
once(event: "NodeTracing.tracingComplete", listener: () => void): this;
|
|
2734
|
+
|
|
2735
|
+
/**
|
|
2736
|
+
* Issued when attached to a worker.
|
|
2737
|
+
*/
|
|
2738
|
+
once(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
|
|
2739
|
+
|
|
2740
|
+
/**
|
|
2741
|
+
* Issued when detached from the worker.
|
|
2742
|
+
*/
|
|
2743
|
+
once(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
|
|
2744
|
+
|
|
2745
|
+
/**
|
|
2746
|
+
* Notifies about a new protocol message received from the session
|
|
2747
|
+
* (session ID is provided in attachedToWorker notification).
|
|
2748
|
+
*/
|
|
2749
|
+
once(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
|
|
2750
|
+
|
|
2751
|
+
/**
|
|
2752
|
+
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
2753
|
+
* enabled.
|
|
2754
|
+
* It is fired when the Node process finished all code execution and is
|
|
2755
|
+
* waiting for all frontends to disconnect.
|
|
2756
|
+
*/
|
|
2757
|
+
once(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this;
|
|
2758
|
+
|
|
2507
2759
|
prependListener(event: string, listener: (...args: any[]) => void): this;
|
|
2508
2760
|
|
|
2509
2761
|
/**
|
|
@@ -2596,6 +2848,41 @@ declare module 'inspector' {
|
|
|
2596
2848
|
*/
|
|
2597
2849
|
prependListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
|
|
2598
2850
|
|
|
2851
|
+
/**
|
|
2852
|
+
* Contains an bucket of collected trace events.
|
|
2853
|
+
*/
|
|
2854
|
+
prependListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
|
|
2855
|
+
|
|
2856
|
+
/**
|
|
2857
|
+
* Signals that tracing is stopped and there is no trace buffers pending flush, all data were
|
|
2858
|
+
* delivered via dataCollected events.
|
|
2859
|
+
*/
|
|
2860
|
+
prependListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
|
|
2861
|
+
|
|
2862
|
+
/**
|
|
2863
|
+
* Issued when attached to a worker.
|
|
2864
|
+
*/
|
|
2865
|
+
prependListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
|
|
2866
|
+
|
|
2867
|
+
/**
|
|
2868
|
+
* Issued when detached from the worker.
|
|
2869
|
+
*/
|
|
2870
|
+
prependListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
|
|
2871
|
+
|
|
2872
|
+
/**
|
|
2873
|
+
* Notifies about a new protocol message received from the session
|
|
2874
|
+
* (session ID is provided in attachedToWorker notification).
|
|
2875
|
+
*/
|
|
2876
|
+
prependListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
|
|
2877
|
+
|
|
2878
|
+
/**
|
|
2879
|
+
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
2880
|
+
* enabled.
|
|
2881
|
+
* It is fired when the Node process finished all code execution and is
|
|
2882
|
+
* waiting for all frontends to disconnect.
|
|
2883
|
+
*/
|
|
2884
|
+
prependListener(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this;
|
|
2885
|
+
|
|
2599
2886
|
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
|
2600
2887
|
|
|
2601
2888
|
/**
|
|
@@ -2687,6 +2974,41 @@ declare module 'inspector' {
|
|
|
2687
2974
|
* If heap objects tracking has been started then backend may send update for one or more fragments
|
|
2688
2975
|
*/
|
|
2689
2976
|
prependOnceListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
|
|
2977
|
+
|
|
2978
|
+
/**
|
|
2979
|
+
* Contains an bucket of collected trace events.
|
|
2980
|
+
*/
|
|
2981
|
+
prependOnceListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
|
|
2982
|
+
|
|
2983
|
+
/**
|
|
2984
|
+
* Signals that tracing is stopped and there is no trace buffers pending flush, all data were
|
|
2985
|
+
* delivered via dataCollected events.
|
|
2986
|
+
*/
|
|
2987
|
+
prependOnceListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
|
|
2988
|
+
|
|
2989
|
+
/**
|
|
2990
|
+
* Issued when attached to a worker.
|
|
2991
|
+
*/
|
|
2992
|
+
prependOnceListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
|
|
2993
|
+
|
|
2994
|
+
/**
|
|
2995
|
+
* Issued when detached from the worker.
|
|
2996
|
+
*/
|
|
2997
|
+
prependOnceListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
|
|
2998
|
+
|
|
2999
|
+
/**
|
|
3000
|
+
* Notifies about a new protocol message received from the session
|
|
3001
|
+
* (session ID is provided in attachedToWorker notification).
|
|
3002
|
+
*/
|
|
3003
|
+
prependOnceListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
|
|
3004
|
+
|
|
3005
|
+
/**
|
|
3006
|
+
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
3007
|
+
* enabled.
|
|
3008
|
+
* It is fired when the Node process finished all code execution and is
|
|
3009
|
+
* waiting for all frontends to disconnect.
|
|
3010
|
+
*/
|
|
3011
|
+
prependOnceListener(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this;
|
|
2690
3012
|
}
|
|
2691
3013
|
|
|
2692
3014
|
// Top Level API
|
|
@@ -2719,5 +3041,6 @@ declare module 'inspector' {
|
|
|
2719
3041
|
}
|
|
2720
3042
|
|
|
2721
3043
|
declare module 'node:inspector' {
|
|
2722
|
-
|
|
3044
|
+
import EventEmitter = require('inspector');
|
|
3045
|
+
export = EventEmitter;
|
|
2723
3046
|
}
|
node/module.d.ts
CHANGED
node/net.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare module 'net' {
|
|
2
|
-
import * as stream from 'stream';
|
|
3
|
-
import { Abortable, EventEmitter } from 'events';
|
|
4
|
-
import * as dns from 'dns';
|
|
2
|
+
import * as stream from 'node:stream';
|
|
3
|
+
import { Abortable, EventEmitter } from 'node:events';
|
|
4
|
+
import * as dns from 'node:dns';
|
|
5
5
|
|
|
6
6
|
type LookupFunction = (
|
|
7
7
|
hostname: string,
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "16.3.
|
|
3
|
+
"version": "16.3.3",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -227,6 +227,6 @@
|
|
|
227
227
|
},
|
|
228
228
|
"scripts": {},
|
|
229
229
|
"dependencies": {},
|
|
230
|
-
"typesPublisherContentHash": "
|
|
230
|
+
"typesPublisherContentHash": "046ee08897f6b1ab1ee2bd22e5df32d1fa1f782ba1d32a106aab33c28f7f1081",
|
|
231
231
|
"typeScriptVersion": "3.6"
|
|
232
232
|
}
|
node/perf_hooks.d.ts
CHANGED
node/process.d.ts
CHANGED
node/readline.d.ts
CHANGED
node/repl.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare module 'repl' {
|
|
2
|
-
import { Interface, Completer, AsyncCompleter } from 'readline';
|
|
3
|
-
import { Context } from 'vm';
|
|
4
|
-
import { InspectOptions } from 'util';
|
|
2
|
+
import { Interface, Completer, AsyncCompleter } from 'node:readline';
|
|
3
|
+
import { Context } from 'node:vm';
|
|
4
|
+
import { InspectOptions } from 'node:util';
|
|
5
5
|
|
|
6
6
|
interface ReplOptions {
|
|
7
7
|
/**
|
node/stream/promises.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare module "stream/promises" {
|
|
2
2
|
import { FinishedOptions, PipelineSource, PipelineTransform,
|
|
3
|
-
PipelineDestination, PipelinePromise, PipelineOptions } from "stream";
|
|
3
|
+
PipelineDestination, PipelinePromise, PipelineOptions } from "node:stream";
|
|
4
4
|
|
|
5
5
|
function finished(stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, options?: FinishedOptions): Promise<void>;
|
|
6
6
|
|
node/stream.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare module 'stream' {
|
|
2
|
-
import { EventEmitter, Abortable } from 'events';
|
|
3
|
-
import * as streamPromises from "stream/promises";
|
|
2
|
+
import { EventEmitter, Abortable } from 'node:events';
|
|
3
|
+
import * as streamPromises from "node:stream/promises";
|
|
4
4
|
|
|
5
5
|
class internal extends EventEmitter {
|
|
6
6
|
pipe<T extends NodeJS.WritableStream>(destination: T, options?: { end?: boolean | undefined; }): T;
|
node/timers/promises.d.ts
CHANGED
node/timers.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare module 'timers' {
|
|
2
|
-
import { Abortable } from 'events';
|
|
3
|
-
import { setTimeout as setTimeoutPromise, setImmediate as setImmediatePromise, setInterval as setIntervalPromise } from 'timers/promises';
|
|
2
|
+
import { Abortable } from 'node:events';
|
|
3
|
+
import { setTimeout as setTimeoutPromise, setImmediate as setImmediatePromise, setInterval as setIntervalPromise } from 'node:timers/promises';
|
|
4
4
|
|
|
5
5
|
interface TimerOptions extends Abortable {
|
|
6
6
|
/**
|
|
@@ -73,29 +73,3 @@ declare module 'timers' {
|
|
|
73
73
|
declare module 'node:timers' {
|
|
74
74
|
export * from 'timers';
|
|
75
75
|
}
|
|
76
|
-
|
|
77
|
-
declare module 'timers/promises' {
|
|
78
|
-
import { TimerOptions } from 'timers';
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Returns a promise that resolves after the specified delay in milliseconds.
|
|
82
|
-
* @param delay defaults to 1
|
|
83
|
-
*/
|
|
84
|
-
function setTimeout<T = void>(delay?: number, value?: T, options?: TimerOptions): Promise<T>;
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Returns a promise that resolves in the next tick.
|
|
88
|
-
*/
|
|
89
|
-
function setImmediate<T = void>(value?: T, options?: TimerOptions): Promise<T>;
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
*
|
|
93
|
-
* Returns an async iterator that generates values in an interval of delay ms.
|
|
94
|
-
* @param delay defaults to 1
|
|
95
|
-
*/
|
|
96
|
-
function setInterval<T = void>(delay?: number, value?: T, options?: TimerOptions): AsyncIterable<T>;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
declare module 'node:timers/promises' {
|
|
100
|
-
export * from 'timers/promises';
|
|
101
|
-
}
|
node/tls.d.ts
CHANGED
node/ts3.6/assert.d.ts
CHANGED
node/ts3.6/base.d.ts
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
/// <reference path="../constants.d.ts" />
|
|
24
24
|
/// <reference path="../crypto.d.ts" />
|
|
25
25
|
/// <reference path="../dgram.d.ts" />
|
|
26
|
-
/// <reference path="../
|
|
26
|
+
/// <reference path="../diagnostics_channel.d.ts" />
|
|
27
27
|
/// <reference path="../dns.d.ts" />
|
|
28
28
|
/// <reference path="../dns/promises.d.ts" />
|
|
29
29
|
/// <reference path="../dns/promises.d.ts" />
|
node/tty.d.ts
CHANGED
node/url.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare module 'url' {
|
|
2
|
-
import { ClientRequestArgs } from 'http';
|
|
3
|
-
import { ParsedUrlQuery, ParsedUrlQueryInput } from 'querystring';
|
|
2
|
+
import { ClientRequestArgs } from 'node:http';
|
|
3
|
+
import { ParsedUrlQuery, ParsedUrlQueryInput } from 'node:querystring';
|
|
4
4
|
|
|
5
5
|
// Input to `url.format`
|
|
6
6
|
interface UrlObject {
|
node/util.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare module 'util' {
|
|
2
|
-
import * as types from 'util/types';
|
|
2
|
+
import * as types from 'node:util/types';
|
|
3
3
|
|
|
4
4
|
export interface InspectOptions {
|
|
5
5
|
/**
|
|
@@ -197,12 +197,12 @@ declare module 'util' {
|
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
-
declare module '
|
|
201
|
-
export * from 'util';
|
|
200
|
+
declare module 'util/types' {
|
|
201
|
+
export * from 'util/types';
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
declare module 'util/types' {
|
|
205
|
-
import { KeyObject, webcrypto } from 'crypto';
|
|
205
|
+
import { KeyObject, webcrypto } from 'node:crypto';
|
|
206
206
|
|
|
207
207
|
function isAnyArrayBuffer(object: unknown): object is ArrayBufferLike;
|
|
208
208
|
function isArgumentsObject(object: unknown): object is IArguments;
|
|
@@ -259,6 +259,10 @@ declare module 'util/types' {
|
|
|
259
259
|
function isCryptoKey(object: unknown): object is webcrypto.CryptoKey;
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
+
declare module 'node:util' {
|
|
263
|
+
export * from 'util';
|
|
264
|
+
}
|
|
265
|
+
|
|
262
266
|
declare module 'node:util/types' {
|
|
263
267
|
export * from 'util/types';
|
|
264
268
|
}
|
node/v8.d.ts
CHANGED
node/worker_threads.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
declare module 'worker_threads' {
|
|
2
2
|
import { Blob } from 'node:buffer';
|
|
3
|
-
import { Context } from 'vm';
|
|
4
|
-
import { EventEmitter } from 'events';
|
|
5
|
-
import { EventLoopUtilityFunction } from 'perf_hooks';
|
|
6
|
-
import { FileHandle } from 'fs/promises';
|
|
7
|
-
import { Readable, Writable } from 'stream';
|
|
8
|
-
import { URL } from 'url';
|
|
9
|
-
import { X509Certificate } from 'crypto';
|
|
3
|
+
import { Context } from 'node:vm';
|
|
4
|
+
import { EventEmitter } from 'node:events';
|
|
5
|
+
import { EventLoopUtilityFunction } from 'node:perf_hooks';
|
|
6
|
+
import { FileHandle } from 'node:fs/promises';
|
|
7
|
+
import { Readable, Writable } from 'node:stream';
|
|
8
|
+
import { URL } from 'node:url';
|
|
9
|
+
import { X509Certificate } from 'node:crypto';
|
|
10
10
|
|
|
11
11
|
const isMainThread: boolean;
|
|
12
12
|
const parentPort: null | MessagePort;
|
node/zlib.d.ts
CHANGED