@types/node 12.20.0 → 12.20.4
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 +2 -2
- node v12.20/fs.d.ts +33 -27
- node v12.20/index.d.ts +0 -3
- node v12.20/package.json +2 -17
- node v12.20/vm.d.ts +2 -0
node v12.20/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: Fri,
|
|
11
|
+
* Last updated: Fri, 19 Feb 2021 17:58:50 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
|
|
|
15
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), [
|
|
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), [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), [Zane Hannan AU](https://github.com/ZaneHannanAU), [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), and [Jason Kwok](https://github.com/JasonHK).
|
node v12.20/fs.d.ts
CHANGED
|
@@ -459,9 +459,10 @@ declare module 'fs' {
|
|
|
459
459
|
* Asynchronous stat(2) - Get file status.
|
|
460
460
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
461
461
|
*/
|
|
462
|
-
function stat(path: PathLike, options: BigIntOptions, callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void): void;
|
|
463
|
-
function stat(path: PathLike, options: StatOptions, callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void): void;
|
|
464
462
|
function stat(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void;
|
|
463
|
+
function stat(path: PathLike, options: StatOptions & { bigint?: false } | undefined, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void;
|
|
464
|
+
function stat(path: PathLike, options: StatOptions & { bigint: true }, callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void): void;
|
|
465
|
+
function stat(path: PathLike, options: StatOptions | undefined, callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void): void;
|
|
465
466
|
|
|
466
467
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
467
468
|
namespace stat {
|
|
@@ -469,24 +470,18 @@ declare module 'fs' {
|
|
|
469
470
|
* Asynchronous stat(2) - Get file status.
|
|
470
471
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
471
472
|
*/
|
|
472
|
-
function __promisify__(path: PathLike, options
|
|
473
|
-
function __promisify__(path: PathLike, options: StatOptions): Promise<
|
|
474
|
-
function __promisify__(path: PathLike): Promise<Stats>;
|
|
473
|
+
function __promisify__(path: PathLike, options?: StatOptions & { bigint?: false }): Promise<Stats>;
|
|
474
|
+
function __promisify__(path: PathLike, options: StatOptions & { bigint: true }): Promise<BigIntStats>;
|
|
475
|
+
function __promisify__(path: PathLike, options?: StatOptions): Promise<Stats | BigIntStats>;
|
|
475
476
|
}
|
|
476
477
|
|
|
477
478
|
/**
|
|
478
479
|
* Synchronous stat(2) - Get file status.
|
|
479
480
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
480
481
|
*/
|
|
481
|
-
function statSync(path: PathLike, options
|
|
482
|
-
function statSync(path: PathLike, options: StatOptions
|
|
483
|
-
function statSync(path: PathLike): Stats;
|
|
484
|
-
|
|
485
|
-
/**
|
|
486
|
-
* Asynchronous fstat(2) - Get file status.
|
|
487
|
-
* @param fd A file descriptor.
|
|
488
|
-
*/
|
|
489
|
-
function fstat(fd: number, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void;
|
|
482
|
+
function statSync(path: PathLike, options?: StatOptions & { bigint?: false }): Stats;
|
|
483
|
+
function statSync(path: PathLike, options: StatOptions & { bigint: true }): BigIntStats;
|
|
484
|
+
function statSync(path: PathLike, options?: StatOptions): Stats | BigIntStats;
|
|
490
485
|
|
|
491
486
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
492
487
|
namespace fstat {
|
|
@@ -494,20 +489,27 @@ declare module 'fs' {
|
|
|
494
489
|
* Asynchronous fstat(2) - Get file status.
|
|
495
490
|
* @param fd A file descriptor.
|
|
496
491
|
*/
|
|
497
|
-
function __promisify__(fd: number): Promise<Stats>;
|
|
492
|
+
function __promisify__(fd: number, options?: StatOptions & { bigint?: false }): Promise<Stats>;
|
|
493
|
+
function __promisify__(fd: number, options: StatOptions & { bigint: true }): Promise<BigIntStats>;
|
|
494
|
+
function __promisify__(fd: number, options?: StatOptions): Promise<Stats | BigIntStats>;
|
|
498
495
|
}
|
|
499
496
|
|
|
500
497
|
/**
|
|
501
498
|
* Synchronous fstat(2) - Get file status.
|
|
502
499
|
* @param fd A file descriptor.
|
|
503
500
|
*/
|
|
504
|
-
function fstatSync(fd: number): Stats;
|
|
501
|
+
function fstatSync(fd: number, options?: StatOptions & { bigint?: false }): Stats;
|
|
502
|
+
function fstatSync(fd: number, options: StatOptions & { bigint: true }): BigIntStats;
|
|
503
|
+
function fstatSync(fd: number, options?: StatOptions): Stats | BigIntStats;
|
|
505
504
|
|
|
506
505
|
/**
|
|
507
506
|
* Asynchronous lstat(2) - Get file status. Does not dereference symbolic links.
|
|
508
507
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
509
508
|
*/
|
|
510
509
|
function lstat(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void;
|
|
510
|
+
function lstat(path: PathLike, options: StatOptions & { bigint?: false } | undefined, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void;
|
|
511
|
+
function lstat(path: PathLike, options: StatOptions & { bigint: true }, callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void): void;
|
|
512
|
+
function lstat(path: PathLike, options: StatOptions | undefined, callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void): void;
|
|
511
513
|
|
|
512
514
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
513
515
|
namespace lstat {
|
|
@@ -515,14 +517,18 @@ declare module 'fs' {
|
|
|
515
517
|
* Asynchronous lstat(2) - Get file status. Does not dereference symbolic links.
|
|
516
518
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
517
519
|
*/
|
|
518
|
-
function __promisify__(path: PathLike): Promise<Stats>;
|
|
520
|
+
function __promisify__(path: PathLike, options?: StatOptions & { bigint?: false }): Promise<Stats>;
|
|
521
|
+
function __promisify__(path: PathLike, options: StatOptions & { bigint: true }): Promise<BigIntStats>;
|
|
522
|
+
function __promisify__(path: PathLike, options?: StatOptions): Promise<Stats | BigIntStats>;
|
|
519
523
|
}
|
|
520
524
|
|
|
521
525
|
/**
|
|
522
526
|
* Synchronous lstat(2) - Get file status. Does not dereference symbolic links.
|
|
523
527
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
524
528
|
*/
|
|
525
|
-
function lstatSync(path: PathLike): Stats;
|
|
529
|
+
function lstatSync(path: PathLike, options?: StatOptions & { bigint?: false }): Stats;
|
|
530
|
+
function lstatSync(path: PathLike, options: StatOptions & { bigint: true }): BigIntStats;
|
|
531
|
+
function lstatSync(path: PathLike, options?: StatOptions): Stats | BigIntStats;
|
|
526
532
|
|
|
527
533
|
/**
|
|
528
534
|
* Asynchronous link(2) - Create a new link (also known as a hard link) to an existing file.
|
|
@@ -2064,7 +2070,9 @@ declare module 'fs' {
|
|
|
2064
2070
|
/**
|
|
2065
2071
|
* Asynchronous fstat(2) - Get file status.
|
|
2066
2072
|
*/
|
|
2067
|
-
stat(): Promise<Stats>;
|
|
2073
|
+
stat(opts?: StatOptions & { bigint?: false }): Promise<Stats>;
|
|
2074
|
+
stat(opts: StatOptions & { bigint: true }): Promise<BigIntStats>;
|
|
2075
|
+
stat(opts: StatOptions): Promise<Stats | BigIntStats>;
|
|
2068
2076
|
|
|
2069
2077
|
/**
|
|
2070
2078
|
* Asynchronous ftruncate(2) - Truncate a file to a specified length.
|
|
@@ -2303,23 +2311,21 @@ declare module 'fs' {
|
|
|
2303
2311
|
*/
|
|
2304
2312
|
function symlink(target: PathLike, path: PathLike, type?: string | null): Promise<void>;
|
|
2305
2313
|
|
|
2306
|
-
/**
|
|
2307
|
-
* Asynchronous fstat(2) - Get file status.
|
|
2308
|
-
* @param handle A `FileHandle`.
|
|
2309
|
-
*/
|
|
2310
|
-
function fstat(handle: FileHandle): Promise<Stats>;
|
|
2311
|
-
|
|
2312
2314
|
/**
|
|
2313
2315
|
* Asynchronous lstat(2) - Get file status. Does not dereference symbolic links.
|
|
2314
2316
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
2315
2317
|
*/
|
|
2316
|
-
function lstat(path: PathLike): Promise<Stats>;
|
|
2318
|
+
function lstat(path: PathLike, opts?: StatOptions & { bigint?: false }): Promise<Stats>;
|
|
2319
|
+
function lstat(path: PathLike, opts: StatOptions & { bigint: true }): Promise<BigIntStats>;
|
|
2320
|
+
function lstat(path: PathLike, opts?: StatOptions): Promise<Stats | BigIntStats>;
|
|
2317
2321
|
|
|
2318
2322
|
/**
|
|
2319
2323
|
* Asynchronous stat(2) - Get file status.
|
|
2320
2324
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
2321
2325
|
*/
|
|
2322
|
-
function stat(path: PathLike): Promise<Stats>;
|
|
2326
|
+
function stat(path: PathLike, opts?: StatOptions & { bigint?: false }): Promise<Stats>;
|
|
2327
|
+
function stat(path: PathLike, opts: StatOptions & { bigint: true }): Promise<BigIntStats>;
|
|
2328
|
+
function stat(path: PathLike, opts?: StatOptions): Promise<Stats | BigIntStats>;
|
|
2323
2329
|
|
|
2324
2330
|
/**
|
|
2325
2331
|
* Asynchronous link(2) - Create a new link (also known as a hard link) to an existing file.
|
node v12.20/index.d.ts
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
// Definitions by: Microsoft TypeScript <https://github.com/Microsoft>
|
|
4
4
|
// DefinitelyTyped <https://github.com/DefinitelyTyped>
|
|
5
5
|
// Alberto Schiabel <https://github.com/jkomyno>
|
|
6
|
-
// Alexander T. <https://github.com/a-tarasyuk>
|
|
7
6
|
// Alvis HT Tang <https://github.com/alvis>
|
|
8
7
|
// Andrew Makarov <https://github.com/r3nya>
|
|
9
8
|
// Benjamin Toueg <https://github.com/btoueg>
|
|
@@ -12,7 +11,6 @@
|
|
|
12
11
|
// David Junger <https://github.com/touffy>
|
|
13
12
|
// Deividas Bakanas <https://github.com/DeividasBakanas>
|
|
14
13
|
// Eugene Y. Q. Shen <https://github.com/eyqs>
|
|
15
|
-
// Flarna <https://github.com/Flarna>
|
|
16
14
|
// Hannes Magnusson <https://github.com/Hannes-Magnusson-CK>
|
|
17
15
|
// Hoàng Văn Khải <https://github.com/KSXGitHub>
|
|
18
16
|
// Huw <https://github.com/hoo29>
|
|
@@ -32,7 +30,6 @@
|
|
|
32
30
|
// Zane Hannan AU <https://github.com/ZaneHannanAU>
|
|
33
31
|
// Samuel Ainsworth <https://github.com/samuela>
|
|
34
32
|
// Kyle Uehlein <https://github.com/kuehlein>
|
|
35
|
-
// Jordi Oliveras Rovira <https://github.com/j-oliveras>
|
|
36
33
|
// Thanik Bhongbhibhat <https://github.com/bhongy>
|
|
37
34
|
// Marcin Kopacz <https://github.com/chyzwar>
|
|
38
35
|
// Trivikram Kamat <https://github.com/trivikr>
|
node v12.20/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "12.20.
|
|
3
|
+
"version": "12.20.4",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -19,11 +19,6 @@
|
|
|
19
19
|
"url": "https://github.com/jkomyno",
|
|
20
20
|
"githubUsername": "jkomyno"
|
|
21
21
|
},
|
|
22
|
-
{
|
|
23
|
-
"name": "Alexander T.",
|
|
24
|
-
"url": "https://github.com/a-tarasyuk",
|
|
25
|
-
"githubUsername": "a-tarasyuk"
|
|
26
|
-
},
|
|
27
22
|
{
|
|
28
23
|
"name": "Alvis HT Tang",
|
|
29
24
|
"url": "https://github.com/alvis",
|
|
@@ -64,11 +59,6 @@
|
|
|
64
59
|
"url": "https://github.com/eyqs",
|
|
65
60
|
"githubUsername": "eyqs"
|
|
66
61
|
},
|
|
67
|
-
{
|
|
68
|
-
"name": "Flarna",
|
|
69
|
-
"url": "https://github.com/Flarna",
|
|
70
|
-
"githubUsername": "Flarna"
|
|
71
|
-
},
|
|
72
62
|
{
|
|
73
63
|
"name": "Hannes Magnusson",
|
|
74
64
|
"url": "https://github.com/Hannes-Magnusson-CK",
|
|
@@ -164,11 +154,6 @@
|
|
|
164
154
|
"url": "https://github.com/kuehlein",
|
|
165
155
|
"githubUsername": "kuehlein"
|
|
166
156
|
},
|
|
167
|
-
{
|
|
168
|
-
"name": "Jordi Oliveras Rovira",
|
|
169
|
-
"url": "https://github.com/j-oliveras",
|
|
170
|
-
"githubUsername": "j-oliveras"
|
|
171
|
-
},
|
|
172
157
|
{
|
|
173
158
|
"name": "Thanik Bhongbhibhat",
|
|
174
159
|
"url": "https://github.com/bhongy",
|
|
@@ -231,6 +216,6 @@
|
|
|
231
216
|
},
|
|
232
217
|
"scripts": {},
|
|
233
218
|
"dependencies": {},
|
|
234
|
-
"typesPublisherContentHash": "
|
|
219
|
+
"typesPublisherContentHash": "39d6d8c79433fe14d83dc2baf9b24221487434dcdd28c926f45eb2107954f84d",
|
|
235
220
|
"typeScriptVersion": "3.4"
|
|
236
221
|
}
|
node v12.20/vm.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ declare module 'vm' {
|
|
|
27
27
|
displayErrors?: boolean;
|
|
28
28
|
timeout?: number;
|
|
29
29
|
cachedData?: Buffer;
|
|
30
|
+
/** @deprecated in favor of `script.createCachedData()` */
|
|
30
31
|
produceCachedData?: boolean;
|
|
31
32
|
}
|
|
32
33
|
interface RunningScriptOptions extends BaseOptions {
|
|
@@ -104,6 +105,7 @@ declare module 'vm' {
|
|
|
104
105
|
runInNewContext(sandbox?: Context, options?: RunningScriptOptions): any;
|
|
105
106
|
runInThisContext(options?: RunningScriptOptions): any;
|
|
106
107
|
createCachedData(): Buffer;
|
|
108
|
+
cachedDataRejected?: boolean;
|
|
107
109
|
}
|
|
108
110
|
function createContext(sandbox?: Context, options?: CreateContextOptions): Context;
|
|
109
111
|
function isContext(sandbox: Context): boolean;
|