@types/node 14.14.39 → 14.14.43

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.
Files changed (52) hide show
  1. {node → node v14.14}/LICENSE +0 -0
  2. node v14.14/README.md +16 -0
  3. {node → node v14.14}/assert.d.ts +0 -0
  4. {node → node v14.14}/async_hooks.d.ts +0 -0
  5. {node → node v14.14}/base.d.ts +0 -0
  6. {node → node v14.14}/buffer.d.ts +0 -0
  7. {node → node v14.14}/child_process.d.ts +0 -0
  8. {node → node v14.14}/cluster.d.ts +0 -0
  9. {node → node v14.14}/console.d.ts +0 -0
  10. {node → node v14.14}/constants.d.ts +0 -0
  11. {node → node v14.14}/crypto.d.ts +0 -0
  12. {node → node v14.14}/dgram.d.ts +0 -0
  13. {node → node v14.14}/dns.d.ts +0 -0
  14. {node → node v14.14}/domain.d.ts +0 -0
  15. {node → node v14.14}/events.d.ts +0 -0
  16. {node → node v14.14}/fs/promises.d.ts +0 -0
  17. {node → node v14.14}/fs.d.ts +0 -0
  18. {node → node v14.14}/globals.d.ts +0 -0
  19. {node → node v14.14}/globals.global.d.ts +0 -0
  20. {node → node v14.14}/http.d.ts +0 -0
  21. {node → node v14.14}/http2.d.ts +0 -0
  22. {node → node v14.14}/https.d.ts +0 -0
  23. node/index.d.ts → node v14.14/index.d.ts +0 -1
  24. {node → node v14.14}/inspector.d.ts +0 -0
  25. {node → node v14.14}/module.d.ts +0 -0
  26. {node → node v14.14}/net.d.ts +0 -0
  27. {node → node v14.14}/os.d.ts +0 -0
  28. node/package.json → node v14.14/package.json +2 -7
  29. {node → node v14.14}/path.d.ts +0 -0
  30. {node → node v14.14}/perf_hooks.d.ts +0 -0
  31. node/process.d.ts → node v14.14/process.d.ts +1 -42
  32. {node → node v14.14}/punycode.d.ts +0 -0
  33. {node → node v14.14}/querystring.d.ts +0 -0
  34. {node → node v14.14}/readline.d.ts +0 -0
  35. {node → node v14.14}/repl.d.ts +0 -0
  36. node/stream.d.ts → node v14.14/stream.d.ts +27 -116
  37. {node → node v14.14}/string_decoder.d.ts +0 -0
  38. {node → node v14.14}/timers.d.ts +0 -0
  39. {node → node v14.14}/tls.d.ts +0 -0
  40. {node → node v14.14}/trace_events.d.ts +0 -0
  41. {node → node v14.14}/ts3.6/assert.d.ts +0 -0
  42. {node → node v14.14}/ts3.6/base.d.ts +0 -0
  43. {node → node v14.14}/ts3.6/index.d.ts +0 -0
  44. {node → node v14.14}/tty.d.ts +0 -0
  45. {node → node v14.14}/url.d.ts +0 -0
  46. {node → node v14.14}/util.d.ts +0 -0
  47. {node → node v14.14}/v8.d.ts +0 -0
  48. {node → node v14.14}/vm.d.ts +0 -0
  49. {node → node v14.14}/wasi.d.ts +0 -0
  50. {node → node v14.14}/worker_threads.d.ts +0 -0
  51. {node → node v14.14}/zlib.d.ts +0 -0
  52. node/README.md +0 -16
File without changes
@@ -0,0 +1,16 @@
1
+ # Installation
2
+ > `npm install --save @types/node`
3
+
4
+ # Summary
5
+ This package contains type definitions for Node.js (http://nodejs.org/).
6
+
7
+ # Details
8
+ Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v14.
9
+
10
+ ### Additional Details
11
+ * Last updated: Tue, 27 Apr 2021 14:31:26 GMT
12
+ * Dependencies: none
13
+ * Global values: `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
14
+
15
+ # Credits
16
+ These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Hoàng Văn Khải](https://github.com/KSXGitHub), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Minh Son Nguyen](https://github.com/nguymin4), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Surasak Chaisurin](https://github.com/Ryan-Willpower), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Jason Kwok](https://github.com/JasonHK), [Victor Perin](https://github.com/victorperin), and [Yongsheng Zhang](https://github.com/ZYSzys).
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -6,7 +6,6 @@
6
6
  // Alvis HT Tang <https://github.com/alvis>
7
7
  // Andrew Makarov <https://github.com/r3nya>
8
8
  // Benjamin Toueg <https://github.com/btoueg>
9
- // Bruno Scheufler <https://github.com/brunoscheufler>
10
9
  // Chigozirim C. <https://github.com/smac89>
11
10
  // David Junger <https://github.com/touffy>
12
11
  // Deividas Bakanas <https://github.com/DeividasBakanas>
File without changes
File without changes
File without changes
File without changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "14.14.39",
3
+ "version": "14.14.43",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -34,11 +34,6 @@
34
34
  "url": "https://github.com/btoueg",
35
35
  "githubUsername": "btoueg"
36
36
  },
37
- {
38
- "name": "Bruno Scheufler",
39
- "url": "https://github.com/brunoscheufler",
40
- "githubUsername": "brunoscheufler"
41
- },
42
37
  {
43
38
  "name": "Chigozirim C.",
44
39
  "url": "https://github.com/smac89",
@@ -231,6 +226,6 @@
231
226
  },
232
227
  "scripts": {},
233
228
  "dependencies": {},
234
- "typesPublisherContentHash": "4835ad853db173c783aeaea0d322f75d84a92d59a90bd56d2c9c551fb3ace17b",
229
+ "typesPublisherContentHash": "fc1a28d78fbd1e7a7802a1d8a64710bcc63ae958b8930b570ace3252fba6747e",
235
230
  "typeScriptVersion": "3.5"
236
231
  }
File without changes
File without changes
@@ -175,32 +175,6 @@ declare module 'process' {
175
175
  voluntaryContextSwitches: number;
176
176
  }
177
177
 
178
- interface EmitWarningOptions {
179
- /**
180
- * When `warning` is a `string`, `type` is the name to use for the _type_ of warning being emitted.
181
- *
182
- * @default 'Warning'
183
- */
184
- type?: string;
185
-
186
- /**
187
- * A unique identifier for the warning instance being emitted.
188
- */
189
- code?: string;
190
-
191
- /**
192
- * When `warning` is a `string`, `ctor` is an optional function used to limit the generated stack trace.
193
- *
194
- * @default process.emitWarning
195
- */
196
- ctor?: Function;
197
-
198
- /**
199
- * Additional text to include with the error.
200
- */
201
- detail?: string;
202
- }
203
-
204
178
  interface Process extends EventEmitter {
205
179
  /**
206
180
  * Can also be a tty.WriteStream, not typed due to limitations.
@@ -226,22 +200,7 @@ declare module 'process' {
226
200
  chdir(directory: string): void;
227
201
  cwd(): string;
228
202
  debugPort: number;
229
-
230
- /**
231
- * The `process.emitWarning()` method can be used to emit custom or application specific process warnings.
232
- *
233
- * These can be listened for by adding a handler to the `'warning'` event.
234
- *
235
- * @param warning The warning to emit.
236
- * @param type When `warning` is a `string`, `type` is the name to use for the _type_ of warning being emitted. Default: `'Warning'`.
237
- * @param code A unique identifier for the warning instance being emitted.
238
- * @param ctor When `warning` is a `string`, `ctor` is an optional function used to limit the generated stack trace. Default: `process.emitWarning`.
239
- */
240
- emitWarning(warning: string | Error, ctor?: Function): void;
241
- emitWarning(warning: string | Error, type?: string, ctor?: Function): void;
242
- emitWarning(warning: string | Error, type?: string, code?: string, ctor?: Function): void;
243
- emitWarning(warning: string | Error, options?: EmitWarningOptions): void;
244
-
203
+ emitWarning(warning: string | Error, name?: string, ctor?: Function): void;
245
204
  env: ProcessEnv;
246
205
  exit(code?: number): never;
247
206
  exitCode?: number;
File without changes
File without changes
File without changes
File without changes
@@ -302,76 +302,23 @@ declare module 'stream' {
302
302
  function __promisify__(stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, options?: FinishedOptions): Promise<void>;
303
303
  }
304
304
 
305
- type PipelineSourceFunction<T> = () => Iterable<T> | AsyncIterable<T>;
306
- type PipelineSource<T> = Iterable<T> | AsyncIterable<T> | NodeJS.ReadableStream | PipelineSourceFunction<T>;
307
- type PipelineTransform<S extends PipelineTransformSource<any>, U> =
308
- NodeJS.ReadWriteStream |
309
- ((source: S extends (...args: any[]) => Iterable<infer ST> | AsyncIterable<infer ST> ?
310
- AsyncIterable<ST> : S) => AsyncIterable<U>);
311
- type PipelineTransformSource<T> = PipelineSource<T> | PipelineTransform<any, T>;
312
-
313
- type PipelineDestinationIterableFunction<T> = (source: AsyncIterable<T>) => AsyncIterable<any>;
314
- type PipelineDestinationPromiseFunction<T, P> = (source: AsyncIterable<T>) => Promise<P>;
315
-
316
- type PipelineDestination<S extends PipelineTransformSource<any>, P> =
317
- S extends PipelineTransformSource<infer ST> ?
318
- (NodeJS.WritableStream | PipelineDestinationIterableFunction<ST> | PipelineDestinationPromiseFunction<ST, P>) : never;
319
- type PipelineCallback<S extends PipelineDestination<any, any>> =
320
- S extends PipelineDestinationPromiseFunction<any, infer P> ? (err: NodeJS.ErrnoException | null, value: P) => void :
321
- (err: NodeJS.ErrnoException | null) => void;
322
- type PipelinePromise<S extends PipelineDestination<any, any>> =
323
- S extends PipelineDestinationPromiseFunction<any, infer P> ? Promise<P> : Promise<void>;
324
-
325
- function pipeline<A extends PipelineSource<any>,
326
- B extends PipelineDestination<A, any>>(
327
- source: A,
328
- destination: B,
329
- callback?: PipelineCallback<B>
330
- ): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream;
331
- function pipeline<A extends PipelineSource<any>,
332
- T1 extends PipelineTransform<A, any>,
333
- B extends PipelineDestination<T1, any>>(
334
- source: A,
335
- transform1: T1,
336
- destination: B,
337
- callback?: PipelineCallback<B>
338
- ): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream;
339
- function pipeline<A extends PipelineSource<any>,
340
- T1 extends PipelineTransform<A, any>,
341
- T2 extends PipelineTransform<T1, any>,
342
- B extends PipelineDestination<T2, any>>(
343
- source: A,
344
- transform1: T1,
345
- transform2: T2,
346
- destination: B,
347
- callback?: PipelineCallback<B>
348
- ): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream;
349
- function pipeline<A extends PipelineSource<any>,
350
- T1 extends PipelineTransform<A, any>,
351
- T2 extends PipelineTransform<T1, any>,
352
- T3 extends PipelineTransform<T2, any>,
353
- B extends PipelineDestination<T3, any>>(
354
- source: A,
355
- transform1: T1,
356
- transform2: T2,
357
- transform3: T3,
358
- destination: B,
359
- callback?: PipelineCallback<B>
360
- ): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream;
361
- function pipeline<A extends PipelineSource<any>,
362
- T1 extends PipelineTransform<A, any>,
363
- T2 extends PipelineTransform<T1, any>,
364
- T3 extends PipelineTransform<T2, any>,
365
- T4 extends PipelineTransform<T3, any>,
366
- B extends PipelineDestination<T4, any>>(
367
- source: A,
368
- transform1: T1,
369
- transform2: T2,
370
- transform3: T3,
371
- transform4: T4,
372
- destination: B,
373
- callback?: PipelineCallback<B>
374
- ): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream;
305
+ function pipeline<T extends NodeJS.WritableStream>(stream1: NodeJS.ReadableStream, stream2: T, callback?: (err: NodeJS.ErrnoException | null) => void): T;
306
+ function pipeline<T extends NodeJS.WritableStream>(stream1: NodeJS.ReadableStream, stream2: NodeJS.ReadWriteStream, stream3: T, callback?: (err: NodeJS.ErrnoException | null) => void): T;
307
+ function pipeline<T extends NodeJS.WritableStream>(
308
+ stream1: NodeJS.ReadableStream,
309
+ stream2: NodeJS.ReadWriteStream,
310
+ stream3: NodeJS.ReadWriteStream,
311
+ stream4: T,
312
+ callback?: (err: NodeJS.ErrnoException | null) => void,
313
+ ): T;
314
+ function pipeline<T extends NodeJS.WritableStream>(
315
+ stream1: NodeJS.ReadableStream,
316
+ stream2: NodeJS.ReadWriteStream,
317
+ stream3: NodeJS.ReadWriteStream,
318
+ stream4: NodeJS.ReadWriteStream,
319
+ stream5: T,
320
+ callback?: (err: NodeJS.ErrnoException | null) => void,
321
+ ): T;
375
322
  function pipeline(
376
323
  streams: ReadonlyArray<NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream>,
377
324
  callback?: (err: NodeJS.ErrnoException | null) => void,
@@ -382,52 +329,16 @@ declare module 'stream' {
382
329
  ...streams: Array<NodeJS.ReadWriteStream | NodeJS.WritableStream | ((err: NodeJS.ErrnoException | null) => void)>,
383
330
  ): NodeJS.WritableStream;
384
331
  namespace pipeline {
385
- function __promisify__<A extends PipelineSource<any>,
386
- B extends PipelineDestination<A, any>>(
387
- source: A,
388
- destination: B
389
- ): PipelinePromise<B>;
390
- function __promisify__<A extends PipelineSource<any>,
391
- T1 extends PipelineTransform<A, any>,
392
- B extends PipelineDestination<T1, any>>(
393
- source: A,
394
- transform1: T1,
395
- destination: B
396
- ): PipelinePromise<B>;
397
- function __promisify__<A extends PipelineSource<any>,
398
- T1 extends PipelineTransform<A, any>,
399
- T2 extends PipelineTransform<T1, any>,
400
- B extends PipelineDestination<T2, any>>(
401
- source: A,
402
- transform1: T1,
403
- transform2: T2,
404
- destination: B
405
- ): PipelinePromise<B>;
406
- function __promisify__<A extends PipelineSource<any>,
407
- T1 extends PipelineTransform<A, any>,
408
- T2 extends PipelineTransform<T1, any>,
409
- T3 extends PipelineTransform<T2, any>,
410
- B extends PipelineDestination<T3, any>>(
411
- source: A,
412
- transform1: T1,
413
- transform2: T2,
414
- transform3: T3,
415
- destination: B
416
- ): PipelinePromise<B>;
417
- function __promisify__<A extends PipelineSource<any>,
418
- T1 extends PipelineTransform<A, any>,
419
- T2 extends PipelineTransform<T1, any>,
420
- T3 extends PipelineTransform<T2, any>,
421
- T4 extends PipelineTransform<T3, any>,
422
- B extends PipelineDestination<T4, any>>(
423
- source: A,
424
- transform1: T1,
425
- transform2: T2,
426
- transform3: T3,
427
- transform4: T4,
428
- destination: B
429
- ): PipelinePromise<B>;
430
-
332
+ function __promisify__(stream1: NodeJS.ReadableStream, stream2: NodeJS.WritableStream): Promise<void>;
333
+ function __promisify__(stream1: NodeJS.ReadableStream, stream2: NodeJS.ReadWriteStream, stream3: NodeJS.WritableStream): Promise<void>;
334
+ function __promisify__(stream1: NodeJS.ReadableStream, stream2: NodeJS.ReadWriteStream, stream3: NodeJS.ReadWriteStream, stream4: NodeJS.WritableStream): Promise<void>;
335
+ function __promisify__(
336
+ stream1: NodeJS.ReadableStream,
337
+ stream2: NodeJS.ReadWriteStream,
338
+ stream3: NodeJS.ReadWriteStream,
339
+ stream4: NodeJS.ReadWriteStream,
340
+ stream5: NodeJS.WritableStream,
341
+ ): Promise<void>;
431
342
  function __promisify__(streams: ReadonlyArray<NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream>): Promise<void>;
432
343
  function __promisify__(
433
344
  stream1: NodeJS.ReadableStream,
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
node/README.md DELETED
@@ -1,16 +0,0 @@
1
- # Installation
2
- > `npm install --save @types/node`
3
-
4
- # Summary
5
- This package contains type definitions for Node.js (http://nodejs.org/).
6
-
7
- # Details
8
- Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
9
-
10
- ### Additional Details
11
- * Last updated: Wed, 14 Apr 2021 20:31:22 GMT
12
- * Dependencies: none
13
- * Global values: `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
14
-
15
- # Credits
16
- These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Bruno Scheufler](https://github.com/brunoscheufler), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Hoàng Văn Khải](https://github.com/KSXGitHub), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Minh Son Nguyen](https://github.com/nguymin4), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Surasak Chaisurin](https://github.com/Ryan-Willpower), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Jason Kwok](https://github.com/JasonHK), [Victor Perin](https://github.com/victorperin), and [Yongsheng Zhang](https://github.com/ZYSzys).