@types/node 10.14.13 → 10.14.17

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/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: Wed, 17 Jul 2019 18:37:30 GMT
11
+ * Last updated: Fri, 30 Aug 2019 05:19:14 GMT
12
12
  * Dependencies: none
13
13
  * Global values: Buffer, NodeJS, Symbol, __dirname, __filename, clearImmediate, clearInterval, clearTimeout, console, exports, global, module, process, require, setImmediate, setInterval, setTimeout
14
14
 
node v10/crypto.d.ts CHANGED
@@ -34,13 +34,13 @@ declare module "crypto" {
34
34
  type HexBase64BinaryEncoding = "binary" | "base64" | "hex";
35
35
  type ECDHKeyFormat = "compressed" | "uncompressed" | "hybrid";
36
36
 
37
- interface Hash extends NodeJS.ReadWriteStream {
37
+ interface Hash extends stream.Transform {
38
38
  update(data: string | Buffer | NodeJS.TypedArray | DataView): Hash;
39
39
  update(data: string, input_encoding: Utf8AsciiLatin1Encoding): Hash;
40
40
  digest(): Buffer;
41
41
  digest(encoding: HexBase64Latin1Encoding): string;
42
42
  }
43
- interface Hmac extends NodeJS.ReadWriteStream {
43
+ interface Hmac extends stream.Transform {
44
44
  update(data: string | Buffer | NodeJS.TypedArray | DataView): Hmac;
45
45
  update(data: string, input_encoding: Utf8AsciiLatin1Encoding): Hmac;
46
46
  digest(): Buffer;
@@ -65,7 +65,7 @@ declare module "crypto" {
65
65
  function createCipheriv(algorithm: CipherGCMTypes, key: string | Buffer | NodeJS.TypedArray | DataView, iv: string | Buffer | NodeJS.TypedArray | DataView, options?: CipherGCMOptions): CipherGCM;
66
66
  function createCipheriv(algorithm: string, key: string | Buffer | NodeJS.TypedArray | DataView, iv: string | Buffer | NodeJS.TypedArray | DataView, options?: stream.TransformOptions): Cipher;
67
67
 
68
- interface Cipher extends NodeJS.ReadWriteStream {
68
+ interface Cipher extends stream.Transform {
69
69
  update(data: string | Buffer | NodeJS.TypedArray | DataView): Buffer;
70
70
  update(data: string, input_encoding: Utf8AsciiBinaryEncoding): Buffer;
71
71
  update(data: Buffer | NodeJS.TypedArray | DataView, output_encoding: HexBase64BinaryEncoding): string;
@@ -107,7 +107,7 @@ declare module "crypto" {
107
107
  ): DecipherGCM;
108
108
  function createDecipheriv(algorithm: string, key: string | Buffer | NodeJS.TypedArray | DataView, iv: string | Buffer | NodeJS.TypedArray | DataView, options?: stream.TransformOptions): Decipher;
109
109
 
110
- interface Decipher extends NodeJS.ReadWriteStream {
110
+ interface Decipher extends stream.Transform {
111
111
  update(data: Buffer | NodeJS.TypedArray | DataView): Buffer;
112
112
  update(data: string, input_encoding: HexBase64BinaryEncoding): Buffer;
113
113
  update(data: Buffer | NodeJS.TypedArray | DataView, input_encoding: any, output_encoding: Utf8AsciiBinaryEncoding): string;
@@ -258,8 +258,8 @@ declare module "crypto" {
258
258
 
259
259
  interface BasePrivateKeyEncodingOptions<T extends KeyFormat> {
260
260
  format: T;
261
- cipher: string;
262
- passphrase: string;
261
+ cipher?: string;
262
+ passphrase?: string;
263
263
  }
264
264
 
265
265
  interface RSAKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
node v10/globals.d.ts CHANGED
@@ -656,7 +656,7 @@ declare namespace NodeJS {
656
656
  type ExitListener = (code: number) => void;
657
657
  type RejectionHandledListener = (promise: Promise<any>) => void;
658
658
  type UncaughtExceptionListener = (error: Error) => void;
659
- type UnhandledRejectionListener = (reason: any, promise: Promise<any>) => void;
659
+ type UnhandledRejectionListener = (reason: {} | null | undefined, promise: Promise<any>) => void;
660
660
  type WarningListener = (warning: Error) => void;
661
661
  type MessageListener = (message: any, sendHandle: any) => void;
662
662
  type SignalsListener = (signal: Signals) => void;
node v10/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "10.14.13",
3
+ "version": "10.14.17",
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": "faced4dc1125571bcc63ad97f216063410ff94b60aa9c46d3df1c7266a236ad4",
199
+ "typesPublisherContentHash": "d3e95553355dfc82d32ed68791ee688eeb3df00775159bb930355642147587b1",
200
200
  "typeScriptVersion": "2.0"
201
201
  }
node v10/tty.d.ts CHANGED
@@ -3,11 +3,13 @@ declare module "tty" {
3
3
 
4
4
  function isatty(fd: number): boolean;
5
5
  class ReadStream extends net.Socket {
6
+ constructor(fd: number, options?: net.SocketConstructorOpts);
6
7
  isRaw: boolean;
7
8
  setRawMode(mode: boolean): void;
8
9
  isTTY: boolean;
9
10
  }
10
11
  class WriteStream extends net.Socket {
12
+ constructor(fd: number);
11
13
  columns: number;
12
14
  rows: number;
13
15
  isTTY: boolean;