@types/node 13.13.50 → 14.0.1
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 v13.13 → node}/LICENSE +0 -0
- node/README.md +16 -0
- node v13.13/ts3.6/assert.d.ts → node/assert.d.ts +8 -27
- node v13.13/async_hooks.d.ts → node/async_hooks.d.ts +1 -29
- node/base.d.ts +41 -0
- {node v13.13 → node}/buffer.d.ts +0 -0
- node v13.13/child_process.d.ts → node/child_process.d.ts +28 -28
- {node v13.13 → node}/cluster.d.ts +0 -0
- {node v13.13 → node}/console.d.ts +0 -0
- {node v13.13 → node}/constants.d.ts +0 -0
- node v13.13/crypto.d.ts → node/crypto.d.ts +83 -287
- node v13.13/dgram.d.ts → node/dgram.d.ts +3 -3
- {node v13.13 → node}/dns.d.ts +0 -0
- node v13.13/domain.d.ts → node/domain.d.ts +2 -2
- node v13.13/events.d.ts → node/events.d.ts +17 -22
- node/fs/promises.d.ts +539 -0
- node v13.13/fs.d.ts → node/fs.d.ts +272 -820
- node v13.13/globals.d.ts → node/globals.d.ts +15 -94
- node v13.13/http.d.ts → node/http.d.ts +4 -11
- node v13.13/http2.d.ts → node/http2.d.ts +6 -6
- {node v13.13 → node}/https.d.ts +0 -0
- node v13.13/index.d.ts → node/index.d.ts +44 -5
- node v13.13/inspector.d.ts → node/inspector.d.ts +7 -0
- node v13.13/module.d.ts → node/module.d.ts +0 -6
- node v13.13/net.d.ts → node/net.d.ts +3 -3
- node v13.13/os.d.ts → node/os.d.ts +1 -1
- node v13.13/package.json → node/package.json +35 -10
- {node v13.13 → node}/path.d.ts +0 -0
- node v13.13/perf_hooks.d.ts → node/perf_hooks.d.ts +74 -8
- {node v13.13 → node}/process.d.ts +0 -0
- node/punycode.d.ts +12 -0
- {node v13.13 → node}/querystring.d.ts +0 -0
- {node v13.13 → node}/readline.d.ts +0 -0
- node v13.13/repl.d.ts → node/repl.d.ts +2 -10
- node v13.13/stream.d.ts → node/stream.d.ts +27 -33
- node v13.13/string_decoder.d.ts → node/string_decoder.d.ts +1 -1
- {node v13.13 → node}/timers.d.ts +0 -0
- node v13.13/tls.d.ts → node/tls.d.ts +2 -2
- {node v13.13 → node}/trace_events.d.ts +0 -0
- node/ts3.2/base.d.ts +22 -0
- node/ts3.2/fs.d.ts +33 -0
- node/ts3.2/globals.d.ts +19 -0
- node/ts3.2/index.d.ts +8 -0
- node/ts3.2/util.d.ts +9 -0
- node/ts3.5/base.d.ts +20 -0
- node v13.13/ts3.6/index.d.ts → node/ts3.5/index.d.ts +4 -2
- node v13.13/wasi.d.ts → node/ts3.5/wasi.d.ts +1 -4
- node v13.13/assert.d.ts → node/ts3.7/assert.d.ts +9 -54
- node v13.13/base.d.ts → node/ts3.7/base.d.ts +2 -1
- node/ts3.7/index.d.ts +5 -0
- {node v13.13 → node}/tty.d.ts +0 -0
- node v13.13/url.d.ts → node/url.d.ts +1 -7
- node v13.13/util.d.ts → node/util.d.ts +14 -30
- {node v13.13 → node}/v8.d.ts +0 -0
- node v13.13/vm.d.ts → node/vm.d.ts +1 -3
- node v13.13/worker_threads.d.ts → node/worker_threads.d.ts +3 -21
- node v13.13/zlib.d.ts → node/zlib.d.ts +0 -1
- node v13.13/README.md +0 -16
- node v13.13/globals.global.d.ts +0 -1
- node v13.13/punycode.d.ts +0 -68
- node v13.13/ts3.6/base.d.ts +0 -60
|
@@ -40,19 +40,13 @@ declare module "url" {
|
|
|
40
40
|
query: string | null;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
/** @deprecated since v11.0.0 - Use the WHATWG URL API. */
|
|
44
43
|
function parse(urlStr: string): UrlWithStringQuery;
|
|
45
|
-
/** @deprecated since v11.0.0 - Use the WHATWG URL API. */
|
|
46
44
|
function parse(urlStr: string, parseQueryString: false | undefined, slashesDenoteHost?: boolean): UrlWithStringQuery;
|
|
47
|
-
/** @deprecated since v11.0.0 - Use the WHATWG URL API. */
|
|
48
45
|
function parse(urlStr: string, parseQueryString: true, slashesDenoteHost?: boolean): UrlWithParsedQuery;
|
|
49
|
-
/** @deprecated since v11.0.0 - Use the WHATWG URL API. */
|
|
50
46
|
function parse(urlStr: string, parseQueryString: boolean, slashesDenoteHost?: boolean): Url;
|
|
51
47
|
|
|
52
48
|
function format(URL: URL, options?: URLFormatOptions): string;
|
|
53
|
-
/** @deprecated since v11.0.0 - Use the WHATWG URL API. */
|
|
54
49
|
function format(urlObject: UrlObject | string): string;
|
|
55
|
-
/** @deprecated since v11.0.0 - Use the WHATWG URL API. */
|
|
56
50
|
function resolve(from: string, to: string): string;
|
|
57
51
|
|
|
58
52
|
function domainToASCII(domain: string): string;
|
|
@@ -98,7 +92,7 @@ declare module "url" {
|
|
|
98
92
|
}
|
|
99
93
|
|
|
100
94
|
class URLSearchParams implements Iterable<[string, string]> {
|
|
101
|
-
constructor(init?: URLSearchParams | string | NodeJS.Dict<string |
|
|
95
|
+
constructor(init?: URLSearchParams | string | NodeJS.Dict<string | string[]> | Iterable<[string, string]> | Array<[string, string]>);
|
|
102
96
|
append(name: string, value: string): void;
|
|
103
97
|
delete(name: string): void;
|
|
104
98
|
entries(): IterableIterator<[string, string]>;
|
|
@@ -5,8 +5,8 @@ declare module "util" {
|
|
|
5
5
|
interface InspectOptionsStylized extends InspectOptions {
|
|
6
6
|
stylize(text: string, styleType: Style): string;
|
|
7
7
|
}
|
|
8
|
-
function format(format
|
|
9
|
-
function formatWithOptions(inspectOptions: InspectOptions, format
|
|
8
|
+
function format(format: any, ...param: any[]): string;
|
|
9
|
+
function formatWithOptions(inspectOptions: InspectOptions, format: string, ...param: any[]): string;
|
|
10
10
|
/** @deprecated since v0.11.3 - use a third party module instead. */
|
|
11
11
|
function log(string: string): void;
|
|
12
12
|
function inspect(object: any, showHidden?: boolean, depth?: number | null, color?: boolean): string;
|
|
@@ -120,58 +120,42 @@ declare module "util" {
|
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
namespace types {
|
|
123
|
-
function isAnyArrayBuffer(object: any):
|
|
123
|
+
function isAnyArrayBuffer(object: any): boolean;
|
|
124
124
|
function isArgumentsObject(object: any): object is IArguments;
|
|
125
125
|
function isArrayBuffer(object: any): object is ArrayBuffer;
|
|
126
|
-
function isArrayBufferView(object: any): object is NodeJS.ArrayBufferView;
|
|
127
126
|
function isAsyncFunction(object: any): boolean;
|
|
128
|
-
function isBigInt64Array(value: any): value is BigInt64Array;
|
|
129
|
-
function isBigUint64Array(value: any): value is BigUint64Array;
|
|
130
127
|
function isBooleanObject(object: any): object is Boolean;
|
|
131
|
-
function isBoxedPrimitive(object: any): object is
|
|
128
|
+
function isBoxedPrimitive(object: any): object is (Number | Boolean | String | Symbol /* | Object(BigInt) | Object(Symbol) */);
|
|
132
129
|
function isDataView(object: any): object is DataView;
|
|
133
130
|
function isDate(object: any): object is Date;
|
|
134
131
|
function isExternal(object: any): boolean;
|
|
135
132
|
function isFloat32Array(object: any): object is Float32Array;
|
|
136
133
|
function isFloat64Array(object: any): object is Float64Array;
|
|
137
|
-
function isGeneratorFunction(object: any):
|
|
138
|
-
function isGeneratorObject(object: any):
|
|
134
|
+
function isGeneratorFunction(object: any): boolean;
|
|
135
|
+
function isGeneratorObject(object: any): boolean;
|
|
139
136
|
function isInt8Array(object: any): object is Int8Array;
|
|
140
137
|
function isInt16Array(object: any): object is Int16Array;
|
|
141
138
|
function isInt32Array(object: any): object is Int32Array;
|
|
142
|
-
function isMap
|
|
143
|
-
object: T | {},
|
|
144
|
-
): object is T extends ReadonlyMap<any, any>
|
|
145
|
-
? unknown extends T
|
|
146
|
-
? never
|
|
147
|
-
: ReadonlyMap<any, any>
|
|
148
|
-
: Map<any, any>;
|
|
139
|
+
function isMap(object: any): boolean;
|
|
149
140
|
function isMapIterator(object: any): boolean;
|
|
150
141
|
function isModuleNamespaceObject(value: any): boolean;
|
|
151
142
|
function isNativeError(object: any): object is Error;
|
|
152
143
|
function isNumberObject(object: any): object is Number;
|
|
153
|
-
function isPromise(object: any):
|
|
144
|
+
function isPromise(object: any): boolean;
|
|
154
145
|
function isProxy(object: any): boolean;
|
|
155
146
|
function isRegExp(object: any): object is RegExp;
|
|
156
|
-
function isSet
|
|
157
|
-
object: T | {},
|
|
158
|
-
): object is T extends ReadonlySet<any>
|
|
159
|
-
? unknown extends T
|
|
160
|
-
? never
|
|
161
|
-
: ReadonlySet<any>
|
|
162
|
-
: Set<any>;
|
|
147
|
+
function isSet(object: any): boolean;
|
|
163
148
|
function isSetIterator(object: any): boolean;
|
|
164
|
-
function isSharedArrayBuffer(object: any):
|
|
165
|
-
function isStringObject(object: any):
|
|
166
|
-
function isSymbolObject(object: any):
|
|
149
|
+
function isSharedArrayBuffer(object: any): boolean;
|
|
150
|
+
function isStringObject(object: any): boolean;
|
|
151
|
+
function isSymbolObject(object: any): boolean;
|
|
167
152
|
function isTypedArray(object: any): object is NodeJS.TypedArray;
|
|
168
153
|
function isUint8Array(object: any): object is Uint8Array;
|
|
169
154
|
function isUint8ClampedArray(object: any): object is Uint8ClampedArray;
|
|
170
155
|
function isUint16Array(object: any): object is Uint16Array;
|
|
171
156
|
function isUint32Array(object: any): object is Uint32Array;
|
|
172
|
-
function isWeakMap(object: any):
|
|
173
|
-
function isWeakSet(object: any):
|
|
174
|
-
/** @deprecated Removed in v14.0.0 */
|
|
157
|
+
function isWeakMap(object: any): boolean;
|
|
158
|
+
function isWeakSet(object: any): boolean;
|
|
175
159
|
function isWebAssemblyCompiledModule(object: any): boolean;
|
|
176
160
|
}
|
|
177
161
|
|
{node v13.13 → node}/v8.d.ts
RENAMED
|
File without changes
|
|
@@ -21,7 +21,6 @@ declare module "vm" {
|
|
|
21
21
|
displayErrors?: boolean;
|
|
22
22
|
timeout?: number;
|
|
23
23
|
cachedData?: Buffer;
|
|
24
|
-
/** @deprecated in favor of `script.createCachedData()` */
|
|
25
24
|
produceCachedData?: boolean;
|
|
26
25
|
}
|
|
27
26
|
interface RunningScriptOptions extends BaseOptions {
|
|
@@ -116,14 +115,13 @@ declare module "vm" {
|
|
|
116
115
|
runInNewContext(sandbox?: Context, options?: RunningScriptOptions): any;
|
|
117
116
|
runInThisContext(options?: RunningScriptOptions): any;
|
|
118
117
|
createCachedData(): Buffer;
|
|
119
|
-
cachedDataRejected?: boolean;
|
|
120
118
|
}
|
|
121
119
|
function createContext(sandbox?: Context, options?: CreateContextOptions): Context;
|
|
122
120
|
function isContext(sandbox: Context): boolean;
|
|
123
121
|
function runInContext(code: string, contextifiedSandbox: Context, options?: RunningScriptOptions | string): any;
|
|
124
122
|
function runInNewContext(code: string, sandbox?: Context, options?: RunningScriptOptions | string): any;
|
|
125
123
|
function runInThisContext(code: string, options?: RunningScriptOptions | string): any;
|
|
126
|
-
function compileFunction(code: string, params?:
|
|
124
|
+
function compileFunction(code: string, params?: string[], options?: CompileFunctionOptions): Function;
|
|
127
125
|
|
|
128
126
|
/**
|
|
129
127
|
* Measure the memory known to V8 and used by the current execution context or a specified context.
|
|
@@ -6,7 +6,6 @@ declare module "worker_threads" {
|
|
|
6
6
|
|
|
7
7
|
const isMainThread: boolean;
|
|
8
8
|
const parentPort: null | MessagePort;
|
|
9
|
-
const resourceLimits: ResourceLimits;
|
|
10
9
|
const SHARE_ENV: unique symbol;
|
|
11
10
|
const threadId: number;
|
|
12
11
|
const workerData: any;
|
|
@@ -16,11 +15,9 @@ declare module "worker_threads" {
|
|
|
16
15
|
readonly port2: MessagePort;
|
|
17
16
|
}
|
|
18
17
|
|
|
19
|
-
type TransferListItem = ArrayBuffer | MessagePort;
|
|
20
|
-
|
|
21
18
|
class MessagePort extends EventEmitter {
|
|
22
19
|
close(): void;
|
|
23
|
-
postMessage(value: any, transferList?:
|
|
20
|
+
postMessage(value: any, transferList?: Array<ArrayBuffer | MessagePort>): void;
|
|
24
21
|
ref(): void;
|
|
25
22
|
unref(): void;
|
|
26
23
|
start(): void;
|
|
@@ -77,7 +74,7 @@ declare module "worker_threads" {
|
|
|
77
74
|
/**
|
|
78
75
|
* Additional data to send in the first worker message.
|
|
79
76
|
*/
|
|
80
|
-
transferList?:
|
|
77
|
+
transferList?: Array<ArrayBuffer | MessagePort>;
|
|
81
78
|
}
|
|
82
79
|
|
|
83
80
|
interface ResourceLimits {
|
|
@@ -86,21 +83,6 @@ declare module "worker_threads" {
|
|
|
86
83
|
codeRangeSizeMb?: number;
|
|
87
84
|
}
|
|
88
85
|
|
|
89
|
-
interface ResourceLimits {
|
|
90
|
-
/**
|
|
91
|
-
* The maximum size of a heap space for recently created objects.
|
|
92
|
-
*/
|
|
93
|
-
maxYoungGenerationSizeMb?: number;
|
|
94
|
-
/**
|
|
95
|
-
* The maximum size of the main heap in MB.
|
|
96
|
-
*/
|
|
97
|
-
maxOldGenerationSizeMb?: number;
|
|
98
|
-
/**
|
|
99
|
-
* The size of a pre-allocated memory range used for generated code.
|
|
100
|
-
*/
|
|
101
|
-
codeRangeSizeMb?: number;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
86
|
class Worker extends EventEmitter {
|
|
105
87
|
readonly stdin: Writable | null;
|
|
106
88
|
readonly stdout: Readable;
|
|
@@ -115,7 +97,7 @@ declare module "worker_threads" {
|
|
|
115
97
|
*/
|
|
116
98
|
constructor(filename: string | URL, options?: WorkerOptions);
|
|
117
99
|
|
|
118
|
-
postMessage(value: any, transferList?:
|
|
100
|
+
postMessage(value: any, transferList?: Array<ArrayBuffer | MessagePort>): void;
|
|
119
101
|
ref(): void;
|
|
120
102
|
unref(): void;
|
|
121
103
|
/**
|
|
@@ -19,7 +19,6 @@ declare module "zlib" {
|
|
|
19
19
|
memLevel?: number; // compression only
|
|
20
20
|
strategy?: number; // compression only
|
|
21
21
|
dictionary?: NodeJS.ArrayBufferView | ArrayBuffer; // deflate/inflate only, empty dictionary by default
|
|
22
|
-
info?: boolean;
|
|
23
22
|
}
|
|
24
23
|
|
|
25
24
|
interface BrotliOptions {
|
node v13.13/README.md
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# Installation
|
|
2
|
-
> `npm install --save @types/node`
|
|
3
|
-
|
|
4
|
-
# Summary
|
|
5
|
-
This package contains type definitions for Node.js (http://nodejs.org/).
|
|
6
|
-
|
|
7
|
-
# Details
|
|
8
|
-
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v13.
|
|
9
|
-
|
|
10
|
-
### Additional Details
|
|
11
|
-
* Last updated: Thu, 15 Apr 2021 17:31:23 GMT
|
|
12
|
-
* Dependencies: none
|
|
13
|
-
* Global values: `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
|
14
|
-
|
|
15
|
-
# Credits
|
|
16
|
-
These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Bruno Scheufler](https://github.com/brunoscheufler), [Chigozirim C.](https://github.com/smac89), [Christian Vaagland Tellnes](https://github.com/tellnes), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Hoàng Văn Khải](https://github.com/KSXGitHub), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Minh Son Nguyen](https://github.com/nguymin4), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Surasak Chaisurin](https://github.com/Ryan-Willpower), [Piotr Błażejewicz](https://github.com/peterblazejewicz), and [Jason Kwok](https://github.com/JasonHK).
|
node v13.13/globals.global.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
declare var global: NodeJS.Global & typeof globalThis;
|
node v13.13/punycode.d.ts
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
declare module "punycode" {
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated since v7.0.0
|
|
4
|
-
* The version of the punycode module bundled in Node.js is being deprecated.
|
|
5
|
-
* In a future major version of Node.js this module will be removed.
|
|
6
|
-
* Users currently depending on the punycode module should switch to using
|
|
7
|
-
* the userland-provided Punycode.js module instead.
|
|
8
|
-
*/
|
|
9
|
-
function decode(string: string): string;
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated since v7.0.0
|
|
12
|
-
* The version of the punycode module bundled in Node.js is being deprecated.
|
|
13
|
-
* In a future major version of Node.js this module will be removed.
|
|
14
|
-
* Users currently depending on the punycode module should switch to using
|
|
15
|
-
* the userland-provided Punycode.js module instead.
|
|
16
|
-
*/
|
|
17
|
-
function encode(string: string): string;
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated since v7.0.0
|
|
20
|
-
* The version of the punycode module bundled in Node.js is being deprecated.
|
|
21
|
-
* In a future major version of Node.js this module will be removed.
|
|
22
|
-
* Users currently depending on the punycode module should switch to using
|
|
23
|
-
* the userland-provided Punycode.js module instead.
|
|
24
|
-
*/
|
|
25
|
-
function toUnicode(domain: string): string;
|
|
26
|
-
/**
|
|
27
|
-
* @deprecated since v7.0.0
|
|
28
|
-
* The version of the punycode module bundled in Node.js is being deprecated.
|
|
29
|
-
* In a future major version of Node.js this module will be removed.
|
|
30
|
-
* Users currently depending on the punycode module should switch to using
|
|
31
|
-
* the userland-provided Punycode.js module instead.
|
|
32
|
-
*/
|
|
33
|
-
function toASCII(domain: string): string;
|
|
34
|
-
/**
|
|
35
|
-
* @deprecated since v7.0.0
|
|
36
|
-
* The version of the punycode module bundled in Node.js is being deprecated.
|
|
37
|
-
* In a future major version of Node.js this module will be removed.
|
|
38
|
-
* Users currently depending on the punycode module should switch to using
|
|
39
|
-
* the userland-provided Punycode.js module instead.
|
|
40
|
-
*/
|
|
41
|
-
const ucs2: ucs2;
|
|
42
|
-
interface ucs2 {
|
|
43
|
-
/**
|
|
44
|
-
* @deprecated since v7.0.0
|
|
45
|
-
* The version of the punycode module bundled in Node.js is being deprecated.
|
|
46
|
-
* In a future major version of Node.js this module will be removed.
|
|
47
|
-
* Users currently depending on the punycode module should switch to using
|
|
48
|
-
* the userland-provided Punycode.js module instead.
|
|
49
|
-
*/
|
|
50
|
-
decode(string: string): number[];
|
|
51
|
-
/**
|
|
52
|
-
* @deprecated since v7.0.0
|
|
53
|
-
* The version of the punycode module bundled in Node.js is being deprecated.
|
|
54
|
-
* In a future major version of Node.js this module will be removed.
|
|
55
|
-
* Users currently depending on the punycode module should switch to using
|
|
56
|
-
* the userland-provided Punycode.js module instead.
|
|
57
|
-
*/
|
|
58
|
-
encode(codePoints: ReadonlyArray<number>): string;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* @deprecated since v7.0.0
|
|
62
|
-
* The version of the punycode module bundled in Node.js is being deprecated.
|
|
63
|
-
* In a future major version of Node.js this module will be removed.
|
|
64
|
-
* Users currently depending on the punycode module should switch to using
|
|
65
|
-
* the userland-provided Punycode.js module instead.
|
|
66
|
-
*/
|
|
67
|
-
const version: string;
|
|
68
|
-
}
|
node v13.13/ts3.6/base.d.ts
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
// NOTE: These definitions support NodeJS and TypeScript 3.6 and earlier.
|
|
2
|
-
|
|
3
|
-
// NOTE: TypeScript version-specific augmentations can be found in the following paths:
|
|
4
|
-
// - ~/base.d.ts - Shared definitions common to all TypeScript versions
|
|
5
|
-
// - ~/index.d.ts - Definitions specific to TypeScript 3.7+
|
|
6
|
-
// - ~/ts3.5/base.d.ts - Definitions specific to TypeScript 3.6 and earlier
|
|
7
|
-
// - ~/ts3.5/index.d.ts - Definitions specific to TypeScript 3.6 and earlier with assert pulled in
|
|
8
|
-
|
|
9
|
-
// Reference required types from the default lib:
|
|
10
|
-
/// <reference lib="es2018" />
|
|
11
|
-
/// <reference lib="esnext.asynciterable" />
|
|
12
|
-
/// <reference lib="esnext.intl" />
|
|
13
|
-
/// <reference lib="esnext.bigint" />
|
|
14
|
-
|
|
15
|
-
// Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
|
|
16
|
-
/// <reference path="../globals.d.ts" />
|
|
17
|
-
/// <reference path="../async_hooks.d.ts" />
|
|
18
|
-
/// <reference path="../buffer.d.ts" />
|
|
19
|
-
/// <reference path="../child_process.d.ts" />
|
|
20
|
-
/// <reference path="../cluster.d.ts" />
|
|
21
|
-
/// <reference path="../console.d.ts" />
|
|
22
|
-
/// <reference path="../constants.d.ts" />
|
|
23
|
-
/// <reference path="../crypto.d.ts" />
|
|
24
|
-
/// <reference path="../dgram.d.ts" />
|
|
25
|
-
/// <reference path="../dns.d.ts" />
|
|
26
|
-
/// <reference path="../domain.d.ts" />
|
|
27
|
-
/// <reference path="../events.d.ts" />
|
|
28
|
-
/// <reference path="../fs.d.ts" />
|
|
29
|
-
/// <reference path="../http.d.ts" />
|
|
30
|
-
/// <reference path="../http2.d.ts" />
|
|
31
|
-
/// <reference path="../https.d.ts" />
|
|
32
|
-
/// <reference path="../inspector.d.ts" />
|
|
33
|
-
/// <reference path="../module.d.ts" />
|
|
34
|
-
/// <reference path="../net.d.ts" />
|
|
35
|
-
/// <reference path="../os.d.ts" />
|
|
36
|
-
/// <reference path="../path.d.ts" />
|
|
37
|
-
/// <reference path="../perf_hooks.d.ts" />
|
|
38
|
-
/// <reference path="../process.d.ts" />
|
|
39
|
-
/// <reference path="../punycode.d.ts" />
|
|
40
|
-
/// <reference path="../querystring.d.ts" />
|
|
41
|
-
/// <reference path="../readline.d.ts" />
|
|
42
|
-
/// <reference path="../repl.d.ts" />
|
|
43
|
-
/// <reference path="../stream.d.ts" />
|
|
44
|
-
/// <reference path="../string_decoder.d.ts" />
|
|
45
|
-
/// <reference path="../timers.d.ts" />
|
|
46
|
-
/// <reference path="../tls.d.ts" />
|
|
47
|
-
/// <reference path="../trace_events.d.ts" />
|
|
48
|
-
/// <reference path="../tty.d.ts" />
|
|
49
|
-
/// <reference path="../url.d.ts" />
|
|
50
|
-
/// <reference path="../util.d.ts" />
|
|
51
|
-
/// <reference path="../v8.d.ts" />
|
|
52
|
-
/// <reference path="../vm.d.ts" />
|
|
53
|
-
/// <reference path="../worker_threads.d.ts" />
|
|
54
|
-
/// <reference path="../zlib.d.ts" />
|
|
55
|
-
|
|
56
|
-
// TypeScript 3.4-specific augmentations:
|
|
57
|
-
/// <reference path="../globals.global.d.ts" />
|
|
58
|
-
|
|
59
|
-
// TypeScript 3.5-specific augmentations:
|
|
60
|
-
/// <reference path="../wasi.d.ts" />
|