@types/node 10.17.40 → 10.17.44

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 v10.17/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/v10.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Fri, 16 Oct 2020 16:30:54 GMT
11
+ * Last updated: Wed, 28 Oct 2020 18:55:49 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Buffer`, `NodeJS`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `require`, `setImmediate`, `setInterval`, `setTimeout`
14
14
 
node v10.17/base.d.ts CHANGED
@@ -13,7 +13,6 @@
13
13
  /// <reference lib="esnext.bigint" />
14
14
 
15
15
  // Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
16
- // tslint:disable-next-line:no-bad-reference
17
16
  /// <reference path="ts3.6/base.d.ts" />
18
17
 
19
18
  // TypeScript 3.7-specific augmentations:
@@ -188,7 +188,6 @@ declare function clearImmediate(immediateId: NodeJS.Immediate): void;
188
188
 
189
189
  // TODO: change to `type NodeRequireFunction = (id: string) => any;` in next mayor version.
190
190
  interface NodeRequireFunction {
191
- /* tslint:disable-next-line:callable-types */
192
191
  (id: string): any;
193
192
  }
194
193
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "10.17.40",
3
+ "version": "10.17.44",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -196,6 +196,6 @@
196
196
  },
197
197
  "scripts": {},
198
198
  "dependencies": {},
199
- "typesPublisherContentHash": "572ed54bbcf7d36285d67614b3ad58d09bc184ff57a1b5153a15ca4aa036b3a6",
199
+ "typesPublisherContentHash": "e2fb581be54ad7c975d6492b5d329071ebb5a60cc5fc6639248beee6c5cd18c3",
200
200
  "typeScriptVersion": "3.2"
201
201
  }
node v10.17/repl.d.ts CHANGED
@@ -131,13 +131,21 @@ declare module "repl" {
131
131
  */
132
132
  readonly context: Context;
133
133
  /**
134
- * The `Readable` stream from which REPL input will be read.
134
+ * Outdated alias for `input`.
135
135
  */
136
136
  readonly inputStream: NodeJS.ReadableStream;
137
137
  /**
138
- * The `Writable` stream to which REPL output will be written.
138
+ * Outdated alias for `output`.
139
139
  */
140
140
  readonly outputStream: NodeJS.WritableStream;
141
+ /**
142
+ * The `Readable` stream from which REPL input will be read.
143
+ */
144
+ readonly input: NodeJS.ReadableStream;
145
+ /**
146
+ * The `Writable` stream to which REPL output will be written.
147
+ */
148
+ readonly output: NodeJS.WritableStream;
141
149
  /**
142
150
  * The commands registered via `replServer.defineCommand()`.
143
151
  */
node v10.17/tls.d.ts CHANGED
@@ -447,7 +447,7 @@ declare module "tls" {
447
447
  function connect(port: number, host?: string, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
448
448
  function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
449
449
  function createSecurePair(credentials?: crypto.Credentials, isServer?: boolean, requestCert?: boolean, rejectUnauthorized?: boolean): SecurePair;
450
- function createSecureContext(details: SecureContextOptions): SecureContext;
450
+ function createSecureContext(options?: SecureContextOptions): SecureContext;
451
451
  function getCiphers(): string[];
452
452
 
453
453
  /**
node v10.17/zlib.d.ts CHANGED
@@ -40,7 +40,8 @@ declare module "zlib" {
40
40
  readonly bytesWritten: number;
41
41
  shell?: boolean | string;
42
42
  close(callback?: () => void): void;
43
- flush(kind?: number | (() => void), callback?: () => void): void;
43
+ flush(kind?: number, callback?: () => void): void;
44
+ flush(callback?: () => void): void;
44
45
  }
45
46
 
46
47
  interface ZlibParams {
@@ -77,30 +78,74 @@ declare module "zlib" {
77
78
 
78
79
  function brotliCompress(buf: InputType, options: BrotliOptions, callback: CompressCallback): void;
79
80
  function brotliCompress(buf: InputType, callback: CompressCallback): void;
81
+ namespace brotliCompress {
82
+ function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<Buffer>;
83
+ }
84
+
80
85
  function brotliCompressSync(buf: InputType, options?: BrotliOptions): Buffer;
86
+
81
87
  function brotliDecompress(buf: InputType, options: BrotliOptions, callback: CompressCallback): void;
82
88
  function brotliDecompress(buf: InputType, callback: CompressCallback): void;
89
+ namespace brotliDecompress {
90
+ function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<Buffer>;
91
+ }
92
+
83
93
  function brotliDecompressSync(buf: InputType, options?: BrotliOptions): Buffer;
84
- function deflate(buf: InputType, callback: (error: Error | null, result: Buffer) => void): void;
85
- function deflate(buf: InputType, options: ZlibOptions, callback: (error: Error | null, result: Buffer) => void): void;
94
+
95
+ function deflate(buf: InputType, callback: CompressCallback): void;
96
+ function deflate(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
97
+ namespace deflate {
98
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
99
+ }
100
+
86
101
  function deflateSync(buf: InputType, options?: ZlibOptions): Buffer;
87
- function deflateRaw(buf: InputType, callback: (error: Error | null, result: Buffer) => void): void;
88
- function deflateRaw(buf: InputType, options: ZlibOptions, callback: (error: Error | null, result: Buffer) => void): void;
102
+
103
+ function deflateRaw(buf: InputType, callback: CompressCallback): void;
104
+ function deflateRaw(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
105
+ namespace deflateRaw {
106
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
107
+ }
108
+
89
109
  function deflateRawSync(buf: InputType, options?: ZlibOptions): Buffer;
90
- function gzip(buf: InputType, callback: (error: Error | null, result: Buffer) => void): void;
91
- function gzip(buf: InputType, options: ZlibOptions, callback: (error: Error | null, result: Buffer) => void): void;
110
+
111
+ function gzip(buf: InputType, callback: CompressCallback): void;
112
+ function gzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
113
+ namespace gzip {
114
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
115
+ }
116
+
92
117
  function gzipSync(buf: InputType, options?: ZlibOptions): Buffer;
93
- function gunzip(buf: InputType, callback: (error: Error | null, result: Buffer) => void): void;
94
- function gunzip(buf: InputType, options: ZlibOptions, callback: (error: Error | null, result: Buffer) => void): void;
118
+
119
+ function gunzip(buf: InputType, callback: CompressCallback): void;
120
+ function gunzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
121
+ namespace gunzip {
122
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
123
+ }
124
+
95
125
  function gunzipSync(buf: InputType, options?: ZlibOptions): Buffer;
96
- function inflate(buf: InputType, callback: (error: Error | null, result: Buffer) => void): void;
97
- function inflate(buf: InputType, options: ZlibOptions, callback: (error: Error | null, result: Buffer) => void): void;
126
+
127
+ function inflate(buf: InputType, callback: CompressCallback): void;
128
+ function inflate(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
129
+ namespace inflate {
130
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
131
+ }
132
+
98
133
  function inflateSync(buf: InputType, options?: ZlibOptions): Buffer;
99
- function inflateRaw(buf: InputType, callback: (error: Error | null, result: Buffer) => void): void;
100
- function inflateRaw(buf: InputType, options: ZlibOptions, callback: (error: Error | null, result: Buffer) => void): void;
134
+
135
+ function inflateRaw(buf: InputType, callback: CompressCallback): void;
136
+ function inflateRaw(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
137
+ namespace inflateRaw {
138
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
139
+ }
140
+
101
141
  function inflateRawSync(buf: InputType, options?: ZlibOptions): Buffer;
102
- function unzip(buf: InputType, callback: (error: Error | null, result: Buffer) => void): void;
103
- function unzip(buf: InputType, options: ZlibOptions, callback: (error: Error | null, result: Buffer) => void): void;
142
+
143
+ function unzip(buf: InputType, callback: CompressCallback): void;
144
+ function unzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
145
+ namespace unzip {
146
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
147
+ }
148
+
104
149
  function unzipSync(buf: InputType, options?: ZlibOptions): Buffer;
105
150
 
106
151
  namespace constants {
@@ -210,35 +255,73 @@ declare module "zlib" {
210
255
  const BROTLI_PARAM_SIZE_HINT: number;
211
256
  }
212
257
 
213
- // Constants
258
+ // Allowed flush values.
259
+ /** @deprecated Use `constants.Z_NO_FLUSH` */
214
260
  const Z_NO_FLUSH: number;
261
+ /** @deprecated Use `constants.Z_PARTIAL_FLUSH` */
215
262
  const Z_PARTIAL_FLUSH: number;
263
+ /** @deprecated Use `constants.Z_SYNC_FLUSH` */
216
264
  const Z_SYNC_FLUSH: number;
265
+ /** @deprecated Use `constants.Z_FULL_FLUSH` */
217
266
  const Z_FULL_FLUSH: number;
267
+ /** @deprecated Use `constants.Z_FINISH` */
218
268
  const Z_FINISH: number;
269
+ /** @deprecated Use `constants.Z_BLOCK` */
219
270
  const Z_BLOCK: number;
271
+ /** @deprecated Use `constants.Z_TREES` */
220
272
  const Z_TREES: number;
273
+
274
+ // Return codes for the compression/decompression functions.
275
+ // Negative values are errors, positive values are used for special but normal events.
276
+ /** @deprecated Use `constants.Z_OK` */
221
277
  const Z_OK: number;
278
+ /** @deprecated Use `constants.Z_STREAM_END` */
222
279
  const Z_STREAM_END: number;
280
+ /** @deprecated Use `constants.Z_NEED_DICT` */
223
281
  const Z_NEED_DICT: number;
282
+ /** @deprecated Use `constants.Z_ERRNO` */
224
283
  const Z_ERRNO: number;
284
+ /** @deprecated Use `constants.Z_STREAM_ERROR` */
225
285
  const Z_STREAM_ERROR: number;
286
+ /** @deprecated Use `constants.Z_DATA_ERROR` */
226
287
  const Z_DATA_ERROR: number;
288
+ /** @deprecated Use `constants.Z_MEM_ERROR` */
227
289
  const Z_MEM_ERROR: number;
290
+ /** @deprecated Use `constants.Z_BUF_ERROR` */
228
291
  const Z_BUF_ERROR: number;
292
+ /** @deprecated Use `constants.Z_VERSION_ERROR` */
229
293
  const Z_VERSION_ERROR: number;
294
+
295
+ // Compression levels.
296
+ /** @deprecated Use `constants.Z_NO_COMPRESSION` */
230
297
  const Z_NO_COMPRESSION: number;
298
+ /** @deprecated Use `constants.Z_BEST_SPEED` */
231
299
  const Z_BEST_SPEED: number;
300
+ /** @deprecated Use `constants.Z_BEST_COMPRESSION` */
232
301
  const Z_BEST_COMPRESSION: number;
302
+ /** @deprecated Use `constants.Z_DEFAULT_COMPRESSION` */
233
303
  const Z_DEFAULT_COMPRESSION: number;
304
+
305
+ // Compression strategy.
306
+ /** @deprecated Use `constants.Z_FILTERED` */
234
307
  const Z_FILTERED: number;
308
+ /** @deprecated Use `constants.Z_HUFFMAN_ONLY` */
235
309
  const Z_HUFFMAN_ONLY: number;
310
+ /** @deprecated Use `constants.Z_RLE` */
236
311
  const Z_RLE: number;
312
+ /** @deprecated Use `constants.Z_FIXED` */
237
313
  const Z_FIXED: number;
314
+ /** @deprecated Use `constants.Z_DEFAULT_STRATEGY` */
238
315
  const Z_DEFAULT_STRATEGY: number;
316
+
317
+ /** @deprecated */
239
318
  const Z_BINARY: number;
319
+ /** @deprecated */
240
320
  const Z_TEXT: number;
321
+ /** @deprecated */
241
322
  const Z_ASCII: number;
323
+ /** @deprecated */
242
324
  const Z_UNKNOWN: number;
325
+ /** @deprecated */
243
326
  const Z_DEFLATED: number;
244
327
  }