@types/node 12.12.66 → 12.12.70
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.12/README.md +1 -1
- node v12.12/child_process.d.ts +10 -6
- node v12.12/dgram.d.ts +3 -3
- node v12.12/fs.d.ts +16 -19
- node v12.12/globals.d.ts +5 -5
- node v12.12/http.d.ts +2 -2
- node v12.12/http2.d.ts +3 -3
- node v12.12/package.json +2 -2
- node v12.12/perf_hooks.d.ts +1 -1
- node v12.12/punycode.d.ts +57 -1
- node v12.12/stream.d.ts +5 -2
- node v12.12/url.d.ts +1 -1
- node v12.12/vm.d.ts +1 -1
- node v12.12/worker_threads.d.ts +25 -2
- node v12.12/zlib.d.ts +119 -155
node v12.12/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/v12.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Wed, 21 Oct 2020 17:47:46 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.12/child_process.d.ts
CHANGED
|
@@ -384,19 +384,23 @@ declare module "child_process" {
|
|
|
384
384
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
385
385
|
namespace execFile {
|
|
386
386
|
function __promisify__(file: string): PromiseWithChild<{ stdout: string, stderr: string }>;
|
|
387
|
-
function __promisify__(file: string, args: string
|
|
387
|
+
function __promisify__(file: string, args: ReadonlyArray<string> | undefined | null): PromiseWithChild<{ stdout: string, stderr: string }>;
|
|
388
388
|
function __promisify__(file: string, options: ExecFileOptionsWithBufferEncoding): PromiseWithChild<{ stdout: Buffer, stderr: Buffer }>;
|
|
389
|
-
function __promisify__(file: string, args: string
|
|
389
|
+
function __promisify__(file: string, args: ReadonlyArray<string> | undefined | null, options: ExecFileOptionsWithBufferEncoding): PromiseWithChild<{ stdout: Buffer, stderr: Buffer }>;
|
|
390
390
|
function __promisify__(file: string, options: ExecFileOptionsWithStringEncoding): PromiseWithChild<{ stdout: string, stderr: string }>;
|
|
391
|
-
function __promisify__(file: string, args: string
|
|
391
|
+
function __promisify__(file: string, args: ReadonlyArray<string> | undefined | null, options: ExecFileOptionsWithStringEncoding): PromiseWithChild<{ stdout: string, stderr: string }>;
|
|
392
392
|
function __promisify__(file: string, options: ExecFileOptionsWithOtherEncoding): PromiseWithChild<{ stdout: string | Buffer, stderr: string | Buffer }>;
|
|
393
|
-
function __promisify__(
|
|
393
|
+
function __promisify__(
|
|
394
|
+
file: string,
|
|
395
|
+
args: ReadonlyArray<string> | undefined | null,
|
|
396
|
+
options: ExecFileOptionsWithOtherEncoding,
|
|
397
|
+
): PromiseWithChild<{ stdout: string | Buffer, stderr: string | Buffer }>;
|
|
394
398
|
function __promisify__(file: string, options: ExecFileOptions): PromiseWithChild<{ stdout: string, stderr: string }>;
|
|
395
|
-
function __promisify__(file: string, args: string
|
|
399
|
+
function __promisify__(file: string, args: ReadonlyArray<string> | undefined | null, options: ExecFileOptions): PromiseWithChild<{ stdout: string, stderr: string }>;
|
|
396
400
|
function __promisify__(file: string, options: ({ encoding?: string | null } & ExecFileOptions) | undefined | null): PromiseWithChild<{ stdout: string | Buffer, stderr: string | Buffer }>;
|
|
397
401
|
function __promisify__(
|
|
398
402
|
file: string,
|
|
399
|
-
args: string
|
|
403
|
+
args: ReadonlyArray<string> | undefined | null,
|
|
400
404
|
options: ({ encoding?: string | null } & ExecFileOptions) | undefined | null,
|
|
401
405
|
): PromiseWithChild<{ stdout: string | Buffer, stderr: string | Buffer }>;
|
|
402
406
|
}
|
node v12.12/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 v12.12/fs.d.ts
CHANGED
|
@@ -739,6 +739,14 @@ declare module "fs" {
|
|
|
739
739
|
function unlinkSync(path: PathLike): void;
|
|
740
740
|
|
|
741
741
|
interface RmDirOptions {
|
|
742
|
+
/**
|
|
743
|
+
* If an `EBUSY`, `ENOTEMPTY`, or `EPERM` error is
|
|
744
|
+
* encountered, Node.js will retry the operation with a linear backoff wait of
|
|
745
|
+
* 100ms longer on each try. This option represents the number of retries. This
|
|
746
|
+
* option is ignored if the `recursive` option is not `true`.
|
|
747
|
+
* @default 3
|
|
748
|
+
*/
|
|
749
|
+
maxRetries?: number;
|
|
742
750
|
/**
|
|
743
751
|
* If `true`, perform a recursive directory removal. In
|
|
744
752
|
* recursive mode, errors are not reported if `path` does not exist, and
|
|
@@ -747,9 +755,6 @@ declare module "fs" {
|
|
|
747
755
|
* @default false
|
|
748
756
|
*/
|
|
749
757
|
recursive?: boolean;
|
|
750
|
-
}
|
|
751
|
-
|
|
752
|
-
interface RmDirAsyncOptions extends RmDirOptions {
|
|
753
758
|
/**
|
|
754
759
|
* If an `EMFILE` error is encountered, Node.js will
|
|
755
760
|
* retry the operation with a linear backoff of 1ms longer on each try until the
|
|
@@ -758,14 +763,6 @@ declare module "fs" {
|
|
|
758
763
|
* @default 1000
|
|
759
764
|
*/
|
|
760
765
|
emfileWait?: number;
|
|
761
|
-
/**
|
|
762
|
-
* If an `EBUSY`, `ENOTEMPTY`, or `EPERM` error is
|
|
763
|
-
* encountered, Node.js will retry the operation with a linear backoff wait of
|
|
764
|
-
* 100ms longer on each try. This option represents the number of retries. This
|
|
765
|
-
* option is ignored if the `recursive` option is not `true`.
|
|
766
|
-
* @default 3
|
|
767
|
-
*/
|
|
768
|
-
maxBusyTries?: number;
|
|
769
766
|
}
|
|
770
767
|
|
|
771
768
|
/**
|
|
@@ -773,7 +770,7 @@ declare module "fs" {
|
|
|
773
770
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
774
771
|
*/
|
|
775
772
|
function rmdir(path: PathLike, callback: NoParamCallback): void;
|
|
776
|
-
function rmdir(path: PathLike, options:
|
|
773
|
+
function rmdir(path: PathLike, options: RmDirOptions, callback: NoParamCallback): void;
|
|
777
774
|
|
|
778
775
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
779
776
|
namespace rmdir {
|
|
@@ -781,7 +778,7 @@ declare module "fs" {
|
|
|
781
778
|
* Asynchronous rmdir(2) - delete a directory.
|
|
782
779
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
783
780
|
*/
|
|
784
|
-
function __promisify__(path: PathLike, options?:
|
|
781
|
+
function __promisify__(path: PathLike, options?: RmDirOptions): Promise<void>;
|
|
785
782
|
}
|
|
786
783
|
|
|
787
784
|
/**
|
|
@@ -1916,12 +1913,12 @@ declare module "fs" {
|
|
|
1916
1913
|
*/
|
|
1917
1914
|
function writev(
|
|
1918
1915
|
fd: number,
|
|
1919
|
-
buffers: NodeJS.ArrayBufferView
|
|
1916
|
+
buffers: ReadonlyArray<NodeJS.ArrayBufferView>,
|
|
1920
1917
|
cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void
|
|
1921
1918
|
): void;
|
|
1922
1919
|
function writev(
|
|
1923
1920
|
fd: number,
|
|
1924
|
-
buffers: NodeJS.ArrayBufferView
|
|
1921
|
+
buffers: ReadonlyArray<NodeJS.ArrayBufferView>,
|
|
1925
1922
|
position: number,
|
|
1926
1923
|
cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void
|
|
1927
1924
|
): void;
|
|
@@ -1932,13 +1929,13 @@ declare module "fs" {
|
|
|
1932
1929
|
}
|
|
1933
1930
|
|
|
1934
1931
|
namespace writev {
|
|
1935
|
-
function __promisify__(fd: number, buffers: NodeJS.ArrayBufferView
|
|
1932
|
+
function __promisify__(fd: number, buffers: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): Promise<WriteVResult>;
|
|
1936
1933
|
}
|
|
1937
1934
|
|
|
1938
1935
|
/**
|
|
1939
1936
|
* See `writev`.
|
|
1940
1937
|
*/
|
|
1941
|
-
function writevSync(fd: number, buffers: NodeJS.ArrayBufferView
|
|
1938
|
+
function writevSync(fd: number, buffers: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): number;
|
|
1942
1939
|
|
|
1943
1940
|
interface OpenDirOptions {
|
|
1944
1941
|
encoding?: BufferEncoding;
|
|
@@ -2082,7 +2079,7 @@ declare module "fs" {
|
|
|
2082
2079
|
/**
|
|
2083
2080
|
* See `fs.writev` promisified version.
|
|
2084
2081
|
*/
|
|
2085
|
-
writev(buffers: NodeJS.ArrayBufferView
|
|
2082
|
+
writev(buffers: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): Promise<WriteVResult>;
|
|
2086
2083
|
|
|
2087
2084
|
/**
|
|
2088
2085
|
* Asynchronous close(2) - close a `FileHandle`.
|
|
@@ -2189,7 +2186,7 @@ declare module "fs" {
|
|
|
2189
2186
|
* Asynchronous rmdir(2) - delete a directory.
|
|
2190
2187
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
2191
2188
|
*/
|
|
2192
|
-
function rmdir(path: PathLike, options?:
|
|
2189
|
+
function rmdir(path: PathLike, options?: RmDirOptions): Promise<void>;
|
|
2193
2190
|
|
|
2194
2191
|
/**
|
|
2195
2192
|
* Asynchronous fdatasync(2) - synchronize a file's in-core state with storage device.
|
node v12.12/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
|
*/
|
|
@@ -305,7 +305,7 @@ declare class Buffer extends Uint8Array {
|
|
|
305
305
|
* @param array The octets to store.
|
|
306
306
|
* @deprecated since v10.0.0 - Use `Buffer.from(array)` instead.
|
|
307
307
|
*/
|
|
308
|
-
constructor(array: any
|
|
308
|
+
constructor(array: ReadonlyArray<any>);
|
|
309
309
|
/**
|
|
310
310
|
* Copies the passed {buffer} data onto a new {Buffer} instance.
|
|
311
311
|
*
|
|
@@ -326,7 +326,7 @@ declare class Buffer extends Uint8Array {
|
|
|
326
326
|
* Creates a new Buffer using the passed {data}
|
|
327
327
|
* @param data data to create a new Buffer
|
|
328
328
|
*/
|
|
329
|
-
static from(data: number
|
|
329
|
+
static from(data: ReadonlyArray<number>): Buffer;
|
|
330
330
|
static from(data: Uint8Array): Buffer;
|
|
331
331
|
/**
|
|
332
332
|
* Creates a new buffer containing the coerced value of an object
|
|
@@ -380,7 +380,7 @@ declare class Buffer extends Uint8Array {
|
|
|
380
380
|
* @param totalLength Total length of the buffers when concatenated.
|
|
381
381
|
* 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.
|
|
382
382
|
*/
|
|
383
|
-
static concat(list: Uint8Array
|
|
383
|
+
static concat(list: ReadonlyArray<Uint8Array>, totalLength?: number): Buffer;
|
|
384
384
|
/**
|
|
385
385
|
* The same as buf1.compare(buf2).
|
|
386
386
|
*/
|
|
@@ -882,7 +882,7 @@ declare namespace NodeJS {
|
|
|
882
882
|
getegid(): number;
|
|
883
883
|
setegid(id: number | string): void;
|
|
884
884
|
getgroups(): number[];
|
|
885
|
-
setgroups(groups:
|
|
885
|
+
setgroups(groups: ReadonlyArray<string | number>): void;
|
|
886
886
|
setUncaughtExceptionCaptureCallback(cb: ((err: Error) => void) | null): void;
|
|
887
887
|
hasUncaughtExceptionCaptureCallback(): boolean;
|
|
888
888
|
version: string;
|
node v12.12/http.d.ts
CHANGED
|
@@ -135,13 +135,13 @@ declare module "http" {
|
|
|
135
135
|
constructor();
|
|
136
136
|
|
|
137
137
|
setTimeout(msecs: number, callback?: () => void): this;
|
|
138
|
-
setHeader(name: string, value: number | string | string
|
|
138
|
+
setHeader(name: string, value: number | string | ReadonlyArray<string>): void;
|
|
139
139
|
getHeader(name: string): number | string | string[] | undefined;
|
|
140
140
|
getHeaders(): OutgoingHttpHeaders;
|
|
141
141
|
getHeaderNames(): string[];
|
|
142
142
|
hasHeader(name: string): boolean;
|
|
143
143
|
removeHeader(name: string): void;
|
|
144
|
-
addTrailers(headers: OutgoingHttpHeaders |
|
|
144
|
+
addTrailers(headers: OutgoingHttpHeaders | ReadonlyArray<[string, string]>): void;
|
|
145
145
|
flushHeaders(): void;
|
|
146
146
|
}
|
|
147
147
|
|
node v12.12/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;
|
|
@@ -570,7 +570,7 @@ declare module "http2" {
|
|
|
570
570
|
}
|
|
571
571
|
|
|
572
572
|
export class Http2ServerRequest extends stream.Readable {
|
|
573
|
-
constructor(stream: ServerHttp2Stream, headers: IncomingHttpHeaders, options: stream.ReadableOptions, rawHeaders: string
|
|
573
|
+
constructor(stream: ServerHttp2Stream, headers: IncomingHttpHeaders, options: stream.ReadableOptions, rawHeaders: ReadonlyArray<string>);
|
|
574
574
|
|
|
575
575
|
readonly aborted: boolean;
|
|
576
576
|
readonly authority: string;
|
|
@@ -657,7 +657,7 @@ declare module "http2" {
|
|
|
657
657
|
getHeaders(): OutgoingHttpHeaders;
|
|
658
658
|
hasHeader(name: string): boolean;
|
|
659
659
|
removeHeader(name: string): void;
|
|
660
|
-
setHeader(name: string, value: number | string | string
|
|
660
|
+
setHeader(name: string, value: number | string | ReadonlyArray<string>): void;
|
|
661
661
|
setTimeout(msecs: number, callback?: () => void): void;
|
|
662
662
|
write(chunk: string | Uint8Array, callback?: (err: Error) => void): boolean;
|
|
663
663
|
write(chunk: string | Uint8Array, encoding: string, callback?: (err: Error) => void): boolean;
|
node v12.12/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "12.12.
|
|
3
|
+
"version": "12.12.70",
|
|
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": "86d21f1f394b808863aabd5045402fca03a666e6e4c13c81302c4c82c28462bd",
|
|
235
235
|
"typeScriptVersion": "3.2"
|
|
236
236
|
}
|
node v12.12/perf_hooks.d.ts
CHANGED
|
@@ -161,7 +161,7 @@ declare module "perf_hooks" {
|
|
|
161
161
|
* Property buffered defaults to false.
|
|
162
162
|
* @param options
|
|
163
163
|
*/
|
|
164
|
-
observe(options: { entryTypes: string
|
|
164
|
+
observe(options: { entryTypes: ReadonlyArray<string>, buffered?: boolean }): void;
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
namespace constants {
|
node v12.12/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 v12.12/stream.d.ts
CHANGED
|
@@ -293,7 +293,10 @@ declare module "stream" {
|
|
|
293
293
|
stream5: T,
|
|
294
294
|
callback?: (err: NodeJS.ErrnoException | null) => void,
|
|
295
295
|
): T;
|
|
296
|
-
function pipeline(
|
|
296
|
+
function pipeline(
|
|
297
|
+
streams: ReadonlyArray<NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream>,
|
|
298
|
+
callback?: (err: NodeJS.ErrnoException | null) => void,
|
|
299
|
+
): NodeJS.WritableStream;
|
|
297
300
|
function pipeline(
|
|
298
301
|
stream1: NodeJS.ReadableStream,
|
|
299
302
|
stream2: NodeJS.ReadWriteStream | NodeJS.WritableStream,
|
|
@@ -310,7 +313,7 @@ declare module "stream" {
|
|
|
310
313
|
stream4: NodeJS.ReadWriteStream,
|
|
311
314
|
stream5: NodeJS.WritableStream,
|
|
312
315
|
): Promise<void>;
|
|
313
|
-
function __promisify__(streams:
|
|
316
|
+
function __promisify__(streams: ReadonlyArray<NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream>): Promise<void>;
|
|
314
317
|
function __promisify__(
|
|
315
318
|
stream1: NodeJS.ReadableStream,
|
|
316
319
|
stream2: NodeJS.ReadWriteStream | NodeJS.WritableStream,
|
node v12.12/url.d.ts
CHANGED
|
@@ -93,7 +93,7 @@ declare module "url" {
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
class URLSearchParams implements Iterable<[string, string]> {
|
|
96
|
-
constructor(init?: URLSearchParams | string | { [key: string]: string | string
|
|
96
|
+
constructor(init?: URLSearchParams | string | { [key: string]: string | ReadonlyArray<string> | undefined } | Iterable<[string, string]> | ReadonlyArray<[string, string]>);
|
|
97
97
|
append(name: string, value: string): void;
|
|
98
98
|
delete(name: string): void;
|
|
99
99
|
entries(): IterableIterator<[string, string]>;
|
node v12.12/vm.d.ts
CHANGED
|
@@ -106,5 +106,5 @@ declare module "vm" {
|
|
|
106
106
|
function runInContext(code: string, contextifiedSandbox: Context, options?: RunningScriptOptions | string): any;
|
|
107
107
|
function runInNewContext(code: string, sandbox?: Context, options?: RunningScriptOptions | string): any;
|
|
108
108
|
function runInThisContext(code: string, options?: RunningScriptOptions | string): any;
|
|
109
|
-
function compileFunction(code: string, params?: string
|
|
109
|
+
function compileFunction(code: string, params?: ReadonlyArray<string>, options?: CompileFunctionOptions): Function;
|
|
110
110
|
}
|
node v12.12/worker_threads.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ declare module "worker_threads" {
|
|
|
5
5
|
|
|
6
6
|
const isMainThread: boolean;
|
|
7
7
|
const parentPort: null | MessagePort;
|
|
8
|
+
const resourceLimits: ResourceLimits;
|
|
8
9
|
const SHARE_ENV: unique symbol;
|
|
9
10
|
const threadId: number;
|
|
10
11
|
const workerData: any;
|
|
@@ -14,9 +15,11 @@ declare module "worker_threads" {
|
|
|
14
15
|
readonly port2: MessagePort;
|
|
15
16
|
}
|
|
16
17
|
|
|
18
|
+
type TransferListItem = ArrayBuffer | MessagePort;
|
|
19
|
+
|
|
17
20
|
class MessagePort extends EventEmitter {
|
|
18
21
|
close(): void;
|
|
19
|
-
postMessage(value: any, transferList?:
|
|
22
|
+
postMessage(value: any, transferList?: ReadonlyArray<TransferListItem>): void;
|
|
20
23
|
ref(): void;
|
|
21
24
|
unref(): void;
|
|
22
25
|
start(): void;
|
|
@@ -62,6 +65,26 @@ declare module "worker_threads" {
|
|
|
62
65
|
stdout?: boolean;
|
|
63
66
|
stderr?: boolean;
|
|
64
67
|
execArgv?: string[];
|
|
68
|
+
resourceLimits?: ResourceLimits;
|
|
69
|
+
/**
|
|
70
|
+
* Additional data to send in the first worker message.
|
|
71
|
+
*/
|
|
72
|
+
transferList?: TransferListItem[];
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
interface ResourceLimits {
|
|
76
|
+
/**
|
|
77
|
+
* The maximum size of a heap space for recently created objects.
|
|
78
|
+
*/
|
|
79
|
+
maxYoungGenerationSizeMb?: number;
|
|
80
|
+
/**
|
|
81
|
+
* The maximum size of the main heap in MB.
|
|
82
|
+
*/
|
|
83
|
+
maxOldGenerationSizeMb?: number;
|
|
84
|
+
/**
|
|
85
|
+
* The size of a pre-allocated memory range used for generated code.
|
|
86
|
+
*/
|
|
87
|
+
codeRangeSizeMb?: number;
|
|
65
88
|
}
|
|
66
89
|
|
|
67
90
|
class Worker extends EventEmitter {
|
|
@@ -72,7 +95,7 @@ declare module "worker_threads" {
|
|
|
72
95
|
|
|
73
96
|
constructor(filename: string, options?: WorkerOptions);
|
|
74
97
|
|
|
75
|
-
postMessage(value: any, transferList?:
|
|
98
|
+
postMessage(value: any, transferList?: ReadonlyArray<TransferListItem>): void;
|
|
76
99
|
ref(): void;
|
|
77
100
|
unref(): void;
|
|
78
101
|
/**
|
node v12.12/zlib.d.ts
CHANGED
|
@@ -49,7 +49,8 @@ declare module "zlib" {
|
|
|
49
49
|
readonly bytesWritten: number;
|
|
50
50
|
shell?: boolean | string;
|
|
51
51
|
close(callback?: () => void): void;
|
|
52
|
-
flush(kind?: number
|
|
52
|
+
flush(kind?: number, callback?: () => void): void;
|
|
53
|
+
flush(callback?: () => void): void;
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
interface ZlibParams {
|
|
@@ -86,69 +87,76 @@ declare module "zlib" {
|
|
|
86
87
|
|
|
87
88
|
function brotliCompress(buf: InputType, options: BrotliOptions, callback: CompressCallback): void;
|
|
88
89
|
function brotliCompress(buf: InputType, callback: CompressCallback): void;
|
|
90
|
+
namespace brotliCompress {
|
|
91
|
+
function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<Buffer>;
|
|
92
|
+
}
|
|
93
|
+
|
|
89
94
|
function brotliCompressSync(buf: InputType, options?: BrotliOptions): Buffer;
|
|
95
|
+
|
|
90
96
|
function brotliDecompress(buf: InputType, options: BrotliOptions, callback: CompressCallback): void;
|
|
91
97
|
function brotliDecompress(buf: InputType, callback: CompressCallback): void;
|
|
98
|
+
namespace brotliDecompress {
|
|
99
|
+
function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<Buffer>;
|
|
100
|
+
}
|
|
101
|
+
|
|
92
102
|
function brotliDecompressSync(buf: InputType, options?: BrotliOptions): Buffer;
|
|
103
|
+
|
|
93
104
|
function deflate(buf: InputType, callback: CompressCallback): void;
|
|
94
105
|
function deflate(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
|
106
|
+
namespace deflate {
|
|
107
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
|
|
108
|
+
}
|
|
109
|
+
|
|
95
110
|
function deflateSync(buf: InputType, options?: ZlibOptions): Buffer;
|
|
111
|
+
|
|
96
112
|
function deflateRaw(buf: InputType, callback: CompressCallback): void;
|
|
97
113
|
function deflateRaw(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
|
114
|
+
namespace deflateRaw {
|
|
115
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
|
|
116
|
+
}
|
|
117
|
+
|
|
98
118
|
function deflateRawSync(buf: InputType, options?: ZlibOptions): Buffer;
|
|
119
|
+
|
|
99
120
|
function gzip(buf: InputType, callback: CompressCallback): void;
|
|
100
121
|
function gzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
|
122
|
+
namespace gzip {
|
|
123
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
|
|
124
|
+
}
|
|
125
|
+
|
|
101
126
|
function gzipSync(buf: InputType, options?: ZlibOptions): Buffer;
|
|
127
|
+
|
|
102
128
|
function gunzip(buf: InputType, callback: CompressCallback): void;
|
|
103
129
|
function gunzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
|
130
|
+
namespace gunzip {
|
|
131
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
|
|
132
|
+
}
|
|
133
|
+
|
|
104
134
|
function gunzipSync(buf: InputType, options?: ZlibOptions): Buffer;
|
|
135
|
+
|
|
105
136
|
function inflate(buf: InputType, callback: CompressCallback): void;
|
|
106
137
|
function inflate(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
|
138
|
+
namespace inflate {
|
|
139
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
|
|
140
|
+
}
|
|
141
|
+
|
|
107
142
|
function inflateSync(buf: InputType, options?: ZlibOptions): Buffer;
|
|
143
|
+
|
|
108
144
|
function inflateRaw(buf: InputType, callback: CompressCallback): void;
|
|
109
145
|
function inflateRaw(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
|
146
|
+
namespace inflateRaw {
|
|
147
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
|
|
148
|
+
}
|
|
149
|
+
|
|
110
150
|
function inflateRawSync(buf: InputType, options?: ZlibOptions): Buffer;
|
|
151
|
+
|
|
111
152
|
function unzip(buf: InputType, callback: CompressCallback): void;
|
|
112
153
|
function unzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
|
113
|
-
function unzipSync(buf: InputType, options?: ZlibOptions): Buffer;
|
|
114
|
-
|
|
115
|
-
namespace brotliCompress {
|
|
116
|
-
function __promisify__(buffer: InputType, options: BrotliOptions): Promise<Buffer>;
|
|
117
|
-
function __promisify__(buffer: InputType): Promise<Buffer>;
|
|
118
|
-
}
|
|
119
|
-
namespace brotliDecompress {
|
|
120
|
-
function __promisify__(buffer: InputType, options: BrotliOptions): Promise<Buffer>;
|
|
121
|
-
function __promisify__(buffer: InputType): Promise<Buffer>;
|
|
122
|
-
}
|
|
123
|
-
namespace deflate {
|
|
124
|
-
function __promisify__(buffer: InputType): Promise<Buffer>;
|
|
125
|
-
function __promisify__(buffer: InputType, options: ZlibOptions): Promise<Buffer>;
|
|
126
|
-
}
|
|
127
|
-
namespace deflateRaw {
|
|
128
|
-
function __promisify__(buffer: InputType): Promise<Buffer>;
|
|
129
|
-
function __promisify__(buffer: InputType, options: ZlibOptions): Promise<Buffer>;
|
|
130
|
-
}
|
|
131
|
-
namespace gzip {
|
|
132
|
-
function __promisify__(buffer: InputType): Promise<Buffer>;
|
|
133
|
-
function __promisify__(buffer: InputType, options: ZlibOptions): Promise<Buffer>;
|
|
134
|
-
}
|
|
135
|
-
namespace gunzip {
|
|
136
|
-
function __promisify__(buffer: InputType): Promise<Buffer>;
|
|
137
|
-
function __promisify__(buffer: InputType, options: ZlibOptions): Promise<Buffer>;
|
|
138
|
-
}
|
|
139
|
-
namespace inflate {
|
|
140
|
-
function __promisify__(buffer: InputType): Promise<Buffer>;
|
|
141
|
-
function __promisify__(buffer: InputType, options: ZlibOptions): Promise<Buffer>;
|
|
142
|
-
}
|
|
143
|
-
namespace inflateRaw {
|
|
144
|
-
function __promisify__(buffer: InputType): Promise<Buffer>;
|
|
145
|
-
function __promisify__(buffer: InputType, options: ZlibOptions): Promise<Buffer>;
|
|
146
|
-
}
|
|
147
154
|
namespace unzip {
|
|
148
|
-
function __promisify__(buffer: InputType): Promise<Buffer>;
|
|
149
|
-
function __promisify__(buffer: InputType, options: ZlibOptions): Promise<Buffer>;
|
|
155
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
|
|
150
156
|
}
|
|
151
157
|
|
|
158
|
+
function unzipSync(buf: InputType, options?: ZlibOptions): Buffer;
|
|
159
|
+
|
|
152
160
|
namespace constants {
|
|
153
161
|
const BROTLI_DECODE: number;
|
|
154
162
|
const BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES: number;
|
|
@@ -226,165 +234,121 @@ declare module "zlib" {
|
|
|
226
234
|
const INFLATERAW: number;
|
|
227
235
|
const UNZIP: number;
|
|
228
236
|
|
|
229
|
-
const
|
|
230
|
-
const
|
|
237
|
+
const Z_NO_FLUSH: number;
|
|
238
|
+
const Z_PARTIAL_FLUSH: number;
|
|
239
|
+
const Z_SYNC_FLUSH: number;
|
|
240
|
+
const Z_FULL_FLUSH: number;
|
|
241
|
+
const Z_FINISH: number;
|
|
231
242
|
const Z_BLOCK: number;
|
|
232
|
-
const
|
|
243
|
+
const Z_TREES: number;
|
|
244
|
+
|
|
245
|
+
const Z_OK: number;
|
|
246
|
+
const Z_STREAM_END: number;
|
|
247
|
+
const Z_NEED_DICT: number;
|
|
248
|
+
const Z_ERRNO: number;
|
|
249
|
+
const Z_STREAM_ERROR: number;
|
|
233
250
|
const Z_DATA_ERROR: number;
|
|
251
|
+
const Z_MEM_ERROR: number;
|
|
252
|
+
const Z_BUF_ERROR: number;
|
|
253
|
+
const Z_VERSION_ERROR: number;
|
|
234
254
|
|
|
235
|
-
const
|
|
255
|
+
const Z_NO_COMPRESSION: number;
|
|
256
|
+
const Z_BEST_SPEED: number;
|
|
257
|
+
const Z_BEST_COMPRESSION: number;
|
|
236
258
|
const Z_DEFAULT_COMPRESSION: number;
|
|
237
|
-
const Z_DEFAULT_LEVEL: number;
|
|
238
|
-
const Z_DEFAULT_MEMLEVEL: number;
|
|
239
|
-
const Z_DEFAULT_STRATEGY: number;
|
|
240
|
-
const Z_DEFAULT_WINDOWBITS: number;
|
|
241
259
|
|
|
242
|
-
const Z_ERRNO: number;
|
|
243
260
|
const Z_FILTERED: number;
|
|
244
|
-
const Z_FINISH: number;
|
|
245
|
-
const Z_FIXED: number;
|
|
246
|
-
const Z_FULL_FLUSH: number;
|
|
247
261
|
const Z_HUFFMAN_ONLY: number;
|
|
248
|
-
const
|
|
249
|
-
const
|
|
250
|
-
const
|
|
262
|
+
const Z_RLE: number;
|
|
263
|
+
const Z_FIXED: number;
|
|
264
|
+
const Z_DEFAULT_STRATEGY: number;
|
|
265
|
+
|
|
266
|
+
const Z_DEFAULT_WINDOWBITS: number;
|
|
267
|
+
const Z_MIN_WINDOWBITS: number;
|
|
251
268
|
const Z_MAX_WINDOWBITS: number;
|
|
252
|
-
|
|
269
|
+
|
|
253
270
|
const Z_MIN_CHUNK: number;
|
|
254
|
-
const
|
|
271
|
+
const Z_MAX_CHUNK: number;
|
|
272
|
+
const Z_DEFAULT_CHUNK: number;
|
|
273
|
+
|
|
255
274
|
const Z_MIN_MEMLEVEL: number;
|
|
256
|
-
const
|
|
257
|
-
const
|
|
258
|
-
|
|
259
|
-
const
|
|
260
|
-
const
|
|
261
|
-
const
|
|
262
|
-
|
|
263
|
-
const Z_STREAM_END: number;
|
|
264
|
-
const Z_STREAM_ERROR: number;
|
|
265
|
-
const Z_SYNC_FLUSH: number;
|
|
266
|
-
const Z_VERSION_ERROR: number;
|
|
275
|
+
const Z_MAX_MEMLEVEL: number;
|
|
276
|
+
const Z_DEFAULT_MEMLEVEL: number;
|
|
277
|
+
|
|
278
|
+
const Z_MIN_LEVEL: number;
|
|
279
|
+
const Z_MAX_LEVEL: number;
|
|
280
|
+
const Z_DEFAULT_LEVEL: number;
|
|
281
|
+
|
|
267
282
|
const ZLIB_VERNUM: number;
|
|
268
283
|
}
|
|
269
284
|
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
*/
|
|
285
|
+
// Allowed flush values.
|
|
286
|
+
/** @deprecated Use `constants.Z_NO_FLUSH` */
|
|
273
287
|
const Z_NO_FLUSH: number;
|
|
274
|
-
/**
|
|
275
|
-
* @deprecated
|
|
276
|
-
*/
|
|
288
|
+
/** @deprecated Use `constants.Z_PARTIAL_FLUSH` */
|
|
277
289
|
const Z_PARTIAL_FLUSH: number;
|
|
278
|
-
/**
|
|
279
|
-
* @deprecated
|
|
280
|
-
*/
|
|
290
|
+
/** @deprecated Use `constants.Z_SYNC_FLUSH` */
|
|
281
291
|
const Z_SYNC_FLUSH: number;
|
|
282
|
-
/**
|
|
283
|
-
* @deprecated
|
|
284
|
-
*/
|
|
292
|
+
/** @deprecated Use `constants.Z_FULL_FLUSH` */
|
|
285
293
|
const Z_FULL_FLUSH: number;
|
|
286
|
-
/**
|
|
287
|
-
* @deprecated
|
|
288
|
-
*/
|
|
294
|
+
/** @deprecated Use `constants.Z_FINISH` */
|
|
289
295
|
const Z_FINISH: number;
|
|
290
|
-
/**
|
|
291
|
-
* @deprecated
|
|
292
|
-
*/
|
|
296
|
+
/** @deprecated Use `constants.Z_BLOCK` */
|
|
293
297
|
const Z_BLOCK: number;
|
|
294
|
-
/**
|
|
295
|
-
* @deprecated
|
|
296
|
-
*/
|
|
298
|
+
/** @deprecated Use `constants.Z_TREES` */
|
|
297
299
|
const Z_TREES: number;
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
300
|
+
|
|
301
|
+
// Return codes for the compression/decompression functions.
|
|
302
|
+
// Negative values are errors, positive values are used for special but normal events.
|
|
303
|
+
/** @deprecated Use `constants.Z_OK` */
|
|
301
304
|
const Z_OK: number;
|
|
302
|
-
/**
|
|
303
|
-
* @deprecated
|
|
304
|
-
*/
|
|
305
|
+
/** @deprecated Use `constants.Z_STREAM_END` */
|
|
305
306
|
const Z_STREAM_END: number;
|
|
306
|
-
/**
|
|
307
|
-
* @deprecated
|
|
308
|
-
*/
|
|
307
|
+
/** @deprecated Use `constants.Z_NEED_DICT` */
|
|
309
308
|
const Z_NEED_DICT: number;
|
|
310
|
-
/**
|
|
311
|
-
* @deprecated
|
|
312
|
-
*/
|
|
309
|
+
/** @deprecated Use `constants.Z_ERRNO` */
|
|
313
310
|
const Z_ERRNO: number;
|
|
314
|
-
/**
|
|
315
|
-
* @deprecated
|
|
316
|
-
*/
|
|
311
|
+
/** @deprecated Use `constants.Z_STREAM_ERROR` */
|
|
317
312
|
const Z_STREAM_ERROR: number;
|
|
318
|
-
/**
|
|
319
|
-
* @deprecated
|
|
320
|
-
*/
|
|
313
|
+
/** @deprecated Use `constants.Z_DATA_ERROR` */
|
|
321
314
|
const Z_DATA_ERROR: number;
|
|
322
|
-
/**
|
|
323
|
-
* @deprecated
|
|
324
|
-
*/
|
|
315
|
+
/** @deprecated Use `constants.Z_MEM_ERROR` */
|
|
325
316
|
const Z_MEM_ERROR: number;
|
|
326
|
-
/**
|
|
327
|
-
* @deprecated
|
|
328
|
-
*/
|
|
317
|
+
/** @deprecated Use `constants.Z_BUF_ERROR` */
|
|
329
318
|
const Z_BUF_ERROR: number;
|
|
330
|
-
/**
|
|
331
|
-
* @deprecated
|
|
332
|
-
*/
|
|
319
|
+
/** @deprecated Use `constants.Z_VERSION_ERROR` */
|
|
333
320
|
const Z_VERSION_ERROR: number;
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
321
|
+
|
|
322
|
+
// Compression levels.
|
|
323
|
+
/** @deprecated Use `constants.Z_NO_COMPRESSION` */
|
|
337
324
|
const Z_NO_COMPRESSION: number;
|
|
338
|
-
/**
|
|
339
|
-
* @deprecated
|
|
340
|
-
*/
|
|
325
|
+
/** @deprecated Use `constants.Z_BEST_SPEED` */
|
|
341
326
|
const Z_BEST_SPEED: number;
|
|
342
|
-
/**
|
|
343
|
-
* @deprecated
|
|
344
|
-
*/
|
|
327
|
+
/** @deprecated Use `constants.Z_BEST_COMPRESSION` */
|
|
345
328
|
const Z_BEST_COMPRESSION: number;
|
|
346
|
-
/**
|
|
347
|
-
* @deprecated
|
|
348
|
-
*/
|
|
329
|
+
/** @deprecated Use `constants.Z_DEFAULT_COMPRESSION` */
|
|
349
330
|
const Z_DEFAULT_COMPRESSION: number;
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
331
|
+
|
|
332
|
+
// Compression strategy.
|
|
333
|
+
/** @deprecated Use `constants.Z_FILTERED` */
|
|
353
334
|
const Z_FILTERED: number;
|
|
354
|
-
/**
|
|
355
|
-
* @deprecated
|
|
356
|
-
*/
|
|
335
|
+
/** @deprecated Use `constants.Z_HUFFMAN_ONLY` */
|
|
357
336
|
const Z_HUFFMAN_ONLY: number;
|
|
358
|
-
/**
|
|
359
|
-
* @deprecated
|
|
360
|
-
*/
|
|
337
|
+
/** @deprecated Use `constants.Z_RLE` */
|
|
361
338
|
const Z_RLE: number;
|
|
362
|
-
/**
|
|
363
|
-
* @deprecated
|
|
364
|
-
*/
|
|
339
|
+
/** @deprecated Use `constants.Z_FIXED` */
|
|
365
340
|
const Z_FIXED: number;
|
|
366
|
-
/**
|
|
367
|
-
* @deprecated
|
|
368
|
-
*/
|
|
341
|
+
/** @deprecated Use `constants.Z_DEFAULT_STRATEGY` */
|
|
369
342
|
const Z_DEFAULT_STRATEGY: number;
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
*/
|
|
343
|
+
|
|
344
|
+
/** @deprecated */
|
|
373
345
|
const Z_BINARY: number;
|
|
374
|
-
/**
|
|
375
|
-
* @deprecated
|
|
376
|
-
*/
|
|
346
|
+
/** @deprecated */
|
|
377
347
|
const Z_TEXT: number;
|
|
378
|
-
/**
|
|
379
|
-
* @deprecated
|
|
380
|
-
*/
|
|
348
|
+
/** @deprecated */
|
|
381
349
|
const Z_ASCII: number;
|
|
382
|
-
/**
|
|
383
|
-
* @deprecated
|
|
384
|
-
*/
|
|
350
|
+
/** @deprecated */
|
|
385
351
|
const Z_UNKNOWN: number;
|
|
386
|
-
/**
|
|
387
|
-
* @deprecated
|
|
388
|
-
*/
|
|
352
|
+
/** @deprecated */
|
|
389
353
|
const Z_DEFLATED: number;
|
|
390
354
|
}
|