@types/node 13.13.17 → 13.13.21
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/README.md +2 -2
- node v13.13/{ts3.1/async_hooks.d.ts → async_hooks.d.ts} +0 -0
- node v13.13/{ts3.1/buffer.d.ts → buffer.d.ts} +0 -0
- node v13.13/{ts3.1/child_process.d.ts → child_process.d.ts} +0 -0
- node v13.13/{ts3.1/cluster.d.ts → cluster.d.ts} +0 -0
- node v13.13/{ts3.1/console.d.ts → console.d.ts} +0 -0
- node v13.13/{ts3.1/constants.d.ts → constants.d.ts} +0 -0
- node v13.13/{ts3.1/crypto.d.ts → crypto.d.ts} +0 -0
- node v13.13/{ts3.1/dgram.d.ts → dgram.d.ts} +0 -0
- node v13.13/{ts3.1/dns.d.ts → dns.d.ts} +0 -0
- node v13.13/{ts3.1/domain.d.ts → domain.d.ts} +0 -0
- node v13.13/{ts3.1/events.d.ts → events.d.ts} +0 -0
- node v13.13/{ts3.1/fs.d.ts → fs.d.ts } +24 -0
- node v13.13/{ts3.1/globals.d.ts → globals.d.ts } +17 -0
- node v13.13/{ts3.6/globals.global.d.ts → globals.global.d.ts} +0 -0
- node v13.13/{ts3.1/http.d.ts → http.d.ts} +0 -0
- node v13.13/{ts3.1/http2.d.ts → http2.d.ts} +0 -0
- node v13.13/{ts3.1/https.d.ts → https.d.ts} +0 -0
- node v13.13/{ts3.1/inspector.d.ts → inspector.d.ts} +0 -0
- node v13.13/{ts3.1/module.d.ts → module.d.ts} +0 -0
- node v13.13/{ts3.1/net.d.ts → net.d.ts} +0 -0
- node v13.13/{ts3.1/os.d.ts → os.d.ts} +0 -0
- node v13.13/package.json +3 -8
- node v13.13/{ts3.1/path.d.ts → path.d.ts} +0 -0
- node v13.13/{ts3.1/perf_hooks.d.ts → perf_hooks.d.ts } +7 -73
- node v13.13/{ts3.1/process.d.ts → process.d.ts} +0 -0
- node v13.13/{ts3.1/punycode.d.ts → punycode.d.ts} +0 -0
- node v13.13/{ts3.1/querystring.d.ts → querystring.d.ts} +0 -0
- node v13.13/{ts3.1/readline.d.ts → readline.d.ts} +0 -0
- node v13.13/{ts3.1/repl.d.ts → repl.d.ts} +0 -0
- node v13.13/{ts3.1/stream.d.ts → stream.d.ts} +0 -0
- node v13.13/{ts3.1/string_decoder.d.ts → string_decoder.d.ts} +0 -0
- node v13.13/{ts3.1/timers.d.ts → timers.d.ts} +0 -0
- node v13.13/{ts3.1/tls.d.ts → tls.d.ts} +0 -0
- node v13.13/{ts3.1/trace_events.d.ts → trace_events.d.ts} +0 -0
- node v13.13/{ts3.1 → ts3.4}/assert.d.ts +0 -0
- node v13.13/ts3.4/base.d.ts +40 -8
- node v13.13/{ts3.1 → ts3.4}/globals.global.d.ts +0 -0
- node v13.13/ts3.4/index.d.ts +2 -6
- node v13.13/ts3.6/base.d.ts +2 -2
- node v13.13/ts3.6/index.d.ts +1 -1
- node v13.13/{ts3.1/tty.d.ts → tty.d.ts} +0 -0
- node v13.13/{ts3.1/url.d.ts → url.d.ts} +0 -0
- node v13.13/{ts3.1/util.d.ts → util.d.ts } +2 -0
- node v13.13/{ts3.1/v8.d.ts → v8.d.ts} +0 -0
- node v13.13/{ts3.1/vm.d.ts → vm.d.ts} +0 -0
- node v13.13/{ts3.6/wasi.d.ts → wasi.d.ts} +0 -0
- node v13.13/{ts3.1/worker_threads.d.ts → worker_threads.d.ts} +0 -0
- node v13.13/{ts3.1/zlib.d.ts → zlib.d.ts} +0 -0
- node v13.13/ts3.1/base.d.ts +0 -40
- node v13.13/ts3.1/index.d.ts +0 -44
- node v13.13/ts3.4/fs.d.ts +0 -33
- node v13.13/ts3.4/globals.d.ts +0 -19
- node v13.13/ts3.4/util.d.ts +0 -9
node v13.13/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/v13.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Wed, 16 Sep 2020 21:15:56 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
|
-
* Global values: `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout
|
|
13
|
+
* Global values: `Buffer`, `__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), [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), [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), [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), [Surasak Chaisurin](https://github.com/Ryan-Willpower), [Piotr Błażejewicz](https://github.com/peterblazejewicz), 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
|
|
@@ -491,6 +491,8 @@ declare module "fs" {
|
|
|
491
491
|
* Asynchronous stat(2) - Get file status.
|
|
492
492
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
493
493
|
*/
|
|
494
|
+
function stat(path: PathLike, options: BigIntOptions, callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void): void;
|
|
495
|
+
function stat(path: PathLike, options: StatOptions, callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void): void;
|
|
494
496
|
function stat(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void;
|
|
495
497
|
|
|
496
498
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
@@ -499,6 +501,8 @@ declare module "fs" {
|
|
|
499
501
|
* Asynchronous stat(2) - Get file status.
|
|
500
502
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
501
503
|
*/
|
|
504
|
+
function __promisify__(path: PathLike, options: BigIntOptions): Promise<BigIntStats>;
|
|
505
|
+
function __promisify__(path: PathLike, options: StatOptions): Promise<Stats | BigIntStats>;
|
|
502
506
|
function __promisify__(path: PathLike): Promise<Stats>;
|
|
503
507
|
}
|
|
504
508
|
|
|
@@ -506,6 +510,8 @@ declare module "fs" {
|
|
|
506
510
|
* Synchronous stat(2) - Get file status.
|
|
507
511
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
508
512
|
*/
|
|
513
|
+
function statSync(path: PathLike, options: BigIntOptions): BigIntStats;
|
|
514
|
+
function statSync(path: PathLike, options: StatOptions): Stats | BigIntStats;
|
|
509
515
|
function statSync(path: PathLike): Stats;
|
|
510
516
|
|
|
511
517
|
/**
|
|
@@ -2641,4 +2647,22 @@ declare module "fs" {
|
|
|
2641
2647
|
|
|
2642
2648
|
function opendir(path: string, options?: OpenDirOptions): Promise<Dir>;
|
|
2643
2649
|
}
|
|
2650
|
+
|
|
2651
|
+
interface BigIntStats extends StatsBase<bigint> {
|
|
2652
|
+
}
|
|
2653
|
+
|
|
2654
|
+
class BigIntStats {
|
|
2655
|
+
atimeNs: bigint;
|
|
2656
|
+
mtimeNs: bigint;
|
|
2657
|
+
ctimeNs: bigint;
|
|
2658
|
+
birthtimeNs: bigint;
|
|
2659
|
+
}
|
|
2660
|
+
|
|
2661
|
+
interface BigIntOptions {
|
|
2662
|
+
bigint: true;
|
|
2663
|
+
}
|
|
2664
|
+
|
|
2665
|
+
interface StatOptions {
|
|
2666
|
+
bigint: boolean;
|
|
2667
|
+
}
|
|
2644
2668
|
}
|
|
@@ -123,6 +123,11 @@ interface String {
|
|
|
123
123
|
trimLeft(): string;
|
|
124
124
|
/** Removes whitespace from the right end of a string. */
|
|
125
125
|
trimRight(): string;
|
|
126
|
+
|
|
127
|
+
/** Returns a copy with leading whitespace removed. */
|
|
128
|
+
trimStart(): string;
|
|
129
|
+
/** Returns a copy with trailing whitespace removed. */
|
|
130
|
+
trimEnd(): string;
|
|
126
131
|
}
|
|
127
132
|
|
|
128
133
|
interface ImportMeta {
|
|
@@ -406,6 +411,17 @@ declare class Buffer extends Uint8Array {
|
|
|
406
411
|
values(): IterableIterator<number>;
|
|
407
412
|
}
|
|
408
413
|
|
|
414
|
+
interface Buffer extends Uint8Array {
|
|
415
|
+
readBigUInt64BE(offset?: number): bigint;
|
|
416
|
+
readBigUInt64LE(offset?: number): bigint;
|
|
417
|
+
readBigInt64BE(offset?: number): bigint;
|
|
418
|
+
readBigInt64LE(offset?: number): bigint;
|
|
419
|
+
writeBigInt64BE(value: bigint, offset?: number): number;
|
|
420
|
+
writeBigInt64LE(value: bigint, offset?: number): number;
|
|
421
|
+
writeBigUInt64BE(value: bigint, offset?: number): number;
|
|
422
|
+
writeBigUInt64LE(value: bigint, offset?: number): number;
|
|
423
|
+
}
|
|
424
|
+
|
|
409
425
|
/*----------------------------------------------*
|
|
410
426
|
* *
|
|
411
427
|
* GLOBAL INTERFACES *
|
|
@@ -680,6 +696,7 @@ declare namespace NodeJS {
|
|
|
680
696
|
|
|
681
697
|
interface HRTime {
|
|
682
698
|
(time?: [number, number]): [number, number];
|
|
699
|
+
bigint(): bigint;
|
|
683
700
|
}
|
|
684
701
|
|
|
685
702
|
interface ProcessReport {
|
|
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 v13.13/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "13.13.
|
|
3
|
+
"version": "13.13.21",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -223,11 +223,6 @@
|
|
|
223
223
|
"main": "",
|
|
224
224
|
"types": "index.d.ts",
|
|
225
225
|
"typesVersions": {
|
|
226
|
-
"<=3.1": {
|
|
227
|
-
"*": [
|
|
228
|
-
"ts3.1/*"
|
|
229
|
-
]
|
|
230
|
-
},
|
|
231
226
|
"<=3.4": {
|
|
232
227
|
"*": [
|
|
233
228
|
"ts3.4/*"
|
|
@@ -246,6 +241,6 @@
|
|
|
246
241
|
},
|
|
247
242
|
"scripts": {},
|
|
248
243
|
"dependencies": {},
|
|
249
|
-
"typesPublisherContentHash": "
|
|
250
|
-
"typeScriptVersion": "3.
|
|
244
|
+
"typesPublisherContentHash": "61c7e27a5f1b92c49f95ff26c96f103f43be0ca81e5ffa2ad3ef49e4dcdcf743",
|
|
245
|
+
"typeScriptVersion": "3.2"
|
|
251
246
|
}
|
|
File without changes
|
|
@@ -44,64 +44,34 @@ declare module 'perf_hooks' {
|
|
|
44
44
|
interface PerformanceNodeTiming extends PerformanceEntry {
|
|
45
45
|
/**
|
|
46
46
|
* The high resolution millisecond timestamp at which the Node.js process completed bootstrap.
|
|
47
|
+
* If bootstrapping has not yet finished, the property has the value of -1.
|
|
47
48
|
*/
|
|
48
49
|
readonly bootstrapComplete: number;
|
|
49
50
|
|
|
50
51
|
/**
|
|
51
|
-
* The high resolution millisecond timestamp at which
|
|
52
|
+
* The high resolution millisecond timestamp at which the Node.js process completed bootstrapping.
|
|
53
|
+
* If bootstrapping has not yet finished, the property has the value of -1.
|
|
52
54
|
*/
|
|
53
|
-
readonly
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* The high resolution millisecond timestamp at which cluster processing started.
|
|
57
|
-
*/
|
|
58
|
-
readonly clusterSetupStart: number;
|
|
55
|
+
readonly environment: number;
|
|
59
56
|
|
|
60
57
|
/**
|
|
61
58
|
* The high resolution millisecond timestamp at which the Node.js event loop exited.
|
|
59
|
+
* If the event loop has not yet exited, the property has the value of -1.
|
|
60
|
+
* It can only have a value of not -1 in a handler of the 'exit' event.
|
|
62
61
|
*/
|
|
63
62
|
readonly loopExit: number;
|
|
64
63
|
|
|
65
64
|
/**
|
|
66
65
|
* The high resolution millisecond timestamp at which the Node.js event loop started.
|
|
66
|
+
* 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.
|
|
67
67
|
*/
|
|
68
68
|
readonly loopStart: number;
|
|
69
69
|
|
|
70
|
-
/**
|
|
71
|
-
* The high resolution millisecond timestamp at which main module load ended.
|
|
72
|
-
*/
|
|
73
|
-
readonly moduleLoadEnd: number;
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* The high resolution millisecond timestamp at which main module load started.
|
|
77
|
-
*/
|
|
78
|
-
readonly moduleLoadStart: number;
|
|
79
|
-
|
|
80
70
|
/**
|
|
81
71
|
* The high resolution millisecond timestamp at which the Node.js process was initialized.
|
|
82
72
|
*/
|
|
83
73
|
readonly nodeStart: number;
|
|
84
74
|
|
|
85
|
-
/**
|
|
86
|
-
* The high resolution millisecond timestamp at which preload module load ended.
|
|
87
|
-
*/
|
|
88
|
-
readonly preloadModuleLoadEnd: number;
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* The high resolution millisecond timestamp at which preload module load started.
|
|
92
|
-
*/
|
|
93
|
-
readonly preloadModuleLoadStart: number;
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* The high resolution millisecond timestamp at which third_party_main processing ended.
|
|
97
|
-
*/
|
|
98
|
-
readonly thirdPartyMainEnd: number;
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* The high resolution millisecond timestamp at which third_party_main processing started.
|
|
102
|
-
*/
|
|
103
|
-
readonly thirdPartyMainStart: number;
|
|
104
|
-
|
|
105
75
|
/**
|
|
106
76
|
* The high resolution millisecond timestamp at which the V8 platform was initialized.
|
|
107
77
|
*/
|
|
@@ -109,13 +79,6 @@ declare module 'perf_hooks' {
|
|
|
109
79
|
}
|
|
110
80
|
|
|
111
81
|
interface Performance {
|
|
112
|
-
/**
|
|
113
|
-
* If name is not provided, removes all PerformanceFunction objects from the Performance Timeline.
|
|
114
|
-
* If name is provided, removes entries with name.
|
|
115
|
-
* @param name
|
|
116
|
-
*/
|
|
117
|
-
clearFunctions(name?: string): void;
|
|
118
|
-
|
|
119
82
|
/**
|
|
120
83
|
* If name is not provided, removes all PerformanceMark objects from the Performance Timeline.
|
|
121
84
|
* If name is provided, removes only the named mark.
|
|
@@ -123,35 +86,6 @@ declare module 'perf_hooks' {
|
|
|
123
86
|
*/
|
|
124
87
|
clearMarks(name?: string): void;
|
|
125
88
|
|
|
126
|
-
/**
|
|
127
|
-
* If name is not provided, removes all PerformanceMeasure objects from the Performance Timeline.
|
|
128
|
-
* If name is provided, removes only objects whose performanceEntry.name matches name.
|
|
129
|
-
*/
|
|
130
|
-
clearMeasures(name?: string): void;
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Returns a list of all PerformanceEntry objects in chronological order with respect to performanceEntry.startTime.
|
|
134
|
-
* @return list of all PerformanceEntry objects
|
|
135
|
-
*/
|
|
136
|
-
getEntries(): PerformanceEntry[];
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* Returns a list of all PerformanceEntry objects in chronological order with respect to performanceEntry.startTime
|
|
140
|
-
* whose performanceEntry.name is equal to name, and optionally, whose performanceEntry.entryType is equal to type.
|
|
141
|
-
* @param name
|
|
142
|
-
* @param type
|
|
143
|
-
* @return list of all PerformanceEntry objects
|
|
144
|
-
*/
|
|
145
|
-
getEntriesByName(name: string, type?: EntryType): PerformanceEntry[];
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Returns a list of all PerformanceEntry objects in chronological order with respect to performanceEntry.startTime
|
|
149
|
-
* whose performanceEntry.entryType is equal to type.
|
|
150
|
-
* @param type
|
|
151
|
-
* @return list of all PerformanceEntry objects
|
|
152
|
-
*/
|
|
153
|
-
getEntriesByType(type: EntryType): PerformanceEntry[];
|
|
154
|
-
|
|
155
89
|
/**
|
|
156
90
|
* Creates a new PerformanceMark entry in the Performance Timeline.
|
|
157
91
|
* 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 v13.13/ts3.4/base.d.ts
CHANGED
|
@@ -12,11 +12,43 @@
|
|
|
12
12
|
/// <reference lib="esnext.intl" />
|
|
13
13
|
/// <reference lib="esnext.bigint" />
|
|
14
14
|
|
|
15
|
-
//
|
|
16
|
-
|
|
17
|
-
/// <reference path="../
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
/// <reference path="
|
|
21
|
-
/// <reference path="
|
|
22
|
-
/// <reference path="
|
|
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" />
|
|
File without changes
|
node v13.13/ts3.4/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 v13.13/ts3.6/base.d.ts
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
/// <reference path="../ts3.4/base.d.ts" />
|
|
18
18
|
|
|
19
19
|
// TypeScript 3.4-specific augmentations:
|
|
20
|
-
/// <reference path="globals.global.d.ts" />
|
|
20
|
+
/// <reference path="../globals.global.d.ts" />
|
|
21
21
|
|
|
22
22
|
// TypeScript 3.5-specific augmentations:
|
|
23
|
-
/// <reference path="wasi.d.ts" />
|
|
23
|
+
/// <reference path="../wasi.d.ts" />
|
node v13.13/ts3.6/index.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
@@ -125,6 +125,8 @@ declare module "util" {
|
|
|
125
125
|
function isArrayBuffer(object: any): object is ArrayBuffer;
|
|
126
126
|
function isArrayBufferView(object: any): object is ArrayBufferView;
|
|
127
127
|
function isAsyncFunction(object: any): boolean;
|
|
128
|
+
function isBigInt64Array(value: any): value is BigInt64Array;
|
|
129
|
+
function isBigUint64Array(value: any): value is BigUint64Array;
|
|
128
130
|
function isBooleanObject(object: any): object is Boolean;
|
|
129
131
|
function isBoxedPrimitive(object: any): object is (Number | Boolean | String | Symbol /* | Object(BigInt) | Object(Symbol) */);
|
|
130
132
|
function isDataView(object: any): object is DataView;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
node v13.13/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 v13.13/ts3.1/index.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
// NOTE: These definitions support NodeJS and TypeScript 3.5.
|
|
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.8
|
|
6
|
-
// - ~/ts3.5/index.d.ts - Definitions specific to TypeScript 3.5
|
|
7
|
-
|
|
8
|
-
// NOTE: Augmentations for TypeScript 3.5 and later should use individual files for overrides
|
|
9
|
-
// within the respective ~/ts3.5 (or later) folder. However, this is disallowed for versions
|
|
10
|
-
// prior to TypeScript 3.5, 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.5+
|
|
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
|
-
// Forward-declarations for needed types from es2015 and later (in case users are using `--lib es5`)
|
|
22
|
-
// Empty interfaces are used here which merge fine with the real declarations in the lib XXX files
|
|
23
|
-
// just to ensure the names are known and node typings can be used without importing these libs.
|
|
24
|
-
// if someone really needs these types the libs need to be added via --lib or in tsconfig.json
|
|
25
|
-
interface AsyncIterable<T> { }
|
|
26
|
-
interface IterableIterator<T> { }
|
|
27
|
-
interface AsyncIterableIterator<T> {}
|
|
28
|
-
interface SymbolConstructor {
|
|
29
|
-
readonly asyncIterator: symbol;
|
|
30
|
-
}
|
|
31
|
-
declare var Symbol: SymbolConstructor;
|
|
32
|
-
// even this is just a forward declaration some properties are added otherwise
|
|
33
|
-
// it would be allowed to pass anything to e.g. Buffer.from()
|
|
34
|
-
interface SharedArrayBuffer {
|
|
35
|
-
readonly byteLength: number;
|
|
36
|
-
slice(begin?: number, end?: number): SharedArrayBuffer;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
declare module "util" {
|
|
40
|
-
namespace types {
|
|
41
|
-
function isBigInt64Array(value: any): boolean;
|
|
42
|
-
function isBigUint64Array(value: any): boolean;
|
|
43
|
-
}
|
|
44
|
-
}
|
node v13.13/ts3.4/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 v13.13/ts3.4/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 v13.13/ts3.4/util.d.ts
DELETED
|
@@ -1,9 +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 types {
|
|
6
|
-
function isBigInt64Array(value: any): value is BigInt64Array;
|
|
7
|
-
function isBigUint64Array(value: any): value is BigUint64Array;
|
|
8
|
-
}
|
|
9
|
-
}
|