@types/node 12.12.69 → 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/package.json +2 -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/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/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
|
}
|