@types/node 13.13.24 → 13.13.28
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 +22 -25
- node v13.13/globals.d.ts +6 -6
- node v13.13/http.d.ts +6 -3
- 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 +57 -1
- node v13.13/stream.d.ts +5 -2
- node v13.13/tls.d.ts +1 -1
- node v13.13/url.d.ts +1 -1
- node v13.13/vm.d.ts +1 -1
- node v13.13/worker_threads.d.ts +21 -3
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:
|
|
11
|
+
* Last updated: Wed, 21 Oct 2020 21:01:44 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
|
@@ -808,6 +808,15 @@ declare module "fs" {
|
|
|
808
808
|
function unlinkSync(path: PathLike): void;
|
|
809
809
|
|
|
810
810
|
interface RmDirOptions {
|
|
811
|
+
/**
|
|
812
|
+
* If an `EBUSY`, `EMFILE`, `ENFILE`, `ENOTEMPTY`, or
|
|
813
|
+
* `EPERM` error is encountered, Node.js will retry the operation with a linear
|
|
814
|
+
* backoff wait of `retryDelay` ms longer on each try. This option represents the
|
|
815
|
+
* number of retries. This option is ignored if the `recursive` option is not
|
|
816
|
+
* `true`.
|
|
817
|
+
* @default 0
|
|
818
|
+
*/
|
|
819
|
+
maxRetries?: number;
|
|
811
820
|
/**
|
|
812
821
|
* If `true`, perform a recursive directory removal. In
|
|
813
822
|
* recursive mode, errors are not reported if `path` does not exist, and
|
|
@@ -816,24 +825,12 @@ declare module "fs" {
|
|
|
816
825
|
* @default false
|
|
817
826
|
*/
|
|
818
827
|
recursive?: boolean;
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
interface RmDirAsyncOptions extends RmDirOptions {
|
|
822
828
|
/**
|
|
823
829
|
* The amount of time in milliseconds to wait between retries.
|
|
824
830
|
* This option is ignored if the `recursive` option is not `true`.
|
|
825
831
|
* @default 100
|
|
826
832
|
*/
|
|
827
833
|
retryDelay?: number;
|
|
828
|
-
/**
|
|
829
|
-
* If an `EBUSY`, `EMFILE`, `ENFILE`, `ENOTEMPTY`, or
|
|
830
|
-
* `EPERM` error is encountered, Node.js will retry the operation with a linear
|
|
831
|
-
* backoff wait of `retryDelay` ms longer on each try. This option represents the
|
|
832
|
-
* number of retries. This option is ignored if the `recursive` option is not
|
|
833
|
-
* `true`.
|
|
834
|
-
* @default 0
|
|
835
|
-
*/
|
|
836
|
-
maxRetries?: number;
|
|
837
834
|
}
|
|
838
835
|
|
|
839
836
|
/**
|
|
@@ -841,7 +838,7 @@ declare module "fs" {
|
|
|
841
838
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
842
839
|
*/
|
|
843
840
|
function rmdir(path: PathLike, callback: NoParamCallback): void;
|
|
844
|
-
function rmdir(path: PathLike, options:
|
|
841
|
+
function rmdir(path: PathLike, options: RmDirOptions, callback: NoParamCallback): void;
|
|
845
842
|
|
|
846
843
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
847
844
|
namespace rmdir {
|
|
@@ -849,7 +846,7 @@ declare module "fs" {
|
|
|
849
846
|
* Asynchronous rmdir(2) - delete a directory.
|
|
850
847
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
851
848
|
*/
|
|
852
|
-
function __promisify__(path: PathLike, options?:
|
|
849
|
+
function __promisify__(path: PathLike, options?: RmDirOptions): Promise<void>;
|
|
853
850
|
}
|
|
854
851
|
|
|
855
852
|
/**
|
|
@@ -2054,12 +2051,12 @@ declare module "fs" {
|
|
|
2054
2051
|
*/
|
|
2055
2052
|
function writev(
|
|
2056
2053
|
fd: number,
|
|
2057
|
-
buffers: NodeJS.ArrayBufferView
|
|
2054
|
+
buffers: ReadonlyArray<NodeJS.ArrayBufferView>,
|
|
2058
2055
|
cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void
|
|
2059
2056
|
): void;
|
|
2060
2057
|
function writev(
|
|
2061
2058
|
fd: number,
|
|
2062
|
-
buffers: NodeJS.ArrayBufferView
|
|
2059
|
+
buffers: ReadonlyArray<NodeJS.ArrayBufferView>,
|
|
2063
2060
|
position: number,
|
|
2064
2061
|
cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void
|
|
2065
2062
|
): void;
|
|
@@ -2070,22 +2067,22 @@ declare module "fs" {
|
|
|
2070
2067
|
}
|
|
2071
2068
|
|
|
2072
2069
|
namespace writev {
|
|
2073
|
-
function __promisify__(fd: number, buffers: NodeJS.ArrayBufferView
|
|
2070
|
+
function __promisify__(fd: number, buffers: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): Promise<WriteVResult>;
|
|
2074
2071
|
}
|
|
2075
2072
|
|
|
2076
2073
|
/**
|
|
2077
2074
|
* See `writev`.
|
|
2078
2075
|
*/
|
|
2079
|
-
function writevSync(fd: number, buffers: NodeJS.ArrayBufferView
|
|
2076
|
+
function writevSync(fd: number, buffers: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): number;
|
|
2080
2077
|
|
|
2081
2078
|
function readv(
|
|
2082
2079
|
fd: number,
|
|
2083
|
-
buffers: NodeJS.ArrayBufferView
|
|
2080
|
+
buffers: ReadonlyArray<NodeJS.ArrayBufferView>,
|
|
2084
2081
|
cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: NodeJS.ArrayBufferView[]) => void
|
|
2085
2082
|
): void;
|
|
2086
2083
|
function readv(
|
|
2087
2084
|
fd: number,
|
|
2088
|
-
buffers: NodeJS.ArrayBufferView
|
|
2085
|
+
buffers: ReadonlyArray<NodeJS.ArrayBufferView>,
|
|
2089
2086
|
position: number,
|
|
2090
2087
|
cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: NodeJS.ArrayBufferView[]) => void
|
|
2091
2088
|
): void;
|
|
@@ -2096,13 +2093,13 @@ declare module "fs" {
|
|
|
2096
2093
|
}
|
|
2097
2094
|
|
|
2098
2095
|
namespace readv {
|
|
2099
|
-
function __promisify__(fd: number, buffers: NodeJS.ArrayBufferView
|
|
2096
|
+
function __promisify__(fd: number, buffers: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): Promise<ReadVResult>;
|
|
2100
2097
|
}
|
|
2101
2098
|
|
|
2102
2099
|
/**
|
|
2103
2100
|
* See `readv`.
|
|
2104
2101
|
*/
|
|
2105
|
-
function readvSync(fd: number, buffers: NodeJS.ArrayBufferView
|
|
2102
|
+
function readvSync(fd: number, buffers: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): number;
|
|
2106
2103
|
|
|
2107
2104
|
interface OpenDirOptions {
|
|
2108
2105
|
encoding?: BufferEncoding;
|
|
@@ -2253,12 +2250,12 @@ declare module "fs" {
|
|
|
2253
2250
|
/**
|
|
2254
2251
|
* See `fs.writev` promisified version.
|
|
2255
2252
|
*/
|
|
2256
|
-
writev(buffers: NodeJS.ArrayBufferView
|
|
2253
|
+
writev(buffers: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): Promise<WriteVResult>;
|
|
2257
2254
|
|
|
2258
2255
|
/**
|
|
2259
2256
|
* See `fs.readv` promisified version.
|
|
2260
2257
|
*/
|
|
2261
|
-
readv(buffers: NodeJS.ArrayBufferView
|
|
2258
|
+
readv(buffers: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): Promise<ReadVResult>;
|
|
2262
2259
|
|
|
2263
2260
|
/**
|
|
2264
2261
|
* Asynchronous close(2) - close a `FileHandle`.
|
|
@@ -2365,7 +2362,7 @@ declare module "fs" {
|
|
|
2365
2362
|
* Asynchronous rmdir(2) - delete a directory.
|
|
2366
2363
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
2367
2364
|
*/
|
|
2368
|
-
function rmdir(path: PathLike, options?:
|
|
2365
|
+
function rmdir(path: PathLike, options?: RmDirOptions): Promise<void>;
|
|
2369
2366
|
|
|
2370
2367
|
/**
|
|
2371
2368
|
* Asynchronous fdatasync(2) - synchronize a file's in-core state with storage device.
|
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;
|
|
@@ -870,7 +870,7 @@ declare namespace NodeJS {
|
|
|
870
870
|
/**
|
|
871
871
|
* Can only be set if not in worker thread.
|
|
872
872
|
*/
|
|
873
|
-
umask(mask?: number): number;
|
|
873
|
+
umask(mask?: string | number): number;
|
|
874
874
|
uptime(): number;
|
|
875
875
|
hrtime: HRTime;
|
|
876
876
|
domain: Domain;
|
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
|
|
|
@@ -200,9 +200,12 @@ declare module "http" {
|
|
|
200
200
|
|
|
201
201
|
// https://github.com/nodejs/node/blob/master/lib/_http_client.js#L77
|
|
202
202
|
class ClientRequest extends OutgoingMessage {
|
|
203
|
+
/**
|
|
204
|
+
* @deprecate Use `socket` instead.
|
|
205
|
+
*/
|
|
203
206
|
connection: Socket;
|
|
204
207
|
socket: Socket;
|
|
205
|
-
aborted:
|
|
208
|
+
aborted: boolean;
|
|
206
209
|
|
|
207
210
|
constructor(url: string | URL | ClientRequestArgs, cb?: (res: IncomingMessage) => void);
|
|
208
211
|
|
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.28",
|
|
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": "4668fedc7fe11e66f93ee7bfcc7286741b15a7a9b611ece3f4b922b53bfb878f",
|
|
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
|
@@ -1,12 +1,68 @@
|
|
|
1
1
|
declare module "punycode" {
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated since v7.0.0
|
|
4
|
+
* The version of the punycode module bundled in Node.js is being deprecated.
|
|
5
|
+
* In a future major version of Node.js this module will be removed.
|
|
6
|
+
* Users currently depending on the punycode module should switch to using
|
|
7
|
+
* the userland-provided Punycode.js module instead.
|
|
8
|
+
*/
|
|
2
9
|
function decode(string: string): string;
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated since v7.0.0
|
|
12
|
+
* The version of the punycode module bundled in Node.js is being deprecated.
|
|
13
|
+
* In a future major version of Node.js this module will be removed.
|
|
14
|
+
* Users currently depending on the punycode module should switch to using
|
|
15
|
+
* the userland-provided Punycode.js module instead.
|
|
16
|
+
*/
|
|
3
17
|
function encode(string: string): string;
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated since v7.0.0
|
|
20
|
+
* The version of the punycode module bundled in Node.js is being deprecated.
|
|
21
|
+
* In a future major version of Node.js this module will be removed.
|
|
22
|
+
* Users currently depending on the punycode module should switch to using
|
|
23
|
+
* the userland-provided Punycode.js module instead.
|
|
24
|
+
*/
|
|
4
25
|
function toUnicode(domain: string): string;
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated since v7.0.0
|
|
28
|
+
* The version of the punycode module bundled in Node.js is being deprecated.
|
|
29
|
+
* In a future major version of Node.js this module will be removed.
|
|
30
|
+
* Users currently depending on the punycode module should switch to using
|
|
31
|
+
* the userland-provided Punycode.js module instead.
|
|
32
|
+
*/
|
|
5
33
|
function toASCII(domain: string): string;
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated since v7.0.0
|
|
36
|
+
* The version of the punycode module bundled in Node.js is being deprecated.
|
|
37
|
+
* In a future major version of Node.js this module will be removed.
|
|
38
|
+
* Users currently depending on the punycode module should switch to using
|
|
39
|
+
* the userland-provided Punycode.js module instead.
|
|
40
|
+
*/
|
|
6
41
|
const ucs2: ucs2;
|
|
7
42
|
interface ucs2 {
|
|
43
|
+
/**
|
|
44
|
+
* @deprecated since v7.0.0
|
|
45
|
+
* The version of the punycode module bundled in Node.js is being deprecated.
|
|
46
|
+
* In a future major version of Node.js this module will be removed.
|
|
47
|
+
* Users currently depending on the punycode module should switch to using
|
|
48
|
+
* the userland-provided Punycode.js module instead.
|
|
49
|
+
*/
|
|
8
50
|
decode(string: string): number[];
|
|
9
|
-
|
|
51
|
+
/**
|
|
52
|
+
* @deprecated since v7.0.0
|
|
53
|
+
* The version of the punycode module bundled in Node.js is being deprecated.
|
|
54
|
+
* In a future major version of Node.js this module will be removed.
|
|
55
|
+
* Users currently depending on the punycode module should switch to using
|
|
56
|
+
* the userland-provided Punycode.js module instead.
|
|
57
|
+
*/
|
|
58
|
+
encode(codePoints: ReadonlyArray<number>): string;
|
|
10
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* @deprecated since v7.0.0
|
|
62
|
+
* The version of the punycode module bundled in Node.js is being deprecated.
|
|
63
|
+
* In a future major version of Node.js this module will be removed.
|
|
64
|
+
* Users currently depending on the punycode module should switch to using
|
|
65
|
+
* the userland-provided Punycode.js module instead.
|
|
66
|
+
*/
|
|
11
67
|
const version: string;
|
|
12
68
|
}
|
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/tls.d.ts
CHANGED
|
@@ -729,7 +729,7 @@ declare module "tls" {
|
|
|
729
729
|
* @deprecated
|
|
730
730
|
*/
|
|
731
731
|
function createSecurePair(credentials?: SecureContext, isServer?: boolean, requestCert?: boolean, rejectUnauthorized?: boolean): SecurePair;
|
|
732
|
-
function createSecureContext(
|
|
732
|
+
function createSecureContext(options?: SecureContextOptions): SecureContext;
|
|
733
733
|
function getCiphers(): string[];
|
|
734
734
|
|
|
735
735
|
/**
|
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
|
@@ -6,6 +6,7 @@ declare module "worker_threads" {
|
|
|
6
6
|
|
|
7
7
|
const isMainThread: boolean;
|
|
8
8
|
const parentPort: null | MessagePort;
|
|
9
|
+
const resourceLimits: ResourceLimits;
|
|
9
10
|
const SHARE_ENV: unique symbol;
|
|
10
11
|
const threadId: number;
|
|
11
12
|
const workerData: any;
|
|
@@ -15,9 +16,11 @@ declare module "worker_threads" {
|
|
|
15
16
|
readonly port2: MessagePort;
|
|
16
17
|
}
|
|
17
18
|
|
|
19
|
+
type TransferListItem = ArrayBuffer | MessagePort;
|
|
20
|
+
|
|
18
21
|
class MessagePort extends EventEmitter {
|
|
19
22
|
close(): void;
|
|
20
|
-
postMessage(value: any, transferList?:
|
|
23
|
+
postMessage(value: any, transferList?: ReadonlyArray<TransferListItem>): void;
|
|
21
24
|
ref(): void;
|
|
22
25
|
unref(): void;
|
|
23
26
|
start(): void;
|
|
@@ -74,7 +77,7 @@ declare module "worker_threads" {
|
|
|
74
77
|
/**
|
|
75
78
|
* Additional data to send in the first worker message.
|
|
76
79
|
*/
|
|
77
|
-
transferList?:
|
|
80
|
+
transferList?: TransferListItem[];
|
|
78
81
|
}
|
|
79
82
|
|
|
80
83
|
interface ResourceLimits {
|
|
@@ -83,6 +86,21 @@ declare module "worker_threads" {
|
|
|
83
86
|
codeRangeSizeMb?: number;
|
|
84
87
|
}
|
|
85
88
|
|
|
89
|
+
interface ResourceLimits {
|
|
90
|
+
/**
|
|
91
|
+
* The maximum size of a heap space for recently created objects.
|
|
92
|
+
*/
|
|
93
|
+
maxYoungGenerationSizeMb?: number;
|
|
94
|
+
/**
|
|
95
|
+
* The maximum size of the main heap in MB.
|
|
96
|
+
*/
|
|
97
|
+
maxOldGenerationSizeMb?: number;
|
|
98
|
+
/**
|
|
99
|
+
* The size of a pre-allocated memory range used for generated code.
|
|
100
|
+
*/
|
|
101
|
+
codeRangeSizeMb?: number;
|
|
102
|
+
}
|
|
103
|
+
|
|
86
104
|
class Worker extends EventEmitter {
|
|
87
105
|
readonly stdin: Writable | null;
|
|
88
106
|
readonly stdout: Readable;
|
|
@@ -97,7 +115,7 @@ declare module "worker_threads" {
|
|
|
97
115
|
*/
|
|
98
116
|
constructor(filename: string | URL, options?: WorkerOptions);
|
|
99
117
|
|
|
100
|
-
postMessage(value: any, transferList?:
|
|
118
|
+
postMessage(value: any, transferList?: ReadonlyArray<TransferListItem>): void;
|
|
101
119
|
ref(): void;
|
|
102
120
|
unref(): void;
|
|
103
121
|
/**
|