@types/node 6.0.84 → 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: Mon, 17 Jul 2017 19:27:11 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,19 +1089,26 @@ 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
- export function gzip(buf: Buffer, callback: (error: Error, result: Buffer) => void): void;
1096
- export function gzipSync(buf: Buffer, options?: ZlibOptions): Buffer;
1097
- export function gunzip(buf: Buffer, callback: (error: Error, result: Buffer) => void): void;
1098
- export function gunzipSync(buf: Buffer, options?: ZlibOptions): Buffer;
1099
- export function inflate(buf: Buffer, callback: (error: Error, result: Buffer) => void): void;
1100
- export function inflateSync(buf: Buffer, options?: ZlibOptions): Buffer;
1101
- export function inflateRaw(buf: Buffer, callback: (error: Error, result: Buffer) => void): void;
1102
- export function inflateRawSync(buf: Buffer, options?: ZlibOptions): Buffer;
1103
- export function unzip(buf: Buffer, callback: (error: Error, result: Buffer) => void): void;
1104
- export function unzipSync(buf: Buffer, options?: ZlibOptions): Buffer;
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;
1099
+ export function gzipSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
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;
1102
+ export function gunzipSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
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;
1105
+ export function inflateSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
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;
1108
+ export function inflateRawSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
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;
1111
+ export function unzipSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
1105
1112
 
1106
1113
  // Constants
1107
1114
  export var Z_NO_FLUSH: number;
@@ -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;
@@ -2057,7 +2065,7 @@ declare module "net" {
2057
2065
  }
2058
2066
 
2059
2067
  export var Socket: {
2060
- new (options?: { fd?: string; type?: string; allowHalfOpen?: boolean; }): Socket;
2068
+ new (options?: { fd?: number; allowHalfOpen?: boolean; readable?: boolean; writable?: boolean; }): Socket;
2061
2069
  };
2062
2070
 
2063
2071
  export interface ListenOptions {
@@ -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 {
@@ -3681,7 +3689,7 @@ declare module "util" {
3681
3689
  export function isString(object: any): boolean;
3682
3690
  export function isSymbol(object: any): boolean;
3683
3691
  export function isUndefined(object: any): boolean;
3684
- export function deprecate(fn: Function, message: string): Function;
3692
+ export function deprecate<T extends Function>(fn: T, message: string): T;
3685
3693
  }
3686
3694
 
3687
3695
  declare module "assert" {
node v6/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "6.0.84",
3
+ "version": "6.0.88",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -24,7 +24,6 @@
24
24
  },
25
25
  "scripts": {},
26
26
  "dependencies": {},
27
- "peerDependencies": {},
28
- "typesPublisherContentHash": "50d80cf474813331eb4231587ea38c54b5e0add620ee377b2a7215a86e427077",
27
+ "typesPublisherContentHash": "e6510e23bed5fe0154bf8df6b3a7b2e215c915249603eda22a0c0e59f3ff551c",
29
28
  "typeScriptVersion": "2.0"
30
29
  }