@types/node 12.20.25 → 12.20.29
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/child_process.d.ts +17 -15
- node v12.20/globals.d.ts +5 -0
- node v12.20/index.d.ts +0 -1
- node v12.20/inspector.d.ts +8 -2
- node v12.20/package.json +2 -7
node v12.20/README.md
CHANGED
|
@@ -8,9 +8,9 @@ This package contains type definitions for Node.js (https://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: Tue,
|
|
11
|
+
* Last updated: Tue, 12 Oct 2021 17:31:35 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), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [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)
|
|
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), [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), and [ExE Boss](https://github.com/ExE-Boss).
|
node v12.20/child_process.d.ts
CHANGED
|
@@ -445,12 +445,13 @@ declare module 'child_process' {
|
|
|
445
445
|
error?: Error | undefined;
|
|
446
446
|
}
|
|
447
447
|
function spawnSync(command: string): SpawnSyncReturns<Buffer>;
|
|
448
|
-
function spawnSync(command: string, options
|
|
449
|
-
function spawnSync(command: string, options
|
|
450
|
-
function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns<Buffer>;
|
|
451
|
-
function spawnSync(command: string, args
|
|
452
|
-
function spawnSync(command: string, args
|
|
453
|
-
function spawnSync(command: string, args
|
|
448
|
+
function spawnSync(command: string, options: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
|
|
449
|
+
function spawnSync(command: string, options: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
|
|
450
|
+
function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns<string | Buffer>;
|
|
451
|
+
function spawnSync(command: string, args: ReadonlyArray<string>): SpawnSyncReturns<Buffer>;
|
|
452
|
+
function spawnSync(command: string, args: ReadonlyArray<string>, options: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
|
|
453
|
+
function spawnSync(command: string, args: ReadonlyArray<string>, options: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
|
|
454
|
+
function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptions): SpawnSyncReturns<string | Buffer>;
|
|
454
455
|
|
|
455
456
|
interface ExecSyncOptions extends CommonOptions {
|
|
456
457
|
input?: string | Uint8Array | undefined;
|
|
@@ -467,9 +468,9 @@ declare module 'child_process' {
|
|
|
467
468
|
encoding: string; // specify `null`.
|
|
468
469
|
}
|
|
469
470
|
function execSync(command: string): Buffer;
|
|
470
|
-
function execSync(command: string, options
|
|
471
|
-
function execSync(command: string, options
|
|
472
|
-
function execSync(command: string, options?: ExecSyncOptions): Buffer;
|
|
471
|
+
function execSync(command: string, options: ExecSyncOptionsWithStringEncoding): string;
|
|
472
|
+
function execSync(command: string, options: ExecSyncOptionsWithBufferEncoding): Buffer;
|
|
473
|
+
function execSync(command: string, options?: ExecSyncOptions): string | Buffer;
|
|
473
474
|
|
|
474
475
|
interface ExecFileSyncOptions extends CommonOptions {
|
|
475
476
|
input?: string | NodeJS.ArrayBufferView | undefined;
|
|
@@ -486,10 +487,11 @@ declare module 'child_process' {
|
|
|
486
487
|
encoding: string; // specify `null`.
|
|
487
488
|
}
|
|
488
489
|
function execFileSync(command: string): Buffer;
|
|
489
|
-
function execFileSync(command: string, options
|
|
490
|
-
function execFileSync(command: string, options
|
|
491
|
-
function execFileSync(command: string, options?: ExecFileSyncOptions): Buffer;
|
|
492
|
-
function execFileSync(command: string, args
|
|
493
|
-
function execFileSync(command: string, args
|
|
494
|
-
function execFileSync(command: string, args
|
|
490
|
+
function execFileSync(command: string, options: ExecFileSyncOptionsWithStringEncoding): string;
|
|
491
|
+
function execFileSync(command: string, options: ExecFileSyncOptionsWithBufferEncoding): Buffer;
|
|
492
|
+
function execFileSync(command: string, options?: ExecFileSyncOptions): string | Buffer;
|
|
493
|
+
function execFileSync(command: string, args: ReadonlyArray<string>): Buffer;
|
|
494
|
+
function execFileSync(command: string, args: ReadonlyArray<string>, options: ExecFileSyncOptionsWithStringEncoding): string;
|
|
495
|
+
function execFileSync(command: string, args: ReadonlyArray<string>, options: ExecFileSyncOptionsWithBufferEncoding): Buffer;
|
|
496
|
+
function execFileSync(command: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptions): string | Buffer;
|
|
495
497
|
}
|
node v12.20/globals.d.ts
CHANGED
|
@@ -542,6 +542,11 @@ declare namespace NodeJS {
|
|
|
542
542
|
ignoreErrors?: boolean | undefined;
|
|
543
543
|
colorMode?: boolean | 'auto' | undefined;
|
|
544
544
|
inspectOptions?: InspectOptions | undefined;
|
|
545
|
+
/**
|
|
546
|
+
* Set group indentation
|
|
547
|
+
* @default 2
|
|
548
|
+
*/
|
|
549
|
+
groupIndentation?: number | undefined;
|
|
545
550
|
}
|
|
546
551
|
|
|
547
552
|
interface ConsoleConstructor {
|
node v12.20/index.d.ts
CHANGED
|
@@ -36,7 +36,6 @@
|
|
|
36
36
|
// Junxiao Shi <https://github.com/yoursunny>
|
|
37
37
|
// Ilia Baryshnikov <https://github.com/qwelias>
|
|
38
38
|
// ExE Boss <https://github.com/ExE-Boss>
|
|
39
|
-
// Jason Kwok <https://github.com/JasonHK>
|
|
40
39
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
41
40
|
|
|
42
41
|
// NOTE: These definitions support NodeJS and TypeScript 3.7.
|
node v12.20/inspector.d.ts
CHANGED
|
@@ -1910,11 +1910,17 @@ declare module 'inspector' {
|
|
|
1910
1910
|
|
|
1911
1911
|
/**
|
|
1912
1912
|
* Connects a session to the inspector back-end.
|
|
1913
|
-
* An exception will be thrown if there is already a connected session established either
|
|
1914
|
-
* through the API or by a front-end connected to the Inspector WebSocket port.
|
|
1915
1913
|
*/
|
|
1916
1914
|
connect(): void;
|
|
1917
1915
|
|
|
1916
|
+
/**
|
|
1917
|
+
* Connects a session to the main thread inspector back-end.
|
|
1918
|
+
* An exception will be thrown if this API was not called on a Worker
|
|
1919
|
+
* thread.
|
|
1920
|
+
* @since 12.11.0
|
|
1921
|
+
*/
|
|
1922
|
+
connectToMainThread(): void;
|
|
1923
|
+
|
|
1918
1924
|
/**
|
|
1919
1925
|
* Immediately close the session. All pending message callbacks will be called with an error.
|
|
1920
1926
|
* session.connect() will need to be called to be able to send messages again.
|
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.29",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -184,11 +184,6 @@
|
|
|
184
184
|
"name": "ExE Boss",
|
|
185
185
|
"url": "https://github.com/ExE-Boss",
|
|
186
186
|
"githubUsername": "ExE-Boss"
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
"name": "Jason Kwok",
|
|
190
|
-
"url": "https://github.com/JasonHK",
|
|
191
|
-
"githubUsername": "JasonHK"
|
|
192
187
|
}
|
|
193
188
|
],
|
|
194
189
|
"main": "",
|
|
@@ -200,6 +195,6 @@
|
|
|
200
195
|
},
|
|
201
196
|
"scripts": {},
|
|
202
197
|
"dependencies": {},
|
|
203
|
-
"typesPublisherContentHash": "
|
|
198
|
+
"typesPublisherContentHash": "5ea422dffd3fd3bb8e19dba22cd923a6f49a8681b277ca739936becf32f6ea51",
|
|
204
199
|
"typeScriptVersion": "3.7"
|
|
205
200
|
}
|