@types/node 6.0.86 → 6.0.90

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,9 +8,9 @@ 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, 14 Aug 2017 19:47:57 GMT
11
+ * Last updated: Wed, 18 Oct 2017 20:00:02 GMT
12
12
  * Dependencies: events, net, stream, child_process, tls, http, readline, crypto
13
- * Global values: Buffer, NodeJS, SlowBuffer, ___dirname, ___filename, clearImmediate, clearInterval, clearTimeout, console, exports, global, module, process, require, setImmediate, setInterval, setTimeout
13
+ * Global values: Buffer, NodeJS, SlowBuffer, __dirname, __filename, clearImmediate, clearInterval, clearTimeout, console, exports, global, module, process, require, setImmediate, setInterval, setTimeout
14
14
 
15
15
  # Credits
16
- These definitions were written by Microsoft TypeScript <http://typescriptlang.org>, DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>, Wilco Bakker <https://github.com/WilcoBakker>.
16
+ These definitions were written by Microsoft TypeScript <http://typescriptlang.org>, DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>, Wilco Bakker <https://github.com/WilcoBakker>, Thomas Bouldin <https://github.com/inlined>.
node v6/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  // Type definitions for Node.js v6.x
2
2
  // Project: http://nodejs.org/
3
- // Definitions by: Microsoft TypeScript <http://typescriptlang.org>, DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>, Wilco Bakker <https://github.com/WilcoBakker>
3
+ // Definitions by: Microsoft TypeScript <http://typescriptlang.org>, DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>, Wilco Bakker <https://github.com/WilcoBakker>, Thomas Bouldin <https://github.com/inlined>
4
4
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
5
 
6
6
  /************************************************
@@ -798,7 +798,7 @@ declare module "http" {
798
798
  };
799
799
  export function createServer(requestListener?: (request: IncomingMessage, response: ServerResponse) => void): Server;
800
800
  export function createClient(port?: number, host?: string): any;
801
- export function request(options: RequestOptions, callback?: (res: IncomingMessage) => void): ClientRequest;
801
+ export function request(options: RequestOptions | string, callback?: (res: IncomingMessage) => void): ClientRequest;
802
802
  export function get(options: any, callback?: (res: IncomingMessage) => void): ClientRequest;
803
803
  export var globalAgent: Agent;
804
804
  }
@@ -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;
@@ -1346,8 +1353,8 @@ declare module "https" {
1346
1353
  };
1347
1354
  export interface Server extends tls.Server { }
1348
1355
  export function createServer(options: ServerOptions, requestListener?: Function): Server;
1349
- export function request(options: RequestOptions, callback?: (res: http.IncomingMessage) => void): http.ClientRequest;
1350
- export function get(options: RequestOptions, callback?: (res: http.IncomingMessage) => void): http.ClientRequest;
1356
+ export function request(options: RequestOptions | string, callback?: (res: http.IncomingMessage) => void): http.ClientRequest;
1357
+ export function get(options: RequestOptions | string, callback?: (res: http.IncomingMessage) => void): http.ClientRequest;
1351
1358
  export var globalAgent: Agent;
1352
1359
  }
1353
1360
 
@@ -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;
@@ -1794,36 +1802,28 @@ declare module "child_process" {
1794
1802
  }
1795
1803
 
1796
1804
  declare module "url" {
1797
- export interface Url {
1798
- href?: string;
1799
- protocol?: string;
1800
- auth?: string;
1801
- hostname?: string;
1802
- port?: string;
1803
- host?: string;
1804
- pathname?: string;
1805
- search?: string;
1806
- query?: string | any;
1807
- slashes?: boolean;
1808
- hash?: string;
1809
- path?: string;
1810
- }
1811
-
1812
1805
  export interface UrlObject {
1806
+ href?: string;
1813
1807
  protocol?: string;
1814
1808
  slashes?: boolean;
1815
- auth?: string;
1816
1809
  host?: string;
1810
+ auth?: string;
1817
1811
  hostname?: string;
1818
1812
  port?: string | number;
1819
1813
  pathname?: string;
1820
1814
  search?: string;
1821
- query?: { [key: string]: any; };
1815
+ path?: string;
1816
+ query?: string | { [key: string]: any; };
1822
1817
  hash?: string;
1823
1818
  }
1824
1819
 
1820
+ export interface Url extends UrlObject {
1821
+ port?: string;
1822
+ query?: any;
1823
+ }
1824
+
1825
1825
  export function parse(urlStr: string, parseQueryString?: boolean, slashesDenoteHost?: boolean): Url;
1826
- export function format(urlObject: UrlObject): string;
1826
+ export function format(urlObject: UrlObject | string): string;
1827
1827
  export function resolve(from: string, to: string): string;
1828
1828
  }
1829
1829
 
@@ -2270,23 +2270,23 @@ declare module "fs" {
2270
2270
  */
2271
2271
  addListener(event: string, listener: Function): this;
2272
2272
  addListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
2273
- addListener(event: "error", listener: (code: number, signal: string) => void): this;
2273
+ addListener(event: "error", listener: (error: Error) => void): this;
2274
2274
 
2275
2275
  on(event: string, listener: Function): this;
2276
2276
  on(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
2277
- on(event: "error", listener: (code: number, signal: string) => void): this;
2277
+ on(event: "error", listener: (error: Error) => void): this;
2278
2278
 
2279
2279
  once(event: string, listener: Function): this;
2280
2280
  once(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
2281
- once(event: "error", listener: (code: number, signal: string) => void): this;
2281
+ once(event: "error", listener: (error: Error) => void): this;
2282
2282
 
2283
2283
  prependListener(event: string, listener: Function): this;
2284
2284
  prependListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
2285
- prependListener(event: "error", listener: (code: number, signal: string) => void): this;
2285
+ prependListener(event: "error", listener: (error: Error) => void): this;
2286
2286
 
2287
2287
  prependOnceListener(event: string, listener: Function): this;
2288
2288
  prependOnceListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
2289
- prependOnceListener(event: "error", listener: (code: number, signal: string) => void): this;
2289
+ prependOnceListener(event: "error", listener: (error: Error) => void): this;
2290
2290
  }
2291
2291
 
2292
2292
  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.86",
3
+ "version": "6.0.90",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -14,7 +14,13 @@
14
14
  },
15
15
  {
16
16
  "name": "Wilco Bakker",
17
- "url": "https://github.com/WilcoBakker"
17
+ "url": "https://github.com/WilcoBakker",
18
+ "githubUsername": "WilcoBakker"
19
+ },
20
+ {
21
+ "name": "Thomas Bouldin",
22
+ "url": "https://github.com/inlined",
23
+ "githubUsername": "inlined"
18
24
  }
19
25
  ],
20
26
  "main": "",
@@ -24,7 +30,6 @@
24
30
  },
25
31
  "scripts": {},
26
32
  "dependencies": {},
27
- "peerDependencies": {},
28
- "typesPublisherContentHash": "04e84802b60fc43ac829bbe2c1703e3170981cd41b51df9333c0388066d3ecde",
33
+ "typesPublisherContentHash": "e8ae2282ccc661f3902bdad0dd440e791b60026633e4ea9ed6eba1c8883696aa",
29
34
  "typeScriptVersion": "2.0"
30
35
  }