@types/node 12.20.11 → 12.20.15
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 v12.20/README.md +1 -1
- node v12.20/assert.d.ts +0 -5
- node v12.20/async_hooks.d.ts +2 -9
- node v12.20/buffer.d.ts +0 -4
- node v12.20/child_process.d.ts +3 -7
- node v12.20/cluster.d.ts +3 -7
- node v12.20/console.d.ts +0 -4
- node v12.20/constants.d.ts +0 -5
- node v12.20/crypto.d.ts +1 -5
- node v12.20/dgram.d.ts +3 -7
- node v12.20/dns.d.ts +0 -4
- node v12.20/domain.d.ts +1 -5
- node v12.20/events.d.ts +0 -5
- node v12.20/fs.d.ts +3 -7
- node v12.20/globals.d.ts +9 -9
- node v12.20/http.d.ts +3 -7
- node v12.20/http2.d.ts +8 -12
- node v12.20/https.d.ts +3 -7
- node v12.20/inspector.d.ts +1 -8
- node v12.20/module.d.ts +0 -4
- node v12.20/net.d.ts +3 -7
- node v12.20/os.d.ts +0 -4
- node v12.20/package.json +4 -3
- node v12.20/path.d.ts +0 -5
- node v12.20/perf_hooks.d.ts +3 -7
- node v12.20/process.d.ts +1 -5
- node v12.20/punycode.d.ts +0 -11
- node v12.20/querystring.d.ts +0 -4
- node v12.20/readline.d.ts +1 -5
- node v12.20/repl.d.ts +6 -10
- node v12.20/stream.d.ts +1 -6
- node v12.20/string_decoder.d.ts +0 -4
- node v12.20/timers.d.ts +0 -4
- node v12.20/tls.d.ts +1 -5
- node v12.20/trace_events.d.ts +0 -4
- node v12.20/ts3.6/assert.d.ts +0 -5
- node v12.20/tty.d.ts +1 -5
- node v12.20/url.d.ts +1 -5
- node v12.20/util.d.ts +0 -4
- node v12.20/v8.d.ts +1 -5
- node v12.20/vm.d.ts +1 -5
- node v12.20/wasi.d.ts +0 -4
- node v12.20/worker_threads.d.ts +4 -8
- node v12.20/zlib.d.ts +1 -5
node v12.20/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/v12.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Mon, 07 Jun 2021 23:01:28 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Buffer`, `NodeJS`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
|
14
14
|
|
node v12.20/assert.d.ts
CHANGED
node v12.20/async_hooks.d.ts
CHANGED
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Async Hooks module: https://nodejs.org/api/async_hooks.html
|
|
3
|
-
*/
|
|
4
|
-
declare module 'node:async_hooks' {
|
|
5
|
-
export * from 'async_hooks';
|
|
6
|
-
}
|
|
7
|
-
|
|
8
1
|
/**
|
|
9
2
|
* Async Hooks module: https://nodejs.org/api/async_hooks.html
|
|
10
3
|
*/
|
|
@@ -92,7 +85,7 @@ declare module 'async_hooks' {
|
|
|
92
85
|
interface AsyncResourceOptions {
|
|
93
86
|
/**
|
|
94
87
|
* The ID of the execution context that created this async event.
|
|
95
|
-
*
|
|
88
|
+
* @default executionAsyncId()
|
|
96
89
|
*/
|
|
97
90
|
triggerAsyncId?: number;
|
|
98
91
|
|
|
@@ -101,7 +94,7 @@ declare module 'async_hooks' {
|
|
|
101
94
|
* This usually does not need to be set (even if `emitDestroy` is called
|
|
102
95
|
* manually), unless the resource's `asyncId` is retrieved and the
|
|
103
96
|
* sensitive API's `emitDestroy` is called with it.
|
|
104
|
-
*
|
|
97
|
+
* @default false
|
|
105
98
|
*/
|
|
106
99
|
requireManualDestroy?: boolean;
|
|
107
100
|
}
|
node v12.20/buffer.d.ts
CHANGED
node v12.20/child_process.d.ts
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
declare module 'node:child_process' {
|
|
2
|
-
export * from 'child_process';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'child_process' {
|
|
6
|
-
import * as events from '
|
|
7
|
-
import * as net from '
|
|
8
|
-
import { Writable, Readable, Stream, Pipe } from '
|
|
2
|
+
import * as events from 'events';
|
|
3
|
+
import * as net from 'net';
|
|
4
|
+
import { Writable, Readable, Stream, Pipe } from 'stream';
|
|
9
5
|
|
|
10
6
|
interface ChildProcess extends events.EventEmitter {
|
|
11
7
|
stdin: Writable | null;
|
node v12.20/cluster.d.ts
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
declare module 'node:cluster' {
|
|
2
|
-
export * from 'cluster';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'cluster' {
|
|
6
|
-
import * as child from '
|
|
7
|
-
import EventEmitter = require('
|
|
8
|
-
import * as net from '
|
|
2
|
+
import * as child from 'child_process';
|
|
3
|
+
import EventEmitter = require('events');
|
|
4
|
+
import * as net from 'net';
|
|
9
5
|
|
|
10
6
|
// interfaces
|
|
11
7
|
interface ClusterSettings {
|
node v12.20/console.d.ts
CHANGED
node v12.20/constants.d.ts
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/** @deprecated since v6.3.0 - use constants property exposed by the relevant module instead. */
|
|
2
|
-
declare module 'node:constants' {
|
|
3
|
-
export * from 'constants';
|
|
4
|
-
}
|
|
5
|
-
|
|
6
1
|
/** @deprecated since v6.3.0 - use constants property exposed by the relevant module instead. */
|
|
7
2
|
declare module 'constants' {
|
|
8
3
|
/** @deprecated since v6.3.0 - use `os.constants.errno.E2BIG` instead. */
|
node v12.20/crypto.d.ts
CHANGED
node v12.20/dgram.d.ts
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
declare module 'dgram' {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare module 'node:dgram' {
|
|
6
|
-
import { AddressInfo } from 'node:net';
|
|
7
|
-
import * as dns from 'node:dns';
|
|
8
|
-
import EventEmitter = require('node:events');
|
|
2
|
+
import { AddressInfo } from 'net';
|
|
3
|
+
import * as dns from 'dns';
|
|
4
|
+
import EventEmitter = require('events');
|
|
9
5
|
|
|
10
6
|
interface RemoteInfo {
|
|
11
7
|
address: string;
|
node v12.20/dns.d.ts
CHANGED
node v12.20/domain.d.ts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
declare module 'node:domain' {
|
|
2
|
-
export * from 'domain';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'domain' {
|
|
6
|
-
import EventEmitter = require('
|
|
2
|
+
import EventEmitter = require('events');
|
|
7
3
|
|
|
8
4
|
class Domain extends EventEmitter implements NodeJS.Domain {
|
|
9
5
|
run<T>(fn: (...args: any[]) => T, ...args: any[]): T;
|
node v12.20/events.d.ts
CHANGED
node v12.20/fs.d.ts
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
declare module 'node:fs' {
|
|
2
|
-
export * from 'fs';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'fs' {
|
|
6
|
-
import * as stream from '
|
|
7
|
-
import EventEmitter = require('
|
|
8
|
-
import { URL } from '
|
|
2
|
+
import * as stream from 'stream';
|
|
3
|
+
import EventEmitter = require('events');
|
|
4
|
+
import { URL } from 'url';
|
|
9
5
|
|
|
10
6
|
/**
|
|
11
7
|
* Valid types for path values in "fs".
|
node v12.20/globals.d.ts
CHANGED
|
@@ -21,16 +21,16 @@ interface Console {
|
|
|
21
21
|
*/
|
|
22
22
|
countReset(label?: string): void;
|
|
23
23
|
/**
|
|
24
|
-
* The `console.debug()` function is an alias for {@link console.log
|
|
24
|
+
* The `console.debug()` function is an alias for {@link console.log}.
|
|
25
25
|
*/
|
|
26
26
|
debug(message?: any, ...optionalParams: any[]): void;
|
|
27
27
|
/**
|
|
28
|
-
* Uses {@link util.inspect
|
|
28
|
+
* Uses {@link util.inspect} on `obj` and prints the resulting string to `stdout`.
|
|
29
29
|
* This function bypasses any custom `inspect()` function defined on `obj`.
|
|
30
30
|
*/
|
|
31
31
|
dir(obj: any, options?: NodeJS.InspectOptions): void;
|
|
32
32
|
/**
|
|
33
|
-
* This method calls {@link console.log
|
|
33
|
+
* This method calls {@link console.log} passing it the arguments received. Please note that this method does not produce any XML formatting
|
|
34
34
|
*/
|
|
35
35
|
dirxml(...data: any[]): void;
|
|
36
36
|
/**
|
|
@@ -43,7 +43,7 @@ interface Console {
|
|
|
43
43
|
*/
|
|
44
44
|
group(...label: any[]): void;
|
|
45
45
|
/**
|
|
46
|
-
* The `console.groupCollapsed()` function is an alias for {@link console.group
|
|
46
|
+
* The `console.groupCollapsed()` function is an alias for {@link console.group}.
|
|
47
47
|
*/
|
|
48
48
|
groupCollapsed(...label: any[]): void;
|
|
49
49
|
/**
|
|
@@ -51,7 +51,7 @@ interface Console {
|
|
|
51
51
|
*/
|
|
52
52
|
groupEnd(): void;
|
|
53
53
|
/**
|
|
54
|
-
* The {@link console.info
|
|
54
|
+
* The {@link console.info} function is an alias for {@link console.log}.
|
|
55
55
|
*/
|
|
56
56
|
info(message?: any, ...optionalParams: any[]): void;
|
|
57
57
|
/**
|
|
@@ -68,19 +68,19 @@ interface Console {
|
|
|
68
68
|
*/
|
|
69
69
|
time(label?: string): void;
|
|
70
70
|
/**
|
|
71
|
-
* Stops a timer that was previously started by calling {@link console.time
|
|
71
|
+
* Stops a timer that was previously started by calling {@link console.time} and prints the result to `stdout`.
|
|
72
72
|
*/
|
|
73
73
|
timeEnd(label?: string): void;
|
|
74
74
|
/**
|
|
75
|
-
* For a timer that was previously started by calling {@link console.time
|
|
75
|
+
* For a timer that was previously started by calling {@link console.time}, prints the elapsed time and other `data` arguments to `stdout`.
|
|
76
76
|
*/
|
|
77
77
|
timeLog(label?: string, ...data: any[]): void;
|
|
78
78
|
/**
|
|
79
|
-
* Prints to `stderr` the string 'Trace :', followed by the {@link util.format
|
|
79
|
+
* Prints to `stderr` the string 'Trace :', followed by the {@link util.format} formatted message and stack trace to the current position in the code.
|
|
80
80
|
*/
|
|
81
81
|
trace(message?: any, ...optionalParams: any[]): void;
|
|
82
82
|
/**
|
|
83
|
-
* The {@link console.warn
|
|
83
|
+
* The {@link console.warn} function is an alias for {@link console.error}.
|
|
84
84
|
*/
|
|
85
85
|
warn(message?: any, ...optionalParams: any[]): void;
|
|
86
86
|
|
node v12.20/http.d.ts
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
declare module 'node:http' {
|
|
2
|
-
export * from 'http';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'http' {
|
|
6
|
-
import * as stream from '
|
|
7
|
-
import { URL } from '
|
|
8
|
-
import { Socket, Server as NetServer } from '
|
|
2
|
+
import * as stream from 'stream';
|
|
3
|
+
import { URL } from 'url';
|
|
4
|
+
import { Socket, Server as NetServer } from 'net';
|
|
9
5
|
|
|
10
6
|
// incoming headers will never contain number
|
|
11
7
|
interface IncomingHttpHeaders {
|
node v12.20/http2.d.ts
CHANGED
|
@@ -1,22 +1,18 @@
|
|
|
1
|
-
declare module 'node:http2' {
|
|
2
|
-
export * from 'http2';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'http2' {
|
|
6
|
-
import EventEmitter = require('
|
|
7
|
-
import * as fs from '
|
|
8
|
-
import * as net from '
|
|
9
|
-
import * as stream from '
|
|
10
|
-
import * as tls from '
|
|
11
|
-
import * as url from '
|
|
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';
|
|
12
8
|
|
|
13
9
|
import {
|
|
14
10
|
IncomingHttpHeaders as Http1IncomingHttpHeaders,
|
|
15
11
|
OutgoingHttpHeaders,
|
|
16
12
|
IncomingMessage,
|
|
17
13
|
ServerResponse,
|
|
18
|
-
} from '
|
|
19
|
-
export { OutgoingHttpHeaders } from '
|
|
14
|
+
} from 'http';
|
|
15
|
+
export { OutgoingHttpHeaders } from 'http';
|
|
20
16
|
|
|
21
17
|
export interface IncomingHttpStatusHeader {
|
|
22
18
|
":status"?: number;
|
node v12.20/https.d.ts
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
declare module 'node:https' {
|
|
2
|
-
export * from 'https';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'https' {
|
|
6
|
-
import * as tls from '
|
|
7
|
-
import * as http from '
|
|
8
|
-
import { URL } from '
|
|
2
|
+
import * as tls from 'tls';
|
|
3
|
+
import * as http from 'http';
|
|
4
|
+
import { URL } from 'url';
|
|
9
5
|
|
|
10
6
|
type ServerOptions = tls.SecureContextOptions & tls.TlsOptions & http.ServerOptions;
|
|
11
7
|
|
node v12.20/inspector.d.ts
CHANGED
|
@@ -7,18 +7,11 @@
|
|
|
7
7
|
|
|
8
8
|
// tslint:disable:max-line-length
|
|
9
9
|
|
|
10
|
-
/**
|
|
11
|
-
* The inspector module provides an API for interacting with the V8 inspector.
|
|
12
|
-
*/
|
|
13
|
-
declare module 'node:inspector' {
|
|
14
|
-
export * from 'inspector';
|
|
15
|
-
}
|
|
16
|
-
|
|
17
10
|
/**
|
|
18
11
|
* The inspector module provides an API for interacting with the V8 inspector.
|
|
19
12
|
*/
|
|
20
13
|
declare module 'inspector' {
|
|
21
|
-
import EventEmitter = require('
|
|
14
|
+
import EventEmitter = require('events');
|
|
22
15
|
|
|
23
16
|
interface InspectorNotification<T> {
|
|
24
17
|
method: string;
|
node v12.20/module.d.ts
CHANGED
node v12.20/net.d.ts
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
declare module 'node:net' {
|
|
2
|
-
export * from 'net';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'net' {
|
|
6
|
-
import * as stream from '
|
|
7
|
-
import EventEmitter = require('
|
|
8
|
-
import * as dns from '
|
|
2
|
+
import * as stream from 'stream';
|
|
3
|
+
import EventEmitter = require('events');
|
|
4
|
+
import * as dns from 'dns';
|
|
9
5
|
|
|
10
6
|
type LookupFunction = (
|
|
11
7
|
hostname: string,
|
node v12.20/os.d.ts
CHANGED
node v12.20/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "12.20.
|
|
3
|
+
"version": "12.20.15",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
|
+
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
5
6
|
"license": "MIT",
|
|
6
7
|
"contributors": [
|
|
7
8
|
{
|
|
@@ -206,6 +207,6 @@
|
|
|
206
207
|
},
|
|
207
208
|
"scripts": {},
|
|
208
209
|
"dependencies": {},
|
|
209
|
-
"typesPublisherContentHash": "
|
|
210
|
-
"typeScriptVersion": "3.
|
|
210
|
+
"typesPublisherContentHash": "150fc6e21aea3b31722cd56960998249b8445d350dad2c7f2056bc0c4c465815",
|
|
211
|
+
"typeScriptVersion": "3.6"
|
|
211
212
|
}
|
node v12.20/path.d.ts
CHANGED
node v12.20/perf_hooks.d.ts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
declare module 'node:perf_hooks' {
|
|
2
|
-
export * from 'perf_hooks';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'perf_hooks' {
|
|
6
|
-
import { AsyncResource } from '
|
|
2
|
+
import { AsyncResource } from 'async_hooks';
|
|
7
3
|
|
|
8
4
|
interface PerformanceEntry {
|
|
9
5
|
/**
|
|
@@ -116,7 +112,7 @@ declare module 'perf_hooks' {
|
|
|
116
112
|
* @param startMark
|
|
117
113
|
* @param endMark
|
|
118
114
|
*/
|
|
119
|
-
measure(name: string, startMark
|
|
115
|
+
measure(name: string, startMark?: string, endMark?: string): void;
|
|
120
116
|
|
|
121
117
|
/**
|
|
122
118
|
* An instance of the PerformanceNodeTiming class that provides performance metrics for specific Node.js operational milestones.
|
|
@@ -186,7 +182,7 @@ declare module 'perf_hooks' {
|
|
|
186
182
|
* Property buffered defaults to false.
|
|
187
183
|
* @param options
|
|
188
184
|
*/
|
|
189
|
-
observe(options: { entryTypes: ReadonlyArray<string
|
|
185
|
+
observe(options: { entryTypes: ReadonlyArray<string>; buffered?: boolean }): void;
|
|
190
186
|
}
|
|
191
187
|
|
|
192
188
|
namespace constants {
|
node v12.20/process.d.ts
CHANGED
node v12.20/punycode.d.ts
CHANGED
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @deprecated since v7.0.0
|
|
3
|
-
* The version of the punycode module bundled in Node.js is being deprecated.
|
|
4
|
-
* In a future major version of Node.js this module will be removed.
|
|
5
|
-
* Users currently depending on the punycode module should switch to using
|
|
6
|
-
* the userland-provided Punycode.js module instead.
|
|
7
|
-
*/
|
|
8
|
-
declare module 'node:punycode' {
|
|
9
|
-
export * from 'punycode';
|
|
10
|
-
}
|
|
11
|
-
|
|
12
1
|
/**
|
|
13
2
|
* @deprecated since v7.0.0
|
|
14
3
|
* The version of the punycode module bundled in Node.js is being deprecated.
|
node v12.20/querystring.d.ts
CHANGED
node v12.20/readline.d.ts
CHANGED
node v12.20/repl.d.ts
CHANGED
|
@@ -1,26 +1,22 @@
|
|
|
1
|
-
declare module 'node:repl' {
|
|
2
|
-
export * from 'repl';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'repl' {
|
|
6
|
-
import { Interface, Completer, AsyncCompleter } from '
|
|
7
|
-
import { Context } from '
|
|
8
|
-
import { InspectOptions } from '
|
|
2
|
+
import { Interface, Completer, AsyncCompleter } from 'readline';
|
|
3
|
+
import { Context } from 'vm';
|
|
4
|
+
import { InspectOptions } from 'util';
|
|
9
5
|
|
|
10
6
|
interface ReplOptions {
|
|
11
7
|
/**
|
|
12
8
|
* The input prompt to display.
|
|
13
|
-
*
|
|
9
|
+
* @default "> "
|
|
14
10
|
*/
|
|
15
11
|
prompt?: string;
|
|
16
12
|
/**
|
|
17
13
|
* The `Readable` stream from which REPL input will be read.
|
|
18
|
-
*
|
|
14
|
+
* @default process.stdin
|
|
19
15
|
*/
|
|
20
16
|
input?: NodeJS.ReadableStream;
|
|
21
17
|
/**
|
|
22
18
|
* The `Writable` stream to which REPL output will be written.
|
|
23
|
-
*
|
|
19
|
+
* @default process.stdout
|
|
24
20
|
*/
|
|
25
21
|
output?: NodeJS.WritableStream;
|
|
26
22
|
/**
|
node v12.20/stream.d.ts
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
declare module 'node:stream' {
|
|
2
|
-
import Stream = require('stream');
|
|
3
|
-
export = Stream;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
1
|
declare module 'stream' {
|
|
7
|
-
import EventEmitter = require('
|
|
2
|
+
import EventEmitter = require('events');
|
|
8
3
|
|
|
9
4
|
class internal extends EventEmitter {
|
|
10
5
|
pipe<T extends NodeJS.WritableStream>(destination: T, options?: { end?: boolean; }): T;
|
node v12.20/string_decoder.d.ts
CHANGED
node v12.20/timers.d.ts
CHANGED
node v12.20/tls.d.ts
CHANGED
node v12.20/trace_events.d.ts
CHANGED
node v12.20/ts3.6/assert.d.ts
CHANGED
node v12.20/tty.d.ts
CHANGED
node v12.20/url.d.ts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
declare module 'node:url' {
|
|
2
|
-
export * from 'url';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'url' {
|
|
6
|
-
import { ParsedUrlQuery, ParsedUrlQueryInput } from '
|
|
2
|
+
import { ParsedUrlQuery, ParsedUrlQueryInput } from 'querystring';
|
|
7
3
|
|
|
8
4
|
// Input to `url.format`
|
|
9
5
|
interface UrlObject {
|
node v12.20/util.d.ts
CHANGED
node v12.20/v8.d.ts
CHANGED
node v12.20/vm.d.ts
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
declare module 'node:vm' {
|
|
2
|
-
export * from 'vm';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'vm' {
|
|
6
2
|
interface Context {
|
|
7
3
|
[key: string]: any;
|
|
@@ -19,7 +15,7 @@ declare module 'vm' {
|
|
|
19
15
|
lineOffset?: number;
|
|
20
16
|
/**
|
|
21
17
|
* Specifies the column number offset that is displayed in stack traces produced by this script.
|
|
22
|
-
*
|
|
18
|
+
* @default 0
|
|
23
19
|
*/
|
|
24
20
|
columnOffset?: number;
|
|
25
21
|
}
|
node v12.20/wasi.d.ts
CHANGED
node v12.20/worker_threads.d.ts
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
declare module 'node:worker_threads' {
|
|
2
|
-
export * from 'worker_threads';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'worker_threads' {
|
|
6
|
-
import { Context } from '
|
|
7
|
-
import EventEmitter = require('
|
|
8
|
-
import { Readable, Writable } from '
|
|
9
|
-
import { promises } from '
|
|
2
|
+
import { Context } from 'vm';
|
|
3
|
+
import EventEmitter = require('events');
|
|
4
|
+
import { Readable, Writable } from 'stream';
|
|
5
|
+
import { promises } from 'fs';
|
|
10
6
|
|
|
11
7
|
const isMainThread: boolean;
|
|
12
8
|
const parentPort: null | MessagePort;
|