@types/node 12.12.57 → 12.12.61
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.12/README.md +2 -2
- node v12.12/{ts3.1/async_hooks.d.ts → async_hooks.d.ts} +0 -0
- node v12.12/{ts3.1/buffer.d.ts → buffer.d.ts} +0 -0
- node v12.12/{ts3.1/child_process.d.ts → child_process.d.ts} +0 -0
- node v12.12/{ts3.1/cluster.d.ts → cluster.d.ts} +0 -0
- node v12.12/{ts3.1/console.d.ts → console.d.ts} +0 -0
- node v12.12/{ts3.1/constants.d.ts → constants.d.ts} +0 -0
- node v12.12/{ts3.1/crypto.d.ts → crypto.d.ts} +0 -0
- node v12.12/{ts3.1/dgram.d.ts → dgram.d.ts} +0 -0
- node v12.12/{ts3.1/dns.d.ts → dns.d.ts} +0 -0
- node v12.12/{ts3.1/domain.d.ts → domain.d.ts} +0 -0
- node v12.12/{ts3.1/events.d.ts → events.d.ts} +0 -0
- node v12.12/{ts3.1/fs.d.ts → fs.d.ts } +24 -0
- node v12.12/{ts3.1/globals.d.ts → globals.d.ts } +9 -7
- node v12.12/{ts3.6/globals.global.d.ts → globals.global.d.ts} +0 -0
- node v12.12/{ts3.1/http.d.ts → http.d.ts} +0 -0
- node v12.12/{ts3.1/http2.d.ts → http2.d.ts} +0 -0
- node v12.12/{ts3.1/https.d.ts → https.d.ts} +0 -0
- node v12.12/{ts3.1/inspector.d.ts → inspector.d.ts} +0 -0
- node v12.12/{ts3.1/module.d.ts → module.d.ts} +0 -0
- node v12.12/{ts3.1/net.d.ts → net.d.ts} +0 -0
- node v12.12/{ts3.1/os.d.ts → os.d.ts} +0 -0
- node v12.12/package.json +3 -8
- node v12.12/{ts3.1/path.d.ts → path.d.ts} +0 -0
- node v12.12/{ts3.1/perf_hooks.d.ts → perf_hooks.d.ts } +7 -73
- node v12.12/{ts3.1/process.d.ts → process.d.ts} +0 -0
- node v12.12/{ts3.1/punycode.d.ts → punycode.d.ts} +0 -0
- node v12.12/{ts3.1/querystring.d.ts → querystring.d.ts} +0 -0
- node v12.12/{ts3.1/readline.d.ts → readline.d.ts} +0 -0
- node v12.12/{ts3.1/repl.d.ts → repl.d.ts} +0 -0
- node v12.12/{ts3.1/stream.d.ts → stream.d.ts} +0 -0
- node v12.12/{ts3.1/string_decoder.d.ts → string_decoder.d.ts} +0 -0
- node v12.12/{ts3.1/timers.d.ts → timers.d.ts} +0 -0
- node v12.12/{ts3.1/tls.d.ts → tls.d.ts} +0 -0
- node v12.12/{ts3.1/trace_events.d.ts → trace_events.d.ts} +0 -0
- node v12.12/{ts3.1 → ts3.3}/assert.d.ts +0 -0
- node v12.12/ts3.3/base.d.ts +39 -7
- node v12.12/{ts3.1 → ts3.3}/globals.global.d.ts +0 -0
- node v12.12/ts3.3/index.d.ts +2 -6
- node v12.12/ts3.6/base.d.ts +1 -1
- node v12.12/ts3.6/index.d.ts +1 -1
- node v12.12/{ts3.1/tty.d.ts → tty.d.ts} +0 -0
- node v12.12/{ts3.1/url.d.ts → url.d.ts} +0 -0
- node v12.12/{ts3.1/util.d.ts → util.d.ts } +6 -0
- node v12.12/{ts3.1/v8.d.ts → v8.d.ts} +0 -0
- node v12.12/{ts3.1/vm.d.ts → vm.d.ts} +0 -0
- node v12.12/{ts3.1/worker_threads.d.ts → worker_threads.d.ts} +0 -0
- node v12.12/{ts3.1/zlib.d.ts → zlib.d.ts} +0 -0
- node v12.12/ts3.1/base.d.ts +0 -40
- node v12.12/ts3.1/index.d.ts +0 -65
- node v12.12/ts3.3/fs.d.ts +0 -33
- node v12.12/ts3.3/globals.d.ts +0 -19
- node v12.12/ts3.3/util.d.ts +0 -15
node v12.12/README.md
CHANGED
|
@@ -8,9 +8,9 @@ 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: Wed, 16 Sep 2020 22:59:20 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
|
-
* Global values: `Buffer`, `NodeJS`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout
|
|
13
|
+
* Global values: `Buffer`, `NodeJS`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
|
14
14
|
|
|
15
15
|
# Credits
|
|
16
16
|
These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alexander T.](https://github.com/a-tarasyuk), [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), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Flarna](https://github.com/Flarna), [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), [Zane Hannan AU](https://github.com/ZaneHannanAU), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Jordi Oliveras Rovira](https://github.com/j-oliveras), [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), and [Jason Kwok](https://github.com/JasonHK).
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -422,6 +422,8 @@ declare module "fs" {
|
|
|
422
422
|
* Asynchronous stat(2) - Get file status.
|
|
423
423
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
424
424
|
*/
|
|
425
|
+
function stat(path: PathLike, options: BigIntOptions, callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void): void;
|
|
426
|
+
function stat(path: PathLike, options: StatOptions, callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void): void;
|
|
425
427
|
function stat(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void;
|
|
426
428
|
|
|
427
429
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
@@ -430,6 +432,8 @@ declare module "fs" {
|
|
|
430
432
|
* Asynchronous stat(2) - Get file status.
|
|
431
433
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
432
434
|
*/
|
|
435
|
+
function __promisify__(path: PathLike, options: BigIntOptions): Promise<BigIntStats>;
|
|
436
|
+
function __promisify__(path: PathLike, options: StatOptions): Promise<Stats | BigIntStats>;
|
|
433
437
|
function __promisify__(path: PathLike): Promise<Stats>;
|
|
434
438
|
}
|
|
435
439
|
|
|
@@ -437,6 +441,8 @@ declare module "fs" {
|
|
|
437
441
|
* Synchronous stat(2) - Get file status.
|
|
438
442
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
439
443
|
*/
|
|
444
|
+
function statSync(path: PathLike, options: BigIntOptions): BigIntStats;
|
|
445
|
+
function statSync(path: PathLike, options: StatOptions): Stats | BigIntStats;
|
|
440
446
|
function statSync(path: PathLike): Stats;
|
|
441
447
|
|
|
442
448
|
/**
|
|
@@ -2449,4 +2455,22 @@ declare module "fs" {
|
|
|
2449
2455
|
|
|
2450
2456
|
function opendir(path: string, options?: OpenDirOptions): Promise<Dir>;
|
|
2451
2457
|
}
|
|
2458
|
+
|
|
2459
|
+
interface BigIntStats extends StatsBase<bigint> {
|
|
2460
|
+
}
|
|
2461
|
+
|
|
2462
|
+
class BigIntStats {
|
|
2463
|
+
atimeNs: bigint;
|
|
2464
|
+
mtimeNs: bigint;
|
|
2465
|
+
ctimeNs: bigint;
|
|
2466
|
+
birthtimeNs: bigint;
|
|
2467
|
+
}
|
|
2468
|
+
|
|
2469
|
+
interface BigIntOptions {
|
|
2470
|
+
bigint: true;
|
|
2471
|
+
}
|
|
2472
|
+
|
|
2473
|
+
interface StatOptions {
|
|
2474
|
+
bigint: boolean;
|
|
2475
|
+
}
|
|
2452
2476
|
}
|
|
@@ -252,6 +252,14 @@ type BufferEncoding = "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2"
|
|
|
252
252
|
|
|
253
253
|
interface Buffer {
|
|
254
254
|
constructor: typeof Buffer;
|
|
255
|
+
readBigUInt64BE(offset?: number): bigint;
|
|
256
|
+
readBigUInt64LE(offset?: number): bigint;
|
|
257
|
+
readBigInt64BE(offset?: number): bigint;
|
|
258
|
+
readBigInt64LE(offset?: number): bigint;
|
|
259
|
+
writeBigInt64BE(value: bigint, offset?: number): number;
|
|
260
|
+
writeBigInt64LE(value: bigint, offset?: number): number;
|
|
261
|
+
writeBigUInt64BE(value: bigint, offset?: number): number;
|
|
262
|
+
writeBigUInt64LE(value: bigint, offset?: number): number;
|
|
255
263
|
}
|
|
256
264
|
|
|
257
265
|
/**
|
|
@@ -755,6 +763,7 @@ declare namespace NodeJS {
|
|
|
755
763
|
|
|
756
764
|
interface HRTime {
|
|
757
765
|
(time?: [number, number]): [number, number];
|
|
766
|
+
bigint(): bigint;
|
|
758
767
|
}
|
|
759
768
|
|
|
760
769
|
interface ProcessReport {
|
|
@@ -1180,11 +1189,4 @@ declare namespace NodeJS {
|
|
|
1180
1189
|
|
|
1181
1190
|
type TypedArray = Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array | Int8Array | Int16Array | Int32Array | Float32Array | Float64Array;
|
|
1182
1191
|
type ArrayBufferView = TypedArray | DataView;
|
|
1183
|
-
|
|
1184
|
-
// TODO: The value type here is a version of `unknown` with an acceptably lossy amount of accuracy.
|
|
1185
|
-
// Now that TypeScript's DT support is 3.0+, we can look into replacing this with `unknown`.
|
|
1186
|
-
type UnknownFacade = {} | null | undefined;
|
|
1187
|
-
|
|
1188
|
-
/** @deprecated - Use `UnknownFacade` instead. It is a better classifier for the type */
|
|
1189
|
-
type PoorMansUnknown = UnknownFacade;
|
|
1190
1192
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
node v12.12/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "12.12.
|
|
3
|
+
"version": "12.12.61",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -213,11 +213,6 @@
|
|
|
213
213
|
"main": "",
|
|
214
214
|
"types": "index.d.ts",
|
|
215
215
|
"typesVersions": {
|
|
216
|
-
"<=3.1": {
|
|
217
|
-
"*": [
|
|
218
|
-
"ts3.1/*"
|
|
219
|
-
]
|
|
220
|
-
},
|
|
221
216
|
"<=3.3": {
|
|
222
217
|
"*": [
|
|
223
218
|
"ts3.3/*"
|
|
@@ -236,6 +231,6 @@
|
|
|
236
231
|
},
|
|
237
232
|
"scripts": {},
|
|
238
233
|
"dependencies": {},
|
|
239
|
-
"typesPublisherContentHash": "
|
|
240
|
-
"typeScriptVersion": "3.
|
|
234
|
+
"typesPublisherContentHash": "b7d87aeae2092724dd9dbd4770e9caab03c53fdf407ffcb0d369fd70bd51dcec",
|
|
235
|
+
"typeScriptVersion": "3.2"
|
|
241
236
|
}
|
|
File without changes
|
|
@@ -35,64 +35,34 @@ declare module "perf_hooks" {
|
|
|
35
35
|
interface PerformanceNodeTiming extends PerformanceEntry {
|
|
36
36
|
/**
|
|
37
37
|
* The high resolution millisecond timestamp at which the Node.js process completed bootstrap.
|
|
38
|
+
* If bootstrapping has not yet finished, the property has the value of -1.
|
|
38
39
|
*/
|
|
39
40
|
readonly bootstrapComplete: number;
|
|
40
41
|
|
|
41
42
|
/**
|
|
42
|
-
* The high resolution millisecond timestamp at which
|
|
43
|
+
* The high resolution millisecond timestamp at which the Node.js process completed bootstrapping.
|
|
44
|
+
* If bootstrapping has not yet finished, the property has the value of -1.
|
|
43
45
|
*/
|
|
44
|
-
readonly
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* The high resolution millisecond timestamp at which cluster processing started.
|
|
48
|
-
*/
|
|
49
|
-
readonly clusterSetupStart: number;
|
|
46
|
+
readonly environment: number;
|
|
50
47
|
|
|
51
48
|
/**
|
|
52
49
|
* The high resolution millisecond timestamp at which the Node.js event loop exited.
|
|
50
|
+
* If the event loop has not yet exited, the property has the value of -1.
|
|
51
|
+
* It can only have a value of not -1 in a handler of the 'exit' event.
|
|
53
52
|
*/
|
|
54
53
|
readonly loopExit: number;
|
|
55
54
|
|
|
56
55
|
/**
|
|
57
56
|
* The high resolution millisecond timestamp at which the Node.js event loop started.
|
|
57
|
+
* If the event loop has not yet started (e.g., in the first tick of the main script), the property has the value of -1.
|
|
58
58
|
*/
|
|
59
59
|
readonly loopStart: number;
|
|
60
60
|
|
|
61
|
-
/**
|
|
62
|
-
* The high resolution millisecond timestamp at which main module load ended.
|
|
63
|
-
*/
|
|
64
|
-
readonly moduleLoadEnd: number;
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* The high resolution millisecond timestamp at which main module load started.
|
|
68
|
-
*/
|
|
69
|
-
readonly moduleLoadStart: number;
|
|
70
|
-
|
|
71
61
|
/**
|
|
72
62
|
* The high resolution millisecond timestamp at which the Node.js process was initialized.
|
|
73
63
|
*/
|
|
74
64
|
readonly nodeStart: number;
|
|
75
65
|
|
|
76
|
-
/**
|
|
77
|
-
* The high resolution millisecond timestamp at which preload module load ended.
|
|
78
|
-
*/
|
|
79
|
-
readonly preloadModuleLoadEnd: number;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* The high resolution millisecond timestamp at which preload module load started.
|
|
83
|
-
*/
|
|
84
|
-
readonly preloadModuleLoadStart: number;
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* The high resolution millisecond timestamp at which third_party_main processing ended.
|
|
88
|
-
*/
|
|
89
|
-
readonly thirdPartyMainEnd: number;
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* The high resolution millisecond timestamp at which third_party_main processing started.
|
|
93
|
-
*/
|
|
94
|
-
readonly thirdPartyMainStart: number;
|
|
95
|
-
|
|
96
66
|
/**
|
|
97
67
|
* The high resolution millisecond timestamp at which the V8 platform was initialized.
|
|
98
68
|
*/
|
|
@@ -100,13 +70,6 @@ declare module "perf_hooks" {
|
|
|
100
70
|
}
|
|
101
71
|
|
|
102
72
|
interface Performance {
|
|
103
|
-
/**
|
|
104
|
-
* If name is not provided, removes all PerformanceFunction objects from the Performance Timeline.
|
|
105
|
-
* If name is provided, removes entries with name.
|
|
106
|
-
* @param name
|
|
107
|
-
*/
|
|
108
|
-
clearFunctions(name?: string): void;
|
|
109
|
-
|
|
110
73
|
/**
|
|
111
74
|
* If name is not provided, removes all PerformanceMark objects from the Performance Timeline.
|
|
112
75
|
* If name is provided, removes only the named mark.
|
|
@@ -114,35 +77,6 @@ declare module "perf_hooks" {
|
|
|
114
77
|
*/
|
|
115
78
|
clearMarks(name?: string): void;
|
|
116
79
|
|
|
117
|
-
/**
|
|
118
|
-
* If name is not provided, removes all PerformanceMeasure objects from the Performance Timeline.
|
|
119
|
-
* If name is provided, removes only objects whose performanceEntry.name matches name.
|
|
120
|
-
*/
|
|
121
|
-
clearMeasures(name?: string): void;
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* Returns a list of all PerformanceEntry objects in chronological order with respect to performanceEntry.startTime.
|
|
125
|
-
* @return list of all PerformanceEntry objects
|
|
126
|
-
*/
|
|
127
|
-
getEntries(): PerformanceEntry[];
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* Returns a list of all PerformanceEntry objects in chronological order with respect to performanceEntry.startTime
|
|
131
|
-
* whose performanceEntry.name is equal to name, and optionally, whose performanceEntry.entryType is equal to type.
|
|
132
|
-
* @param name
|
|
133
|
-
* @param type
|
|
134
|
-
* @return list of all PerformanceEntry objects
|
|
135
|
-
*/
|
|
136
|
-
getEntriesByName(name: string, type?: string): PerformanceEntry[];
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* Returns a list of all PerformanceEntry objects in chronological order with respect to performanceEntry.startTime
|
|
140
|
-
* whose performanceEntry.entryType is equal to type.
|
|
141
|
-
* @param type
|
|
142
|
-
* @return list of all PerformanceEntry objects
|
|
143
|
-
*/
|
|
144
|
-
getEntriesByType(type: string): PerformanceEntry[];
|
|
145
|
-
|
|
146
80
|
/**
|
|
147
81
|
* Creates a new PerformanceMark entry in the Performance Timeline.
|
|
148
82
|
* A PerformanceMark is a subclass of PerformanceEntry whose performanceEntry.entryType is always 'mark',
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
node v12.12/ts3.3/base.d.ts
CHANGED
|
@@ -13,10 +13,42 @@
|
|
|
13
13
|
/// <reference lib="esnext.bigint" />
|
|
14
14
|
|
|
15
15
|
// Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
|
|
16
|
-
|
|
17
|
-
/// <reference path="../
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
/// <reference path="
|
|
21
|
-
/// <reference path="
|
|
22
|
-
/// <reference path="
|
|
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" />
|
|
File without changes
|
node v12.12/ts3.3/index.d.ts
CHANGED
|
@@ -4,9 +4,5 @@
|
|
|
4
4
|
// Typically type modifiations should be made in base.d.ts instead of here
|
|
5
5
|
|
|
6
6
|
/// <reference path="base.d.ts" />
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/// <reference path="../ts3.1/assert.d.ts" />
|
|
10
|
-
|
|
11
|
-
// tslint:disable-next-line:no-bad-reference
|
|
12
|
-
/// <reference path="../ts3.1/globals.global.d.ts" />
|
|
7
|
+
/// <reference path="assert.d.ts" />
|
|
8
|
+
/// <reference path="globals.global.d.ts" />
|
node v12.12/ts3.6/base.d.ts
CHANGED
node v12.12/ts3.6/index.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
@@ -7,6 +7,7 @@ declare module "util" {
|
|
|
7
7
|
function inspect(object: any, showHidden?: boolean, depth?: number | null, color?: boolean): string;
|
|
8
8
|
function inspect(object: any, options: InspectOptions): string;
|
|
9
9
|
namespace inspect {
|
|
10
|
+
const custom: unique symbol;
|
|
10
11
|
let colors: {
|
|
11
12
|
[color: string]: [number, number] | undefined
|
|
12
13
|
};
|
|
@@ -105,6 +106,9 @@ declare module "util" {
|
|
|
105
106
|
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err?: any) => void) => void,
|
|
106
107
|
): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<void>;
|
|
107
108
|
function promisify(fn: Function): Function;
|
|
109
|
+
namespace promisify {
|
|
110
|
+
const custom: unique symbol;
|
|
111
|
+
}
|
|
108
112
|
|
|
109
113
|
namespace types {
|
|
110
114
|
function isAnyArrayBuffer(object: any): boolean;
|
|
@@ -112,6 +116,8 @@ declare module "util" {
|
|
|
112
116
|
function isArrayBuffer(object: any): object is ArrayBuffer;
|
|
113
117
|
function isArrayBufferView(object: any): object is ArrayBufferView;
|
|
114
118
|
function isAsyncFunction(object: any): boolean;
|
|
119
|
+
function isBigInt64Array(value: any): value is BigInt64Array;
|
|
120
|
+
function isBigUint64Array(value: any): value is BigUint64Array;
|
|
115
121
|
function isBooleanObject(object: any): object is Boolean;
|
|
116
122
|
function isBoxedPrimitive(object: any): object is (Number | Boolean | String | Symbol /* | Object(BigInt) | Object(Symbol) */);
|
|
117
123
|
function isDataView(object: any): object is DataView;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
node v12.12/ts3.1/base.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
// base definitions for all NodeJS modules that are not specific to any version of TypeScript
|
|
2
|
-
/// <reference path="globals.d.ts" />
|
|
3
|
-
/// <reference path="async_hooks.d.ts" />
|
|
4
|
-
/// <reference path="buffer.d.ts" />
|
|
5
|
-
/// <reference path="child_process.d.ts" />
|
|
6
|
-
/// <reference path="cluster.d.ts" />
|
|
7
|
-
/// <reference path="console.d.ts" />
|
|
8
|
-
/// <reference path="constants.d.ts" />
|
|
9
|
-
/// <reference path="crypto.d.ts" />
|
|
10
|
-
/// <reference path="dgram.d.ts" />
|
|
11
|
-
/// <reference path="dns.d.ts" />
|
|
12
|
-
/// <reference path="domain.d.ts" />
|
|
13
|
-
/// <reference path="events.d.ts" />
|
|
14
|
-
/// <reference path="fs.d.ts" />
|
|
15
|
-
/// <reference path="http.d.ts" />
|
|
16
|
-
/// <reference path="http2.d.ts" />
|
|
17
|
-
/// <reference path="https.d.ts" />
|
|
18
|
-
/// <reference path="inspector.d.ts" />
|
|
19
|
-
/// <reference path="module.d.ts" />
|
|
20
|
-
/// <reference path="net.d.ts" />
|
|
21
|
-
/// <reference path="os.d.ts" />
|
|
22
|
-
/// <reference path="path.d.ts" />
|
|
23
|
-
/// <reference path="perf_hooks.d.ts" />
|
|
24
|
-
/// <reference path="process.d.ts" />
|
|
25
|
-
/// <reference path="punycode.d.ts" />
|
|
26
|
-
/// <reference path="querystring.d.ts" />
|
|
27
|
-
/// <reference path="readline.d.ts" />
|
|
28
|
-
/// <reference path="repl.d.ts" />
|
|
29
|
-
/// <reference path="stream.d.ts" />
|
|
30
|
-
/// <reference path="string_decoder.d.ts" />
|
|
31
|
-
/// <reference path="timers.d.ts" />
|
|
32
|
-
/// <reference path="tls.d.ts" />
|
|
33
|
-
/// <reference path="trace_events.d.ts" />
|
|
34
|
-
/// <reference path="tty.d.ts" />
|
|
35
|
-
/// <reference path="url.d.ts" />
|
|
36
|
-
/// <reference path="util.d.ts" />
|
|
37
|
-
/// <reference path="v8.d.ts" />
|
|
38
|
-
/// <reference path="vm.d.ts" />
|
|
39
|
-
/// <reference path="worker_threads.d.ts" />
|
|
40
|
-
/// <reference path="zlib.d.ts" />
|
node v12.12/ts3.1/index.d.ts
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
// NOTE: These definitions support NodeJS and TypeScript 3.2.
|
|
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 2.1
|
|
6
|
-
// - ~/ts3.2/index.d.ts - Definitions specific to TypeScript 3.2
|
|
7
|
-
|
|
8
|
-
// NOTE: Augmentations for TypeScript 3.2 and later should use individual files for overrides
|
|
9
|
-
// within the respective ~/ts3.2 (or later) folder. However, this is disallowed for versions
|
|
10
|
-
// prior to TypeScript 3.2, so the older definitions will be found here.
|
|
11
|
-
|
|
12
|
-
// Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
|
|
13
|
-
/// <reference path="base.d.ts" />
|
|
14
|
-
|
|
15
|
-
// We can't include globals.global.d.ts in globals.d.ts, as it'll cause duplication errors in TypeScript 3.4+
|
|
16
|
-
/// <reference path="globals.global.d.ts" />
|
|
17
|
-
|
|
18
|
-
// We can't include assert.d.ts in base.d.ts, as it'll cause duplication errors in TypeScript 3.7+
|
|
19
|
-
/// <reference path="assert.d.ts" />
|
|
20
|
-
|
|
21
|
-
// TypeScript 2.1-specific augmentations:
|
|
22
|
-
|
|
23
|
-
// Forward-declarations for needed types from es2015 and later (in case users are using `--lib es5`)
|
|
24
|
-
// Empty interfaces are used here which merge fine with the real declarations in the lib XXX files
|
|
25
|
-
// just to ensure the names are known and node typings can be used without importing these libs.
|
|
26
|
-
// if someone really needs these types the libs need to be added via --lib or in tsconfig.json
|
|
27
|
-
interface MapConstructor { }
|
|
28
|
-
interface WeakMapConstructor { }
|
|
29
|
-
interface SetConstructor { }
|
|
30
|
-
interface WeakSetConstructor { }
|
|
31
|
-
interface Set<T> {}
|
|
32
|
-
interface Map<K, V> {}
|
|
33
|
-
interface ReadonlySet<T> {}
|
|
34
|
-
interface Iterable<T> { }
|
|
35
|
-
interface IteratorResult<T> { }
|
|
36
|
-
interface AsyncIterable<T> { }
|
|
37
|
-
interface Iterator<T> {
|
|
38
|
-
next(value?: any): IteratorResult<T>;
|
|
39
|
-
}
|
|
40
|
-
interface IterableIterator<T> { }
|
|
41
|
-
interface AsyncIterableIterator<T> {}
|
|
42
|
-
interface SymbolConstructor {
|
|
43
|
-
readonly iterator: symbol;
|
|
44
|
-
readonly asyncIterator: symbol;
|
|
45
|
-
}
|
|
46
|
-
declare var Symbol: SymbolConstructor;
|
|
47
|
-
// even this is just a forward declaration some properties are added otherwise
|
|
48
|
-
// it would be allowed to pass anything to e.g. Buffer.from()
|
|
49
|
-
interface SharedArrayBuffer {
|
|
50
|
-
readonly byteLength: number;
|
|
51
|
-
slice(begin?: number, end?: number): SharedArrayBuffer;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
declare module "util" {
|
|
55
|
-
namespace inspect {
|
|
56
|
-
const custom: symbol;
|
|
57
|
-
}
|
|
58
|
-
namespace promisify {
|
|
59
|
-
const custom: symbol;
|
|
60
|
-
}
|
|
61
|
-
namespace types {
|
|
62
|
-
function isBigInt64Array(value: any): boolean;
|
|
63
|
-
function isBigUint64Array(value: any): boolean;
|
|
64
|
-
}
|
|
65
|
-
}
|
node v12.12/ts3.3/fs.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// tslint:disable-next-line:no-bad-reference
|
|
2
|
-
/// <reference path="../ts3.1/fs.d.ts" />
|
|
3
|
-
|
|
4
|
-
declare module 'fs' {
|
|
5
|
-
interface BigIntStats extends StatsBase<bigint> {
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
class BigIntStats {
|
|
9
|
-
atimeNs: bigint;
|
|
10
|
-
mtimeNs: bigint;
|
|
11
|
-
ctimeNs: bigint;
|
|
12
|
-
birthtimeNs: bigint;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
interface BigIntOptions {
|
|
16
|
-
bigint: true;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
interface StatOptions {
|
|
20
|
-
bigint: boolean;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
function stat(path: PathLike, options: BigIntOptions, callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void): void;
|
|
24
|
-
function stat(path: PathLike, options: StatOptions, callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void): void;
|
|
25
|
-
|
|
26
|
-
namespace stat {
|
|
27
|
-
function __promisify__(path: PathLike, options: BigIntOptions): Promise<BigIntStats>;
|
|
28
|
-
function __promisify__(path: PathLike, options: StatOptions): Promise<Stats | BigIntStats>;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
function statSync(path: PathLike, options: BigIntOptions): BigIntStats;
|
|
32
|
-
function statSync(path: PathLike, options: StatOptions): Stats | BigIntStats;
|
|
33
|
-
}
|
node v12.12/ts3.3/globals.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// tslint:disable-next-line:no-bad-reference
|
|
2
|
-
/// <reference path="../ts3.1/globals.d.ts" />
|
|
3
|
-
|
|
4
|
-
declare namespace NodeJS {
|
|
5
|
-
interface HRTime {
|
|
6
|
-
bigint(): bigint;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
interface Buffer extends Uint8Array {
|
|
11
|
-
readBigUInt64BE(offset?: number): bigint;
|
|
12
|
-
readBigUInt64LE(offset?: number): bigint;
|
|
13
|
-
readBigInt64BE(offset?: number): bigint;
|
|
14
|
-
readBigInt64LE(offset?: number): bigint;
|
|
15
|
-
writeBigInt64BE(value: bigint, offset?: number): number;
|
|
16
|
-
writeBigInt64LE(value: bigint, offset?: number): number;
|
|
17
|
-
writeBigUInt64BE(value: bigint, offset?: number): number;
|
|
18
|
-
writeBigUInt64LE(value: bigint, offset?: number): number;
|
|
19
|
-
}
|
node v12.12/ts3.3/util.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// tslint:disable-next-line:no-bad-reference
|
|
2
|
-
/// <reference path="../ts3.1/util.d.ts" />
|
|
3
|
-
|
|
4
|
-
declare module "util" {
|
|
5
|
-
namespace inspect {
|
|
6
|
-
const custom: unique symbol;
|
|
7
|
-
}
|
|
8
|
-
namespace promisify {
|
|
9
|
-
const custom: unique symbol;
|
|
10
|
-
}
|
|
11
|
-
namespace types {
|
|
12
|
-
function isBigInt64Array(value: any): value is BigInt64Array;
|
|
13
|
-
function isBigUint64Array(value: any): value is BigUint64Array;
|
|
14
|
-
}
|
|
15
|
-
}
|