@types/node 14.14.33 → 14.14.37
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/LICENSE +0 -0
- node/README.md +1 -1
- node/assert.d.ts +0 -0
- node/async_hooks.d.ts +1 -1
- node/base.d.ts +0 -0
- node/buffer.d.ts +0 -0
- node/child_process.d.ts +13 -12
- node/cluster.d.ts +0 -0
- node/console.d.ts +0 -0
- node/constants.d.ts +0 -0
- node/crypto.d.ts +4 -4
- node/dgram.d.ts +0 -0
- node/dns.d.ts +0 -0
- node/domain.d.ts +0 -0
- node/events.d.ts +0 -0
- node/fs/promises.d.ts +0 -0
- node/fs.d.ts +0 -0
- node/globals.d.ts +0 -0
- node/globals.global.d.ts +0 -0
- node/http.d.ts +0 -0
- node/http2.d.ts +1 -1
- node/https.d.ts +0 -0
- node/index.d.ts +0 -0
- node/inspector.d.ts +0 -0
- node/module.d.ts +0 -0
- node/net.d.ts +0 -0
- node/os.d.ts +0 -0
- node/package.json +2 -2
- node/path.d.ts +0 -0
- node/perf_hooks.d.ts +0 -0
- node/process.d.ts +0 -0
- node/punycode.d.ts +0 -0
- node/querystring.d.ts +0 -0
- node/readline.d.ts +0 -0
- node/repl.d.ts +0 -0
- node/stream.d.ts +0 -0
- node/string_decoder.d.ts +0 -0
- node/timers.d.ts +0 -0
- node/tls.d.ts +0 -0
- node/trace_events.d.ts +0 -0
- node/ts3.6/assert.d.ts +0 -0
- node/ts3.6/base.d.ts +0 -0
- node/ts3.6/index.d.ts +0 -0
- node/tty.d.ts +0 -0
- node/url.d.ts +0 -0
- node/util.d.ts +0 -0
- node/v8.d.ts +0 -0
- node/vm.d.ts +4 -0
- node/wasi.d.ts +0 -0
- node/worker_threads.d.ts +0 -0
- node/zlib.d.ts +0 -0
node/LICENSE
CHANGED
|
File without changes
|
node/README.md
CHANGED
|
@@ -8,7 +8,7 @@ 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.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Sat, 27 Mar 2021 00:01:17 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
|
14
14
|
|
node/assert.d.ts
CHANGED
|
File without changes
|
node/async_hooks.d.ts
CHANGED
node/base.d.ts
CHANGED
|
File without changes
|
node/buffer.d.ts
CHANGED
|
File without changes
|
node/child_process.d.ts
CHANGED
|
@@ -342,6 +342,7 @@ declare module 'child_process' {
|
|
|
342
342
|
interface ExecFileOptionsWithOtherEncoding extends ExecFileOptions {
|
|
343
343
|
encoding: BufferEncoding;
|
|
344
344
|
}
|
|
345
|
+
type ExecFileException = ExecException & NodeJS.ErrnoException;
|
|
345
346
|
|
|
346
347
|
function execFile(file: string): ChildProcess;
|
|
347
348
|
function execFile(file: string, options: (BaseEncodingOptions & ExecFileOptions) | undefined | null): ChildProcess;
|
|
@@ -349,25 +350,25 @@ declare module 'child_process' {
|
|
|
349
350
|
function execFile(file: string, args: ReadonlyArray<string> | undefined | null, options: (BaseEncodingOptions & ExecFileOptions) | undefined | null): ChildProcess;
|
|
350
351
|
|
|
351
352
|
// no `options` definitely means stdout/stderr are `string`.
|
|
352
|
-
function execFile(file: string, callback: (error:
|
|
353
|
-
function execFile(file: string, args: ReadonlyArray<string> | undefined | null, callback: (error:
|
|
353
|
+
function execFile(file: string, callback: (error: ExecFileException | null, stdout: string, stderr: string) => void): ChildProcess;
|
|
354
|
+
function execFile(file: string, args: ReadonlyArray<string> | undefined | null, callback: (error: ExecFileException | null, stdout: string, stderr: string) => void): ChildProcess;
|
|
354
355
|
|
|
355
356
|
// `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`.
|
|
356
|
-
function execFile(file: string, options: ExecFileOptionsWithBufferEncoding, callback: (error:
|
|
357
|
+
function execFile(file: string, options: ExecFileOptionsWithBufferEncoding, callback: (error: ExecFileException | null, stdout: Buffer, stderr: Buffer) => void): ChildProcess;
|
|
357
358
|
function execFile(
|
|
358
359
|
file: string,
|
|
359
360
|
args: ReadonlyArray<string> | undefined | null,
|
|
360
361
|
options: ExecFileOptionsWithBufferEncoding,
|
|
361
|
-
callback: (error:
|
|
362
|
+
callback: (error: ExecFileException | null, stdout: Buffer, stderr: Buffer) => void,
|
|
362
363
|
): ChildProcess;
|
|
363
364
|
|
|
364
365
|
// `options` with well known `encoding` means stdout/stderr are definitely `string`.
|
|
365
|
-
function execFile(file: string, options: ExecFileOptionsWithStringEncoding, callback: (error:
|
|
366
|
+
function execFile(file: string, options: ExecFileOptionsWithStringEncoding, callback: (error: ExecFileException | null, stdout: string, stderr: string) => void): ChildProcess;
|
|
366
367
|
function execFile(
|
|
367
368
|
file: string,
|
|
368
369
|
args: ReadonlyArray<string> | undefined | null,
|
|
369
370
|
options: ExecFileOptionsWithStringEncoding,
|
|
370
|
-
callback: (error:
|
|
371
|
+
callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
|
|
371
372
|
): ChildProcess;
|
|
372
373
|
|
|
373
374
|
// `options` with an `encoding` whose type is `string` means stdout/stderr could either be `Buffer` or `string`.
|
|
@@ -375,35 +376,35 @@ declare module 'child_process' {
|
|
|
375
376
|
function execFile(
|
|
376
377
|
file: string,
|
|
377
378
|
options: ExecFileOptionsWithOtherEncoding,
|
|
378
|
-
callback: (error:
|
|
379
|
+
callback: (error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
|
|
379
380
|
): ChildProcess;
|
|
380
381
|
function execFile(
|
|
381
382
|
file: string,
|
|
382
383
|
args: ReadonlyArray<string> | undefined | null,
|
|
383
384
|
options: ExecFileOptionsWithOtherEncoding,
|
|
384
|
-
callback: (error:
|
|
385
|
+
callback: (error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
|
|
385
386
|
): ChildProcess;
|
|
386
387
|
|
|
387
388
|
// `options` without an `encoding` means stdout/stderr are definitely `string`.
|
|
388
|
-
function execFile(file: string, options: ExecFileOptions, callback: (error:
|
|
389
|
+
function execFile(file: string, options: ExecFileOptions, callback: (error: ExecFileException | null, stdout: string, stderr: string) => void): ChildProcess;
|
|
389
390
|
function execFile(
|
|
390
391
|
file: string,
|
|
391
392
|
args: ReadonlyArray<string> | undefined | null,
|
|
392
393
|
options: ExecFileOptions,
|
|
393
|
-
callback: (error:
|
|
394
|
+
callback: (error: ExecFileException | null, stdout: string, stderr: string) => void
|
|
394
395
|
): ChildProcess;
|
|
395
396
|
|
|
396
397
|
// fallback if nothing else matches. Worst case is always `string | Buffer`.
|
|
397
398
|
function execFile(
|
|
398
399
|
file: string,
|
|
399
400
|
options: (BaseEncodingOptions & ExecFileOptions) | undefined | null,
|
|
400
|
-
callback: ((error:
|
|
401
|
+
callback: ((error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null,
|
|
401
402
|
): ChildProcess;
|
|
402
403
|
function execFile(
|
|
403
404
|
file: string,
|
|
404
405
|
args: ReadonlyArray<string> | undefined | null,
|
|
405
406
|
options: (BaseEncodingOptions & ExecFileOptions) | undefined | null,
|
|
406
|
-
callback: ((error:
|
|
407
|
+
callback: ((error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null,
|
|
407
408
|
): ChildProcess;
|
|
408
409
|
|
|
409
410
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
node/cluster.d.ts
CHANGED
|
File without changes
|
node/console.d.ts
CHANGED
|
File without changes
|
node/constants.d.ts
CHANGED
|
File without changes
|
node/crypto.d.ts
CHANGED
|
@@ -234,8 +234,8 @@ declare module 'crypto' {
|
|
|
234
234
|
private constructor();
|
|
235
235
|
update(data: BinaryLike): Buffer;
|
|
236
236
|
update(data: string, input_encoding: Encoding): Buffer;
|
|
237
|
-
update(data: NodeJS.ArrayBufferView, input_encoding: undefined, output_encoding:
|
|
238
|
-
update(data: string, input_encoding: Encoding | undefined, output_encoding:
|
|
237
|
+
update(data: NodeJS.ArrayBufferView, input_encoding: undefined, output_encoding: Encoding): string;
|
|
238
|
+
update(data: string, input_encoding: Encoding | undefined, output_encoding: Encoding): string;
|
|
239
239
|
final(): Buffer;
|
|
240
240
|
final(output_encoding: BufferEncoding): string;
|
|
241
241
|
setAutoPadding(auto_padding?: boolean): this;
|
|
@@ -279,9 +279,9 @@ declare module 'crypto' {
|
|
|
279
279
|
class Decipher extends stream.Transform {
|
|
280
280
|
private constructor();
|
|
281
281
|
update(data: NodeJS.ArrayBufferView): Buffer;
|
|
282
|
-
update(data: string, input_encoding:
|
|
282
|
+
update(data: string, input_encoding: Encoding): Buffer;
|
|
283
283
|
update(data: NodeJS.ArrayBufferView, input_encoding: undefined, output_encoding: Encoding): string;
|
|
284
|
-
update(data: string, input_encoding:
|
|
284
|
+
update(data: string, input_encoding: Encoding | undefined, output_encoding: Encoding): string;
|
|
285
285
|
final(): Buffer;
|
|
286
286
|
final(output_encoding: BufferEncoding): string;
|
|
287
287
|
setAutoPadding(auto_padding?: boolean): this;
|
node/dgram.d.ts
CHANGED
|
File without changes
|
node/dns.d.ts
CHANGED
|
File without changes
|
node/domain.d.ts
CHANGED
|
File without changes
|
node/events.d.ts
CHANGED
|
File without changes
|
node/fs/promises.d.ts
CHANGED
|
File without changes
|
node/fs.d.ts
CHANGED
|
File without changes
|
node/globals.d.ts
CHANGED
|
File without changes
|
node/globals.global.d.ts
CHANGED
|
File without changes
|
node/http.d.ts
CHANGED
|
File without changes
|
node/http2.d.ts
CHANGED
|
@@ -652,7 +652,7 @@ declare module 'http2' {
|
|
|
652
652
|
prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
653
653
|
}
|
|
654
654
|
|
|
655
|
-
export class Http2ServerResponse extends stream.
|
|
655
|
+
export class Http2ServerResponse extends stream.Writable {
|
|
656
656
|
constructor(stream: ServerHttp2Stream);
|
|
657
657
|
|
|
658
658
|
readonly connection: net.Socket | tls.TLSSocket;
|
node/https.d.ts
CHANGED
|
File without changes
|
node/index.d.ts
CHANGED
|
File without changes
|
node/inspector.d.ts
CHANGED
|
File without changes
|
node/module.d.ts
CHANGED
|
File without changes
|
node/net.d.ts
CHANGED
|
File without changes
|
node/os.d.ts
CHANGED
|
File without changes
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "14.14.
|
|
3
|
+
"version": "14.14.37",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -231,6 +231,6 @@
|
|
|
231
231
|
},
|
|
232
232
|
"scripts": {},
|
|
233
233
|
"dependencies": {},
|
|
234
|
-
"typesPublisherContentHash": "
|
|
234
|
+
"typesPublisherContentHash": "f02c816ba8df5df4174feb1c57ce0d4ec89ba3eb1ee63a224ae7143e07aee695",
|
|
235
235
|
"typeScriptVersion": "3.5"
|
|
236
236
|
}
|
node/path.d.ts
CHANGED
|
File without changes
|
node/perf_hooks.d.ts
CHANGED
|
File without changes
|
node/process.d.ts
CHANGED
|
File without changes
|
node/punycode.d.ts
CHANGED
|
File without changes
|
node/querystring.d.ts
CHANGED
|
File without changes
|
node/readline.d.ts
CHANGED
|
File without changes
|
node/repl.d.ts
CHANGED
|
File without changes
|
node/stream.d.ts
CHANGED
|
File without changes
|
node/string_decoder.d.ts
CHANGED
|
File without changes
|
node/timers.d.ts
CHANGED
|
File without changes
|
node/tls.d.ts
CHANGED
|
File without changes
|
node/trace_events.d.ts
CHANGED
|
File without changes
|
node/ts3.6/assert.d.ts
CHANGED
|
File without changes
|
node/ts3.6/base.d.ts
CHANGED
|
File without changes
|
node/ts3.6/index.d.ts
CHANGED
|
File without changes
|
node/tty.d.ts
CHANGED
|
File without changes
|
node/url.d.ts
CHANGED
|
File without changes
|
node/util.d.ts
CHANGED
|
File without changes
|
node/v8.d.ts
CHANGED
|
File without changes
|
node/vm.d.ts
CHANGED
|
@@ -99,6 +99,10 @@ declare module 'vm' {
|
|
|
99
99
|
*/
|
|
100
100
|
wasm?: boolean;
|
|
101
101
|
};
|
|
102
|
+
/**
|
|
103
|
+
* If set to `afterEvaluate`, microtasks will be run immediately after the script has run.
|
|
104
|
+
*/
|
|
105
|
+
microtaskMode?: 'afterEvaluate';
|
|
102
106
|
}
|
|
103
107
|
|
|
104
108
|
type MeasureMemoryMode = 'summary' | 'detailed';
|
node/wasi.d.ts
CHANGED
|
File without changes
|
node/worker_threads.d.ts
CHANGED
|
File without changes
|
node/zlib.d.ts
CHANGED
|
File without changes
|