@types/node 6.0.87 → 6.0.88

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 v6/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://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v6
9
9
 
10
10
  Additional Details
11
- * Last updated: Wed, 16 Aug 2017 22:06:59 GMT
11
+ * Last updated: Thu, 24 Aug 2017 17:15:34 GMT
12
12
  * Dependencies: events, net, stream, child_process, tls, http, readline, crypto
13
13
  * Global values: Buffer, NodeJS, SlowBuffer, ___dirname, ___filename, clearImmediate, clearInterval, clearTimeout, console, exports, global, module, process, require, setImmediate, setInterval, setTimeout
14
14
 
node v6/index.d.ts CHANGED
@@ -836,7 +836,7 @@ declare module "cluster" {
836
836
  id: string;
837
837
  process: child.ChildProcess;
838
838
  suicide: boolean;
839
- send(message: any, sendHandle?: any): boolean;
839
+ send(message: any, sendHandle?: any, callback?: (error: Error) => void): boolean;
840
840
  kill(signal?: string): void;
841
841
  destroy(signal?: string): void;
842
842
  disconnect(): void;
@@ -855,7 +855,7 @@ declare module "cluster" {
855
855
  */
856
856
  addListener(event: string, listener: Function): this;
857
857
  addListener(event: "disconnect", listener: () => void): this;
858
- addListener(event: "error", listener: (code: number, signal: string) => void): this;
858
+ addListener(event: "error", listener: (error: Error) => void): this;
859
859
  addListener(event: "exit", listener: (code: number, signal: string) => void): this;
860
860
  addListener(event: "listening", listener: (address: Address) => void): this;
861
861
  addListener(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
@@ -863,7 +863,7 @@ declare module "cluster" {
863
863
 
864
864
  emit(event: string | symbol, ...args: any[]): boolean;
865
865
  emit(event: "disconnect", listener: () => void): boolean
866
- emit(event: "error", listener: (code: number, signal: string) => void): boolean
866
+ emit(event: "error", listener: (error: Error) => void): boolean
867
867
  emit(event: "exit", listener: (code: number, signal: string) => void): boolean
868
868
  emit(event: "listening", listener: (address: Address) => void): boolean
869
869
  emit(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): boolean
@@ -871,7 +871,7 @@ declare module "cluster" {
871
871
 
872
872
  on(event: string, listener: Function): this;
873
873
  on(event: "disconnect", listener: () => void): this;
874
- on(event: "error", listener: (code: number, signal: string) => void): this;
874
+ on(event: "error", listener: (error: Error) => void): this;
875
875
  on(event: "exit", listener: (code: number, signal: string) => void): this;
876
876
  on(event: "listening", listener: (address: Address) => void): this;
877
877
  on(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
@@ -879,7 +879,7 @@ declare module "cluster" {
879
879
 
880
880
  once(event: string, listener: Function): this;
881
881
  once(event: "disconnect", listener: () => void): this;
882
- once(event: "error", listener: (code: number, signal: string) => void): this;
882
+ once(event: "error", listener: (error: Error) => void): this;
883
883
  once(event: "exit", listener: (code: number, signal: string) => void): this;
884
884
  once(event: "listening", listener: (address: Address) => void): this;
885
885
  once(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
@@ -887,7 +887,7 @@ declare module "cluster" {
887
887
 
888
888
  prependListener(event: string, listener: Function): this;
889
889
  prependListener(event: "disconnect", listener: () => void): this;
890
- prependListener(event: "error", listener: (code: number, signal: string) => void): this;
890
+ prependListener(event: "error", listener: (error: Error) => void): this;
891
891
  prependListener(event: "exit", listener: (code: number, signal: string) => void): this;
892
892
  prependListener(event: "listening", listener: (address: Address) => void): this;
893
893
  prependListener(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
@@ -895,7 +895,7 @@ declare module "cluster" {
895
895
 
896
896
  prependOnceListener(event: string, listener: Function): this;
897
897
  prependOnceListener(event: "disconnect", listener: () => void): this;
898
- prependOnceListener(event: "error", listener: (code: number, signal: string) => void): this;
898
+ prependOnceListener(event: "error", listener: (error: Error) => void): this;
899
899
  prependOnceListener(event: "exit", listener: (code: number, signal: string) => void): this;
900
900
  prependOnceListener(event: "listening", listener: (address: Address) => void): this;
901
901
  prependOnceListener(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
@@ -1089,18 +1089,25 @@ declare module "zlib" {
1089
1089
  export function createUnzip(options?: ZlibOptions): Unzip;
1090
1090
 
1091
1091
  export function deflate(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void;
1092
+ export function deflate(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
1092
1093
  export function deflateSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
1093
1094
  export function deflateRaw(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void;
1095
+ export function deflateRaw(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
1094
1096
  export function deflateRawSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
1095
1097
  export function gzip(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void;
1098
+ export function gzip(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
1096
1099
  export function gzipSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
1097
1100
  export function gunzip(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void;
1101
+ export function gunzip(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
1098
1102
  export function gunzipSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
1099
1103
  export function inflate(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void;
1104
+ export function inflate(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
1100
1105
  export function inflateSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
1101
1106
  export function inflateRaw(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void;
1107
+ export function inflateRaw(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
1102
1108
  export function inflateRawSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
1103
1109
  export function unzip(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void;
1110
+ export function unzip(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
1104
1111
  export function unzipSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
1105
1112
 
1106
1113
  // Constants
@@ -1576,6 +1583,7 @@ declare module "child_process" {
1576
1583
  stdout: stream.Readable;
1577
1584
  stderr: stream.Readable;
1578
1585
  stdio: [stream.Writable, stream.Readable, stream.Readable];
1586
+ killed: boolean;
1579
1587
  pid: number;
1580
1588
  kill(signal?: string): void;
1581
1589
  send(message: any, sendHandle?: any): boolean;
@@ -2270,23 +2278,23 @@ declare module "fs" {
2270
2278
  */
2271
2279
  addListener(event: string, listener: Function): this;
2272
2280
  addListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
2273
- addListener(event: "error", listener: (code: number, signal: string) => void): this;
2281
+ addListener(event: "error", listener: (error: Error) => void): this;
2274
2282
 
2275
2283
  on(event: string, listener: Function): this;
2276
2284
  on(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
2277
- on(event: "error", listener: (code: number, signal: string) => void): this;
2285
+ on(event: "error", listener: (error: Error) => void): this;
2278
2286
 
2279
2287
  once(event: string, listener: Function): this;
2280
2288
  once(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
2281
- once(event: "error", listener: (code: number, signal: string) => void): this;
2289
+ once(event: "error", listener: (error: Error) => void): this;
2282
2290
 
2283
2291
  prependListener(event: string, listener: Function): this;
2284
2292
  prependListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
2285
- prependListener(event: "error", listener: (code: number, signal: string) => void): this;
2293
+ prependListener(event: "error", listener: (error: Error) => void): this;
2286
2294
 
2287
2295
  prependOnceListener(event: string, listener: Function): this;
2288
2296
  prependOnceListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
2289
- prependOnceListener(event: "error", listener: (code: number, signal: string) => void): this;
2297
+ prependOnceListener(event: "error", listener: (error: Error) => void): this;
2290
2298
  }
2291
2299
 
2292
2300
  export interface ReadStream extends stream.Readable {
node v6/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "6.0.87",
3
+ "version": "6.0.88",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -24,6 +24,6 @@
24
24
  },
25
25
  "scripts": {},
26
26
  "dependencies": {},
27
- "typesPublisherContentHash": "2bb27a652843cdb5a2bc4fa7c403d6d27c3e2b8608304783c3086402d6fcac83",
27
+ "typesPublisherContentHash": "e6510e23bed5fe0154bf8df6b3a7b2e215c915249603eda22a0c0e59f3ff551c",
28
28
  "typeScriptVersion": "2.0"
29
29
  }