@types/node 8.10.50 → 8.10.54

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 v8/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/v8
9
9
 
10
10
  Additional Details
11
- * Last updated: Wed, 03 Jul 2019 16:41:59 GMT
11
+ * Last updated: Wed, 11 Sep 2019 05:46:31 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
 
node v8/base.d.ts CHANGED
@@ -492,7 +492,7 @@ declare namespace NodeJS {
492
492
  type ExitListener = (code: number) => void;
493
493
  type RejectionHandledListener = (promise: Promise<any>) => void;
494
494
  type UncaughtExceptionListener = (error: Error) => void;
495
- type UnhandledRejectionListener = (reason: any, promise: Promise<any>) => void;
495
+ type UnhandledRejectionListener = (reason: {} | null | undefined, promise: Promise<any>) => void;
496
496
  type WarningListener = (warning: Error) => void;
497
497
  type MessageListener = (message: any, sendHandle: any) => void;
498
498
  type SignalsListener = () => void;
@@ -4607,6 +4607,7 @@ declare module "fs" {
4607
4607
  mode?: number;
4608
4608
  autoClose?: boolean;
4609
4609
  start?: number;
4610
+ highWaterMark?: number;
4610
4611
  }): WriteStream;
4611
4612
 
4612
4613
  /**
@@ -5228,6 +5229,7 @@ declare module "tls" {
5228
5229
  }
5229
5230
 
5230
5231
  declare module "crypto" {
5232
+ import * as stream from "stream";
5231
5233
  export interface Certificate {
5232
5234
  exportChallenge(spkac: string | Buffer): Buffer;
5233
5235
  exportPublicKey(spkac: string | Buffer): Buffer;
@@ -5260,13 +5262,13 @@ declare module "crypto" {
5260
5262
  type HexBase64BinaryEncoding = "binary" | "base64" | "hex";
5261
5263
  type ECDHKeyFormat = "compressed" | "uncompressed" | "hybrid";
5262
5264
 
5263
- export interface Hash extends NodeJS.ReadWriteStream {
5265
+ export interface Hash extends stream.Transform {
5264
5266
  update(data: string | Buffer | DataView): Hash;
5265
5267
  update(data: string | Buffer | DataView, input_encoding: Utf8AsciiLatin1Encoding): Hash;
5266
5268
  digest(): Buffer;
5267
5269
  digest(encoding: HexBase64Latin1Encoding): string;
5268
5270
  }
5269
- export interface Hmac extends NodeJS.ReadWriteStream {
5271
+ export interface Hmac extends stream.Transform {
5270
5272
  update(data: string | Buffer | DataView): Hmac;
5271
5273
  update(data: string | Buffer | DataView, input_encoding: Utf8AsciiLatin1Encoding): Hmac;
5272
5274
  digest(): Buffer;
@@ -5274,7 +5276,7 @@ declare module "crypto" {
5274
5276
  }
5275
5277
  export function createCipher(algorithm: string, password: any): Cipher;
5276
5278
  export function createCipheriv(algorithm: string, key: any, iv: any): Cipher;
5277
- export interface Cipher extends NodeJS.ReadWriteStream {
5279
+ export interface Cipher extends stream.Transform {
5278
5280
  update(data: Buffer | DataView): Buffer;
5279
5281
  update(data: string, input_encoding: Utf8AsciiBinaryEncoding): Buffer;
5280
5282
  update(data: Buffer | DataView, input_encoding: any, output_encoding: HexBase64BinaryEncoding): string;
@@ -5287,7 +5289,7 @@ declare module "crypto" {
5287
5289
  }
5288
5290
  export function createDecipher(algorithm: string, password: any): Decipher;
5289
5291
  export function createDecipheriv(algorithm: string, key: any, iv: any): Decipher;
5290
- export interface Decipher extends NodeJS.ReadWriteStream {
5292
+ export interface Decipher extends stream.Transform {
5291
5293
  update(data: Buffer | DataView): Buffer;
5292
5294
  update(data: string, input_encoding: HexBase64BinaryEncoding): Buffer;
5293
5295
  update(data: Buffer | DataView, input_encoding: any, output_encoding: Utf8AsciiBinaryEncoding): string;
@@ -6790,7 +6792,7 @@ declare module "http2" {
6790
6792
  prependOnceListener(event: "aborted", listener: (hadError: boolean, code: number) => void): this;
6791
6793
  }
6792
6794
 
6793
- export class Http2ServerResponse extends events.EventEmitter {
6795
+ export class Http2ServerResponse extends stream.Stream {
6794
6796
  private constructor();
6795
6797
  addTrailers(trailers: OutgoingHttpHeaders): void;
6796
6798
  connection: net.Socket | tls.TLSSocket;
node v8/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "8.10.50",
3
+ "version": "8.10.54",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -141,6 +141,6 @@
141
141
  },
142
142
  "scripts": {},
143
143
  "dependencies": {},
144
- "typesPublisherContentHash": "9c6fe8ff7939096f1b8201aba0d970241adfb1cd79aab685388bcf4b97da59ff",
144
+ "typesPublisherContentHash": "fab8c0a9e7959815844678bc327b83c8c837d39953dcb1924c4a536ccf4b9c2b",
145
145
  "typeScriptVersion": "2.1"
146
146
  }