@types/node 4.2.16 → 4.2.20

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 v4/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/v4
9
9
 
10
10
  Additional Details
11
- * Last updated: Sat, 22 Jul 2017 19:03:51 GMT
11
+ * Last updated: Thu, 24 Aug 2017 17:15:34 GMT
12
12
  * Dependencies: events, net, stream, child_process, tls, http, crypto
13
13
  * Global values: Buffer, SlowBuffer, ___dirname, ___filename, clearImmediate, clearInterval, clearTimeout, console, exports, global, module, process, require, setImmediate, setInterval, setTimeout
14
14
 
node v4/index.d.ts CHANGED
@@ -745,7 +745,7 @@ declare module "cluster" {
745
745
  id: string;
746
746
  process: child.ChildProcess;
747
747
  suicide: boolean;
748
- send(message: any, sendHandle?: any): void;
748
+ send(message: any, sendHandle?: any, callback?: (error: Error) => void): void;
749
749
  kill(signal?: string): void;
750
750
  destroy(signal?: string): void;
751
751
  disconnect(): void;
@@ -802,20 +802,27 @@ declare module "zlib" {
802
802
  export function createInflateRaw(options?: ZlibOptions): InflateRaw;
803
803
  export function createUnzip(options?: ZlibOptions): Unzip;
804
804
 
805
- export function deflate(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
806
- export function deflateSync(buf: Buffer, options?: ZlibOptions): any;
807
- export function deflateRaw(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
808
- export function deflateRawSync(buf: Buffer, options?: ZlibOptions): any;
809
- export function gzip(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
810
- export function gzipSync(buf: Buffer, options?: ZlibOptions): any;
811
- export function gunzip(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
812
- export function gunzipSync(buf: Buffer, options?: ZlibOptions): any;
813
- export function inflate(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
814
- export function inflateSync(buf: Buffer, options?: ZlibOptions): any;
815
- export function inflateRaw(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
816
- export function inflateRawSync(buf: Buffer, options?: ZlibOptions): any;
817
- export function unzip(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
818
- export function unzipSync(buf: Buffer, options?: ZlibOptions): any;
805
+ export function deflate(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void;
806
+ export function deflate(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
807
+ export function deflateSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
808
+ export function deflateRaw(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void;
809
+ export function deflateRaw(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
810
+ export function deflateRawSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
811
+ export function gzip(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void;
812
+ export function gzip(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
813
+ export function gzipSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
814
+ export function gunzip(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void;
815
+ export function gunzip(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
816
+ export function gunzipSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
817
+ export function inflate(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void;
818
+ export function inflate(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
819
+ export function inflateSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
820
+ export function inflateRaw(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void;
821
+ export function inflateRaw(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
822
+ export function inflateRawSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
823
+ export function unzip(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void;
824
+ export function unzip(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
825
+ export function unzipSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
819
826
 
820
827
  // Constants
821
828
  export var Z_NO_FLUSH: number;
@@ -1062,6 +1069,7 @@ declare module "child_process" {
1062
1069
  stdout: stream.Readable;
1063
1070
  stderr: stream.Readable;
1064
1071
  stdio: [stream.Writable, stream.Readable, stream.Readable];
1072
+ killed: boolean;
1065
1073
  pid: number;
1066
1074
  kill(signal?: string): void;
1067
1075
  send(message: any, sendHandle?: any): void;
@@ -2272,6 +2280,7 @@ declare module "util" {
2272
2280
  export function isError(object: any): boolean;
2273
2281
  export function inherits(constructor: any, superConstructor: any): void;
2274
2282
  export function debuglog(key:string): (msg:string,...param: any[])=>void;
2283
+ export function deprecate<T extends Function>(fn: T, message: string): T;
2275
2284
  }
2276
2285
 
2277
2286
  declare module "assert" {
node v4/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "4.2.16",
3
+ "version": "4.2.20",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -20,7 +20,6 @@
20
20
  },
21
21
  "scripts": {},
22
22
  "dependencies": {},
23
- "peerDependencies": {},
24
- "typesPublisherContentHash": "7b422058ce4682ded1f264f7cc168bce944e920572e93ddaea0e701fb2fedcba",
23
+ "typesPublisherContentHash": "c5013424cf5ea61938b8e859b034463c6409aea68f39da29bd8faa4061805449",
25
24
  "typeScriptVersion": "2.0"
26
25
  }