@types/node 10.9.0 → 10.9.4

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 (4) hide show
  1. node/README.md +2 -2
  2. node/index.d.ts +33 -25
  3. node/inspector.d.ts +1624 -1280
  4. node/package.json +7 -2
node/README.md CHANGED
@@ -8,9 +8,9 @@ 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
9
9
 
10
10
  Additional Details
11
- * Last updated: Thu, 23 Aug 2018 17:47:10 GMT
11
+ * Last updated: Thu, 30 Aug 2018 16:35:52 GMT
12
12
  * Dependencies: none
13
13
  * Global values: Buffer, NodeJS, SlowBuffer, Symbol, __dirname, __filename, clearImmediate, clearInterval, clearTimeout, console, exports, global, module, process, require, setImmediate, setInterval, setTimeout
14
14
 
15
15
  # Credits
16
- These definitions were written by Microsoft TypeScript <http://typescriptlang.org>, DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>, Parambir Singh <https://github.com/parambirs>, Christian Vaagland Tellnes <https://github.com/tellnes>, Wilco Bakker <https://github.com/WilcoBakker>, Nicolas Voigt <https://github.com/octo-sniffle>, Chigozirim C. <https://github.com/smac89>, Flarna <https://github.com/Flarna>, Mariusz Wiktorczyk <https://github.com/mwiktorczyk>, wwwy3y3 <https://github.com/wwwy3y3>, Deividas Bakanas <https://github.com/DeividasBakanas>, Kelvin Jin <https://github.com/kjin>, Alvis HT Tang <https://github.com/alvis>, Sebastian Silbermann <https://github.com/eps1lon>, Hannes Magnusson <https://github.com/Hannes-Magnusson-CK>, Alberto Schiabel <https://github.com/jkomyno>, Klaus Meinhardt <https://github.com/ajafff>, Huw <https://github.com/hoo29>, Nicolas Even <https://github.com/n-e>, Bruno Scheufler <https://github.com/brunoscheufler>, Mohsen Azimi <https://github.com/mohsen1>, Hoàng Văn Khải <https://github.com/KSXGitHub>, Alexander T. <https://github.com/a-tarasyuk>, Lishude <https://github.com/islishude>, Andrew Makarov <https://github.com/r3nya>, Zane Hannan AU <https://github.com/ZaneHannanAU>, Thomas den Hollander <https://github.com/ThomasdenH>, Eugene Y. Q. Shen <https://github.com/eyqs>.
16
+ These definitions were written by Microsoft TypeScript <http://typescriptlang.org>, DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>, Parambir Singh <https://github.com/parambirs>, Christian Vaagland Tellnes <https://github.com/tellnes>, Wilco Bakker <https://github.com/WilcoBakker>, Nicolas Voigt <https://github.com/octo-sniffle>, Chigozirim C. <https://github.com/smac89>, Flarna <https://github.com/Flarna>, Mariusz Wiktorczyk <https://github.com/mwiktorczyk>, wwwy3y3 <https://github.com/wwwy3y3>, Deividas Bakanas <https://github.com/DeividasBakanas>, Kelvin Jin <https://github.com/kjin>, Alvis HT Tang <https://github.com/alvis>, Sebastian Silbermann <https://github.com/eps1lon>, Hannes Magnusson <https://github.com/Hannes-Magnusson-CK>, Alberto Schiabel <https://github.com/jkomyno>, Klaus Meinhardt <https://github.com/ajafff>, Huw <https://github.com/hoo29>, Nicolas Even <https://github.com/n-e>, Bruno Scheufler <https://github.com/brunoscheufler>, Mohsen Azimi <https://github.com/mohsen1>, Hoàng Văn Khải <https://github.com/KSXGitHub>, Alexander T. <https://github.com/a-tarasyuk>, Lishude <https://github.com/islishude>, Andrew Makarov <https://github.com/r3nya>, Zane Hannan AU <https://github.com/ZaneHannanAU>, Thomas den Hollander <https://github.com/ThomasdenH>, Eugene Y. Q. Shen <https://github.com/eyqs>, Matthieu Sieben <https://github.com/matthieusieben>.
node/index.d.ts CHANGED
@@ -28,6 +28,7 @@
28
28
  // Zane Hannan AU <https://github.com/ZaneHannanAU>
29
29
  // Thomas den Hollander <https://github.com/ThomasdenH>
30
30
  // Eugene Y. Q. Shen <https://github.com/eyqs>
31
+ // Matthieu Sieben <https://github.com/matthieusieben>
31
32
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
32
33
 
33
34
  /** inspector module types */
@@ -468,11 +469,11 @@ declare var Buffer: {
468
469
  poolSize: number;
469
470
  };
470
471
 
471
- /************************************************
472
+ /*----------------------------------------------*
472
473
  * *
473
474
  * GLOBAL INTERFACES *
474
475
  * *
475
- ************************************************/
476
+ *-----------------------------------------------*/
476
477
  declare namespace NodeJS {
477
478
  export interface InspectOptions {
478
479
  showHidden?: boolean;
@@ -828,7 +829,7 @@ declare namespace NodeJS {
828
829
  emit(event: "unhandledRejection", reason: any, promise: Promise<any>): boolean;
829
830
  emit(event: "warning", warning: Error): boolean;
830
831
  emit(event: "message", message: any, sendHandle: any): this;
831
- emit(event: Signals): boolean;
832
+ emit(event: Signals, signal: Signals): boolean;
832
833
  emit(event: "newListener", eventName: string | symbol, listener: (...args: any[]) => void): this;
833
834
  emit(event: "removeListener", eventName: string, listener: (...args: any[]) => void): this;
834
835
 
@@ -988,11 +989,11 @@ declare namespace NodeJS {
988
989
 
989
990
  interface IterableIterator<T> { }
990
991
 
991
- /************************************************
992
+ /*----------------------------------------------*
992
993
  * *
993
994
  * MODULES *
994
995
  * *
995
- ************************************************/
996
+ *-----------------------------------------------*/
996
997
  declare module "buffer" {
997
998
  export var INSPECT_MAX_BYTES: number;
998
999
  var BuffType: typeof Buffer;
@@ -1094,6 +1095,7 @@ declare module "http" {
1094
1095
  'transfer-encoding'?: string;
1095
1096
  'tk'?: string;
1096
1097
  'upgrade'?: string;
1098
+ 'user-agent'?: string;
1097
1099
  'vary'?: string;
1098
1100
  'via'?: string;
1099
1101
  'warning'?: string;
@@ -1710,6 +1712,7 @@ declare module "os" {
1710
1712
  netmask: string;
1711
1713
  mac: string;
1712
1714
  internal: boolean;
1715
+ cidr: string | null;
1713
1716
  }
1714
1717
 
1715
1718
  export interface NetworkInterfaceInfoIPv4 extends NetworkInterfaceBase {
@@ -5903,13 +5906,15 @@ declare module "crypto" {
5903
5906
  authTagLength?: number;
5904
5907
  }
5905
5908
  /** @deprecated since v10.0.0 use createCipheriv() */
5906
- export function createCipher(algorithm: string, password: string | Buffer | NodeJS.TypedArray | DataView, options?: stream.TransformOptions): Cipher;
5907
5909
  export function createCipher(algorithm: CipherCCMTypes, password: string | Buffer | NodeJS.TypedArray | DataView, options: CipherCCMOptions): CipherCCM;
5908
- export function createCipher(algorithm: CipherGCMTypes, password: string | Buffer | NodeJS.TypedArray | DataView, options: CipherGCMOptions): CipherGCM;
5910
+ /** @deprecated since v10.0.0 use createCipheriv() */
5911
+ export function createCipher(algorithm: CipherGCMTypes, password: string | Buffer | NodeJS.TypedArray | DataView, options?: CipherGCMOptions): CipherGCM;
5912
+ /** @deprecated since v10.0.0 use createCipheriv() */
5913
+ export function createCipher(algorithm: string, password: string | Buffer | NodeJS.TypedArray | DataView, options?: stream.TransformOptions): Cipher;
5909
5914
 
5915
+ export function createCipheriv(algorithm: CipherCCMTypes, key: string | Buffer | NodeJS.TypedArray | DataView, iv: string | Buffer | NodeJS.TypedArray | DataView, options: CipherCCMOptions): CipherCCM;
5916
+ export function createCipheriv(algorithm: CipherGCMTypes, key: string | Buffer | NodeJS.TypedArray | DataView, iv: string | Buffer | NodeJS.TypedArray | DataView, options?: CipherGCMOptions): CipherGCM;
5910
5917
  export function createCipheriv(algorithm: string, key: string | Buffer | NodeJS.TypedArray | DataView, iv: string | Buffer | NodeJS.TypedArray | DataView, options?: stream.TransformOptions): Cipher;
5911
- export function createCipheriv(algorithm: CipherGCMTypes, key: string | Buffer | NodeJS.TypedArray | DataView, iv: string | Buffer | NodeJS.TypedArray | DataView, options: CipherCCMOptions): CipherCCM;
5912
- export function createCipheriv(algorithm: CipherGCMTypes, key: string | Buffer | NodeJS.TypedArray | DataView, iv: string | Buffer | NodeJS.TypedArray | DataView, options: CipherGCMOptions): CipherGCM;
5913
5918
 
5914
5919
  export interface Cipher extends NodeJS.ReadWriteStream {
5915
5920
  update(data: string | Buffer | NodeJS.TypedArray | DataView): Buffer;
@@ -5925,21 +5930,23 @@ declare module "crypto" {
5925
5930
  // setAAD(buffer: Buffer): this; // docs only say buffer
5926
5931
  }
5927
5932
  export interface CipherCCM extends Cipher {
5928
- setAAD(buffer: Buffer, options: { plainTextLength: number }): this;
5933
+ setAAD(buffer: Buffer, options: { plaintextLength: number }): this;
5929
5934
  getAuthTag(): Buffer;
5930
5935
  }
5931
5936
  export interface CipherGCM extends Cipher {
5932
- setAAD(buffer: Buffer, options?: { plainTextLength: number }): this;
5937
+ setAAD(buffer: Buffer, options?: { plaintextLength: number }): this;
5933
5938
  getAuthTag(): Buffer;
5934
5939
  }
5935
5940
  /** @deprecated since v10.0.0 use createCipheriv() */
5936
- export function createDecipher(algorithm: string, password: string | Buffer | NodeJS.TypedArray | DataView, options?: stream.TransformOptions): Decipher;
5937
5941
  export function createDecipher(algorithm: CipherCCMTypes, password: string | Buffer | NodeJS.TypedArray | DataView, options: CipherCCMOptions): DecipherCCM;
5938
- export function createDecipher(algorithm: CipherGCMTypes, password: string | Buffer | NodeJS.TypedArray | DataView, options: CipherGCMOptions): DecipherGCM;
5942
+ /** @deprecated since v10.0.0 use createCipheriv() */
5943
+ export function createDecipher(algorithm: CipherGCMTypes, password: string | Buffer | NodeJS.TypedArray | DataView, options?: CipherGCMOptions): DecipherGCM;
5944
+ /** @deprecated since v10.0.0 use createCipheriv() */
5945
+ export function createDecipher(algorithm: string, password: string | Buffer | NodeJS.TypedArray | DataView, options?: stream.TransformOptions): Decipher;
5939
5946
 
5940
- export function createDecipheriv(algorithm: string, key: string | Buffer | NodeJS.TypedArray | DataView, iv: string | Buffer | NodeJS.TypedArray | DataView, options?: stream.TransformOptions): Decipher;
5941
5947
  export function createDecipheriv(algorithm: CipherCCMTypes, key: string | Buffer | NodeJS.TypedArray | DataView, iv: string | Buffer | NodeJS.TypedArray | DataView, options: CipherCCMOptions): DecipherCCM;
5942
- export function createDecipheriv(algorithm: CipherGCMTypes, key: string | Buffer | NodeJS.TypedArray | DataView, iv: string | Buffer | NodeJS.TypedArray | DataView, options: CipherGCMOptions): DecipherGCM;
5948
+ export function createDecipheriv(algorithm: CipherGCMTypes, key: string | Buffer | NodeJS.TypedArray | DataView, iv: string | Buffer | NodeJS.TypedArray | DataView, options?: CipherGCMOptions): DecipherGCM;
5949
+ export function createDecipheriv(algorithm: string, key: string | Buffer | NodeJS.TypedArray | DataView, iv: string | Buffer | NodeJS.TypedArray | DataView, options?: stream.TransformOptions): Decipher;
5943
5950
 
5944
5951
  export interface Decipher extends NodeJS.ReadWriteStream {
5945
5952
  update(data: Buffer | NodeJS.TypedArray | DataView): Buffer;
@@ -5954,12 +5961,12 @@ declare module "crypto" {
5954
5961
  // setAAD(buffer: Buffer | NodeJS.TypedArray | DataView): this;
5955
5962
  }
5956
5963
  export interface DecipherCCM extends Decipher {
5957
- setAuthTag(buffer: Buffer | NodeJS.TypedArray | DataView, options: { plainTextLength: number }): this;
5958
- setAAD(buffer: Buffer | NodeJS.TypedArray | DataView): this;
5964
+ setAuthTag(buffer: Buffer | NodeJS.TypedArray | DataView): this;
5965
+ setAAD(buffer: Buffer | NodeJS.TypedArray | DataView, options: { plaintextLength: number }): this;
5959
5966
  }
5960
5967
  export interface DecipherGCM extends Decipher {
5961
- setAuthTag(buffer: Buffer | NodeJS.TypedArray | DataView, options?: { plainTextLength: number }): this;
5962
- setAAD(buffer: Buffer | NodeJS.TypedArray | DataView): this;
5968
+ setAuthTag(buffer: Buffer | NodeJS.TypedArray | DataView): this;
5969
+ setAAD(buffer: Buffer | NodeJS.TypedArray | DataView, options?: { plaintextLength: number }): this;
5963
5970
  }
5964
5971
 
5965
5972
  export function createSign(algorithm: string, options?: stream.WritableOptions): Signer;
@@ -6331,6 +6338,7 @@ declare module "stream" {
6331
6338
  declare module "util" {
6332
6339
  export interface InspectOptions extends NodeJS.InspectOptions { }
6333
6340
  export function format(format: any, ...param: any[]): string;
6341
+ export function formatWithOptions(inspectOptions: InspectOptions, format: string, ...param: any[]): string;
6334
6342
  /** @deprecated since v0.11.3 - use `console.error()` instead. */
6335
6343
  export function debug(string: string): void;
6336
6344
  /** @deprecated since v0.11.3 - use `console.error()` instead. */
@@ -6409,17 +6417,17 @@ declare module "util" {
6409
6417
 
6410
6418
  export function promisify<TCustom extends Function>(fn: CustomPromisify<TCustom>): TCustom;
6411
6419
  export function promisify<TResult>(fn: (callback: (err: Error | null, result: TResult) => void) => void): () => Promise<TResult>;
6412
- export function promisify(fn: (callback: (err: Error | null) => void) => void): () => Promise<void>;
6420
+ export function promisify(fn: (callback: (err?: Error | null) => void) => void): () => Promise<void>;
6413
6421
  export function promisify<T1, TResult>(fn: (arg1: T1, callback: (err: Error | null, result: TResult) => void) => void): (arg1: T1) => Promise<TResult>;
6414
- export function promisify<T1>(fn: (arg1: T1, callback: (err: Error | null) => void) => void): (arg1: T1) => Promise<void>;
6422
+ export function promisify<T1>(fn: (arg1: T1, callback: (err?: Error | null) => void) => void): (arg1: T1) => Promise<void>;
6415
6423
  export function promisify<T1, T2, TResult>(fn: (arg1: T1, arg2: T2, callback: (err: Error | null, result: TResult) => void) => void): (arg1: T1, arg2: T2) => Promise<TResult>;
6416
- export function promisify<T1, T2>(fn: (arg1: T1, arg2: T2, callback: (err: Error | null) => void) => void): (arg1: T1, arg2: T2) => Promise<void>;
6424
+ export function promisify<T1, T2>(fn: (arg1: T1, arg2: T2, callback: (err?: Error | null) => void) => void): (arg1: T1, arg2: T2) => Promise<void>;
6417
6425
  export function promisify<T1, T2, T3, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err: Error | null, result: TResult) => void) => void): (arg1: T1, arg2: T2, arg3: T3) => Promise<TResult>;
6418
- export function promisify<T1, T2, T3>(fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err: Error | null) => void) => void): (arg1: T1, arg2: T2, arg3: T3) => Promise<void>;
6426
+ export function promisify<T1, T2, T3>(fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err?: Error | null) => void) => void): (arg1: T1, arg2: T2, arg3: T3) => Promise<void>;
6419
6427
  export function promisify<T1, T2, T3, T4, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: Error | null, result: TResult) => void) => void): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<TResult>;
6420
- export function promisify<T1, T2, T3, T4>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: Error | null) => void) => void): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<void>;
6428
+ export function promisify<T1, T2, T3, T4>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err?: Error | null) => void) => void): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<void>;
6421
6429
  export function promisify<T1, T2, T3, T4, T5, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: Error | null, result: TResult) => void) => void): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<TResult>;
6422
- export function promisify<T1, T2, T3, T4, T5>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: Error | null) => void) => void): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<void>;
6430
+ export function promisify<T1, T2, T3, T4, T5>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err?: Error | null) => void) => void): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<void>;
6423
6431
  export function promisify(fn: Function): Function;
6424
6432
  export namespace promisify {
6425
6433
  const custom: symbol;