@types/node 12.20.22 → 12.20.26
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 +0 -1
- node v12.20/index.d.ts +1 -1
- node v12.20/package.json +2 -2
- node v12.20/stream.d.ts +1 -0
node v12.20/README.md
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
> `npm install --save @types/node`
|
|
3
3
|
|
|
4
4
|
# Summary
|
|
5
|
-
This package contains type definitions for Node.js (
|
|
5
|
+
This package contains type definitions for Node.js (https://nodejs.org/).
|
|
6
6
|
|
|
7
7
|
# Details
|
|
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, 21 Sep 2021 18:31:42 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
|
|
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
node v12.20/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Type definitions for non-npm package Node.js 12.20
|
|
2
|
-
// Project:
|
|
2
|
+
// Project: https://nodejs.org/
|
|
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>
|
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.26",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -200,6 +200,6 @@
|
|
|
200
200
|
},
|
|
201
201
|
"scripts": {},
|
|
202
202
|
"dependencies": {},
|
|
203
|
-
"typesPublisherContentHash": "
|
|
203
|
+
"typesPublisherContentHash": "a306840a5ab2bd20920a38042841e53fb66553e7f394ca81bcae00ef7572dd93",
|
|
204
204
|
"typeScriptVersion": "3.7"
|
|
205
205
|
}
|
node v12.20/stream.d.ts
CHANGED
|
@@ -230,6 +230,7 @@ declare module 'stream' {
|
|
|
230
230
|
readonly writableHighWaterMark: number;
|
|
231
231
|
readonly writableLength: number;
|
|
232
232
|
readonly writableObjectMode: boolean;
|
|
233
|
+
allowHalfOpen: boolean;
|
|
233
234
|
constructor(opts?: DuplexOptions);
|
|
234
235
|
_write(chunk: any, encoding: string, callback: (error?: Error | null) => void): void;
|
|
235
236
|
_writev?(chunks: Array<{ chunk: any, encoding: string }>, callback: (error?: Error | null) => void): void;
|