@types/node 13.13.25 → 13.13.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 v13.13/README.md +1 -1
- node v13.13/child_process.d.ts +10 -6
- node v13.13/dgram.d.ts +3 -3
- node v13.13/fs.d.ts +10 -10
- node v13.13/globals.d.ts +5 -5
- node v13.13/http.d.ts +2 -2
- node v13.13/http2.d.ts +3 -3
- node v13.13/package.json +2 -2
- node v13.13/perf_hooks.d.ts +1 -1
- node v13.13/punycode.d.ts +1 -1
- node v13.13/stream.d.ts +5 -2
- node v13.13/url.d.ts +1 -1
- node v13.13/vm.d.ts +1 -1
- node v13.13/worker_threads.d.ts +2 -2
node v13.13/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/v13.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated: Fri,
|
|
11
|
+
* Last updated: Fri, 16 Oct 2020 16:30:45 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 v13.13/child_process.d.ts
CHANGED
|
@@ -400,19 +400,23 @@ declare module "child_process" {
|
|
|
400
400
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
401
401
|
namespace execFile {
|
|
402
402
|
function __promisify__(file: string): PromiseWithChild<{ stdout: string, stderr: string }>;
|
|
403
|
-
function __promisify__(file: string, args: string
|
|
403
|
+
function __promisify__(file: string, args: ReadonlyArray<string> | undefined | null): PromiseWithChild<{ stdout: string, stderr: string }>;
|
|
404
404
|
function __promisify__(file: string, options: ExecFileOptionsWithBufferEncoding): PromiseWithChild<{ stdout: Buffer, stderr: Buffer }>;
|
|
405
|
-
function __promisify__(file: string, args: string
|
|
405
|
+
function __promisify__(file: string, args: ReadonlyArray<string> | undefined | null, options: ExecFileOptionsWithBufferEncoding): PromiseWithChild<{ stdout: Buffer, stderr: Buffer }>;
|
|
406
406
|
function __promisify__(file: string, options: ExecFileOptionsWithStringEncoding): PromiseWithChild<{ stdout: string, stderr: string }>;
|
|
407
|
-
function __promisify__(file: string, args: string
|
|
407
|
+
function __promisify__(file: string, args: ReadonlyArray<string> | undefined | null, options: ExecFileOptionsWithStringEncoding): PromiseWithChild<{ stdout: string, stderr: string }>;
|
|
408
408
|
function __promisify__(file: string, options: ExecFileOptionsWithOtherEncoding): PromiseWithChild<{ stdout: string | Buffer, stderr: string | Buffer }>;
|
|
409
|
-
function __promisify__(
|
|
409
|
+
function __promisify__(
|
|
410
|
+
file: string,
|
|
411
|
+
args: ReadonlyArray<string> | undefined | null,
|
|
412
|
+
options: ExecFileOptionsWithOtherEncoding,
|
|
413
|
+
): PromiseWithChild<{ stdout: string | Buffer, stderr: string | Buffer }>;
|
|
410
414
|
function __promisify__(file: string, options: ExecFileOptions): PromiseWithChild<{ stdout: string, stderr: string }>;
|
|
411
|
-
function __promisify__(file: string, args: string
|
|
415
|
+
function __promisify__(file: string, args: ReadonlyArray<string> | undefined | null, options: ExecFileOptions): PromiseWithChild<{ stdout: string, stderr: string }>;
|
|
412
416
|
function __promisify__(file: string, options: ({ encoding?: string | null } & ExecFileOptions) | undefined | null): PromiseWithChild<{ stdout: string | Buffer, stderr: string | Buffer }>;
|
|
413
417
|
function __promisify__(
|
|
414
418
|
file: string,
|
|
415
|
-
args: string
|
|
419
|
+
args: ReadonlyArray<string> | undefined | null,
|
|
416
420
|
options: ({ encoding?: string | null } & ExecFileOptions) | undefined | null,
|
|
417
421
|
): PromiseWithChild<{ stdout: string | Buffer, stderr: string | Buffer }>;
|
|
418
422
|
}
|
node v13.13/dgram.d.ts
CHANGED
|
@@ -50,9 +50,9 @@ declare module "dgram" {
|
|
|
50
50
|
getSendBufferSize(): number;
|
|
51
51
|
ref(): this;
|
|
52
52
|
remoteAddress(): AddressInfo;
|
|
53
|
-
send(msg: string | Uint8Array | any
|
|
54
|
-
send(msg: string | Uint8Array | any
|
|
55
|
-
send(msg: string | Uint8Array | any
|
|
53
|
+
send(msg: string | Uint8Array | ReadonlyArray<any>, port?: number, address?: string, callback?: (error: Error | null, bytes: number) => void): void;
|
|
54
|
+
send(msg: string | Uint8Array | ReadonlyArray<any>, port?: number, callback?: (error: Error | null, bytes: number) => void): void;
|
|
55
|
+
send(msg: string | Uint8Array | ReadonlyArray<any>, callback?: (error: Error | null, bytes: number) => void): void;
|
|
56
56
|
send(msg: string | Uint8Array, offset: number, length: number, port?: number, address?: string, callback?: (error: Error | null, bytes: number) => void): void;
|
|
57
57
|
send(msg: string | Uint8Array, offset: number, length: number, port?: number, callback?: (error: Error | null, bytes: number) => void): void;
|
|
58
58
|
send(msg: string | Uint8Array, offset: number, length: number, callback?: (error: Error | null, bytes: number) => void): void;
|
node v13.13/fs.d.ts
CHANGED
|
@@ -2054,12 +2054,12 @@ declare module "fs" {
|
|
|
2054
2054
|
*/
|
|
2055
2055
|
function writev(
|
|
2056
2056
|
fd: number,
|
|
2057
|
-
buffers: NodeJS.ArrayBufferView
|
|
2057
|
+
buffers: ReadonlyArray<NodeJS.ArrayBufferView>,
|
|
2058
2058
|
cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void
|
|
2059
2059
|
): void;
|
|
2060
2060
|
function writev(
|
|
2061
2061
|
fd: number,
|
|
2062
|
-
buffers: NodeJS.ArrayBufferView
|
|
2062
|
+
buffers: ReadonlyArray<NodeJS.ArrayBufferView>,
|
|
2063
2063
|
position: number,
|
|
2064
2064
|
cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void
|
|
2065
2065
|
): void;
|
|
@@ -2070,22 +2070,22 @@ declare module "fs" {
|
|
|
2070
2070
|
}
|
|
2071
2071
|
|
|
2072
2072
|
namespace writev {
|
|
2073
|
-
function __promisify__(fd: number, buffers: NodeJS.ArrayBufferView
|
|
2073
|
+
function __promisify__(fd: number, buffers: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): Promise<WriteVResult>;
|
|
2074
2074
|
}
|
|
2075
2075
|
|
|
2076
2076
|
/**
|
|
2077
2077
|
* See `writev`.
|
|
2078
2078
|
*/
|
|
2079
|
-
function writevSync(fd: number, buffers: NodeJS.ArrayBufferView
|
|
2079
|
+
function writevSync(fd: number, buffers: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): number;
|
|
2080
2080
|
|
|
2081
2081
|
function readv(
|
|
2082
2082
|
fd: number,
|
|
2083
|
-
buffers: NodeJS.ArrayBufferView
|
|
2083
|
+
buffers: ReadonlyArray<NodeJS.ArrayBufferView>,
|
|
2084
2084
|
cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: NodeJS.ArrayBufferView[]) => void
|
|
2085
2085
|
): void;
|
|
2086
2086
|
function readv(
|
|
2087
2087
|
fd: number,
|
|
2088
|
-
buffers: NodeJS.ArrayBufferView
|
|
2088
|
+
buffers: ReadonlyArray<NodeJS.ArrayBufferView>,
|
|
2089
2089
|
position: number,
|
|
2090
2090
|
cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: NodeJS.ArrayBufferView[]) => void
|
|
2091
2091
|
): void;
|
|
@@ -2096,13 +2096,13 @@ declare module "fs" {
|
|
|
2096
2096
|
}
|
|
2097
2097
|
|
|
2098
2098
|
namespace readv {
|
|
2099
|
-
function __promisify__(fd: number, buffers: NodeJS.ArrayBufferView
|
|
2099
|
+
function __promisify__(fd: number, buffers: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): Promise<ReadVResult>;
|
|
2100
2100
|
}
|
|
2101
2101
|
|
|
2102
2102
|
/**
|
|
2103
2103
|
* See `readv`.
|
|
2104
2104
|
*/
|
|
2105
|
-
function readvSync(fd: number, buffers: NodeJS.ArrayBufferView
|
|
2105
|
+
function readvSync(fd: number, buffers: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): number;
|
|
2106
2106
|
|
|
2107
2107
|
interface OpenDirOptions {
|
|
2108
2108
|
encoding?: BufferEncoding;
|
|
@@ -2253,12 +2253,12 @@ declare module "fs" {
|
|
|
2253
2253
|
/**
|
|
2254
2254
|
* See `fs.writev` promisified version.
|
|
2255
2255
|
*/
|
|
2256
|
-
writev(buffers: NodeJS.ArrayBufferView
|
|
2256
|
+
writev(buffers: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): Promise<WriteVResult>;
|
|
2257
2257
|
|
|
2258
2258
|
/**
|
|
2259
2259
|
* See `fs.readv` promisified version.
|
|
2260
2260
|
*/
|
|
2261
|
-
readv(buffers: NodeJS.ArrayBufferView
|
|
2261
|
+
readv(buffers: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): Promise<ReadVResult>;
|
|
2262
2262
|
|
|
2263
2263
|
/**
|
|
2264
2264
|
* Asynchronous close(2) - close a `FileHandle`.
|
node v13.13/globals.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ interface Console {
|
|
|
62
62
|
* This method does not display anything unless used in the inspector.
|
|
63
63
|
* Prints to `stdout` the array `array` formatted as a table.
|
|
64
64
|
*/
|
|
65
|
-
table(tabularData: any, properties?: string
|
|
65
|
+
table(tabularData: any, properties?: ReadonlyArray<string>): void;
|
|
66
66
|
/**
|
|
67
67
|
* Starts a timer that can be used to compute the duration of an operation. Timers are identified by a unique `label`.
|
|
68
68
|
*/
|
|
@@ -220,7 +220,7 @@ declare class Buffer extends Uint8Array {
|
|
|
220
220
|
* @param array The octets to store.
|
|
221
221
|
* @deprecated since v10.0.0 - Use `Buffer.from(array)` instead.
|
|
222
222
|
*/
|
|
223
|
-
constructor(array: any
|
|
223
|
+
constructor(array: ReadonlyArray<any>);
|
|
224
224
|
/**
|
|
225
225
|
* Copies the passed {buffer} data onto a new {Buffer} instance.
|
|
226
226
|
*
|
|
@@ -241,7 +241,7 @@ declare class Buffer extends Uint8Array {
|
|
|
241
241
|
* Creates a new Buffer using the passed {data}
|
|
242
242
|
* @param data data to create a new Buffer
|
|
243
243
|
*/
|
|
244
|
-
static from(data: number
|
|
244
|
+
static from(data: ReadonlyArray<number>): Buffer;
|
|
245
245
|
static from(data: Uint8Array): Buffer;
|
|
246
246
|
/**
|
|
247
247
|
* Creates a new buffer containing the coerced value of an object
|
|
@@ -295,7 +295,7 @@ declare class Buffer extends Uint8Array {
|
|
|
295
295
|
* @param totalLength Total length of the buffers when concatenated.
|
|
296
296
|
* If totalLength is not provided, it is read from the buffers in the list. However, this adds an additional loop to the function, so it is faster to provide the length explicitly.
|
|
297
297
|
*/
|
|
298
|
-
static concat(list: Uint8Array
|
|
298
|
+
static concat(list: ReadonlyArray<Uint8Array>, totalLength?: number): Buffer;
|
|
299
299
|
/**
|
|
300
300
|
* The same as buf1.compare(buf2).
|
|
301
301
|
*/
|
|
@@ -815,7 +815,7 @@ declare namespace NodeJS {
|
|
|
815
815
|
getegid(): number;
|
|
816
816
|
setegid(id: number | string): void;
|
|
817
817
|
getgroups(): number[];
|
|
818
|
-
setgroups(groups:
|
|
818
|
+
setgroups(groups: ReadonlyArray<string | number>): void;
|
|
819
819
|
setUncaughtExceptionCaptureCallback(cb: ((err: Error) => void) | null): void;
|
|
820
820
|
hasUncaughtExceptionCaptureCallback(): boolean;
|
|
821
821
|
version: string;
|
node v13.13/http.d.ts
CHANGED
|
@@ -161,13 +161,13 @@ declare module "http" {
|
|
|
161
161
|
constructor();
|
|
162
162
|
|
|
163
163
|
setTimeout(msecs: number, callback?: () => void): this;
|
|
164
|
-
setHeader(name: string, value: number | string | string
|
|
164
|
+
setHeader(name: string, value: number | string | ReadonlyArray<string>): void;
|
|
165
165
|
getHeader(name: string): number | string | string[] | undefined;
|
|
166
166
|
getHeaders(): OutgoingHttpHeaders;
|
|
167
167
|
getHeaderNames(): string[];
|
|
168
168
|
hasHeader(name: string): boolean;
|
|
169
169
|
removeHeader(name: string): void;
|
|
170
|
-
addTrailers(headers: OutgoingHttpHeaders |
|
|
170
|
+
addTrailers(headers: OutgoingHttpHeaders | ReadonlyArray<[string, string]>): void;
|
|
171
171
|
flushHeaders(): void;
|
|
172
172
|
}
|
|
173
173
|
|
node v13.13/http2.d.ts
CHANGED
|
@@ -356,7 +356,7 @@ declare module "http2" {
|
|
|
356
356
|
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
357
357
|
|
|
358
358
|
emit(event: "altsvc", alt: string, origin: string, stream: number): boolean;
|
|
359
|
-
emit(event: "origin", origins: string
|
|
359
|
+
emit(event: "origin", origins: ReadonlyArray<string>): boolean;
|
|
360
360
|
emit(event: "connect", session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket): boolean;
|
|
361
361
|
emit(event: "stream", stream: ClientHttp2Stream, headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number): boolean;
|
|
362
362
|
emit(event: string | symbol, ...args: any[]): boolean;
|
|
@@ -571,7 +571,7 @@ declare module "http2" {
|
|
|
571
571
|
}
|
|
572
572
|
|
|
573
573
|
export class Http2ServerRequest extends stream.Readable {
|
|
574
|
-
constructor(stream: ServerHttp2Stream, headers: IncomingHttpHeaders, options: stream.ReadableOptions, rawHeaders: string
|
|
574
|
+
constructor(stream: ServerHttp2Stream, headers: IncomingHttpHeaders, options: stream.ReadableOptions, rawHeaders: ReadonlyArray<string>);
|
|
575
575
|
|
|
576
576
|
readonly aborted: boolean;
|
|
577
577
|
readonly authority: string;
|
|
@@ -658,7 +658,7 @@ declare module "http2" {
|
|
|
658
658
|
getHeaders(): OutgoingHttpHeaders;
|
|
659
659
|
hasHeader(name: string): boolean;
|
|
660
660
|
removeHeader(name: string): void;
|
|
661
|
-
setHeader(name: string, value: number | string | string
|
|
661
|
+
setHeader(name: string, value: number | string | ReadonlyArray<string>): void;
|
|
662
662
|
setTimeout(msecs: number, callback?: () => void): void;
|
|
663
663
|
write(chunk: string | Uint8Array, callback?: (err: Error) => void): boolean;
|
|
664
664
|
write(chunk: string | Uint8Array, encoding: string, callback?: (err: Error) => void): boolean;
|
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.26",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -241,6 +241,6 @@
|
|
|
241
241
|
},
|
|
242
242
|
"scripts": {},
|
|
243
243
|
"dependencies": {},
|
|
244
|
-
"typesPublisherContentHash": "
|
|
244
|
+
"typesPublisherContentHash": "b780d6fb5460245fa3e666dc4c0c0e2a5bdde115f39568a249d284f2765c7f4a",
|
|
245
245
|
"typeScriptVersion": "3.2"
|
|
246
246
|
}
|
node v13.13/perf_hooks.d.ts
CHANGED
|
@@ -170,7 +170,7 @@ declare module 'perf_hooks' {
|
|
|
170
170
|
* Property buffered defaults to false.
|
|
171
171
|
* @param options
|
|
172
172
|
*/
|
|
173
|
-
observe(options: { entryTypes: EntryType
|
|
173
|
+
observe(options: { entryTypes: ReadonlyArray<EntryType>; buffered?: boolean }): void;
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
namespace constants {
|
node v13.13/punycode.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ declare module "punycode" {
|
|
|
55
55
|
* Users currently depending on the punycode module should switch to using
|
|
56
56
|
* the userland-provided Punycode.js module instead.
|
|
57
57
|
*/
|
|
58
|
-
encode(codePoints: number
|
|
58
|
+
encode(codePoints: ReadonlyArray<number>): string;
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
61
|
* @deprecated since v7.0.0
|
node v13.13/stream.d.ts
CHANGED
|
@@ -314,7 +314,10 @@ declare module "stream" {
|
|
|
314
314
|
stream5: T,
|
|
315
315
|
callback?: (err: NodeJS.ErrnoException | null) => void,
|
|
316
316
|
): T;
|
|
317
|
-
function pipeline(
|
|
317
|
+
function pipeline(
|
|
318
|
+
streams: ReadonlyArray<NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream>,
|
|
319
|
+
callback?: (err: NodeJS.ErrnoException | null) => void,
|
|
320
|
+
): NodeJS.WritableStream;
|
|
318
321
|
function pipeline(
|
|
319
322
|
stream1: NodeJS.ReadableStream,
|
|
320
323
|
stream2: NodeJS.ReadWriteStream | NodeJS.WritableStream,
|
|
@@ -331,7 +334,7 @@ declare module "stream" {
|
|
|
331
334
|
stream4: NodeJS.ReadWriteStream,
|
|
332
335
|
stream5: NodeJS.WritableStream,
|
|
333
336
|
): Promise<void>;
|
|
334
|
-
function __promisify__(streams:
|
|
337
|
+
function __promisify__(streams: ReadonlyArray<NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream>): Promise<void>;
|
|
335
338
|
function __promisify__(
|
|
336
339
|
stream1: NodeJS.ReadableStream,
|
|
337
340
|
stream2: NodeJS.ReadWriteStream | NodeJS.WritableStream,
|
node v13.13/url.d.ts
CHANGED
|
@@ -92,7 +92,7 @@ declare module "url" {
|
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
class URLSearchParams implements Iterable<[string, string]> {
|
|
95
|
-
constructor(init?: URLSearchParams | string | NodeJS.Dict<string | string
|
|
95
|
+
constructor(init?: URLSearchParams | string | NodeJS.Dict<string | ReadonlyArray<string>> | Iterable<[string, string]> | ReadonlyArray<[string, string]>);
|
|
96
96
|
append(name: string, value: string): void;
|
|
97
97
|
delete(name: string): void;
|
|
98
98
|
entries(): IterableIterator<[string, string]>;
|
node v13.13/vm.d.ts
CHANGED
|
@@ -121,7 +121,7 @@ declare module "vm" {
|
|
|
121
121
|
function runInContext(code: string, contextifiedSandbox: Context, options?: RunningScriptOptions | string): any;
|
|
122
122
|
function runInNewContext(code: string, sandbox?: Context, options?: RunningScriptOptions | string): any;
|
|
123
123
|
function runInThisContext(code: string, options?: RunningScriptOptions | string): any;
|
|
124
|
-
function compileFunction(code: string, params?: string
|
|
124
|
+
function compileFunction(code: string, params?: ReadonlyArray<string>, options?: CompileFunctionOptions): Function;
|
|
125
125
|
|
|
126
126
|
/**
|
|
127
127
|
* Measure the memory known to V8 and used by the current execution context or a specified context.
|
node v13.13/worker_threads.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ declare module "worker_threads" {
|
|
|
20
20
|
|
|
21
21
|
class MessagePort extends EventEmitter {
|
|
22
22
|
close(): void;
|
|
23
|
-
postMessage(value: any, transferList?: TransferListItem
|
|
23
|
+
postMessage(value: any, transferList?: ReadonlyArray<TransferListItem>): void;
|
|
24
24
|
ref(): void;
|
|
25
25
|
unref(): void;
|
|
26
26
|
start(): void;
|
|
@@ -115,7 +115,7 @@ declare module "worker_threads" {
|
|
|
115
115
|
*/
|
|
116
116
|
constructor(filename: string | URL, options?: WorkerOptions);
|
|
117
117
|
|
|
118
|
-
postMessage(value: any, transferList?: TransferListItem
|
|
118
|
+
postMessage(value: any, transferList?: ReadonlyArray<TransferListItem>): void;
|
|
119
119
|
ref(): void;
|
|
120
120
|
unref(): void;
|
|
121
121
|
/**
|