@types/node 7.0.39 → 7.0.43

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 v7/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/v7
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, readline, crypto
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 v7/index.d.ts CHANGED
@@ -382,10 +382,19 @@ declare namespace NodeJS {
382
382
  isTTY?: true;
383
383
  }
384
384
 
385
+ export interface WriteStream extends Socket {
386
+ columns?: number;
387
+ rows?: number;
388
+ }
389
+ export interface ReadStream extends Socket {
390
+ isRaw?: boolean;
391
+ setRawMode?(mode: boolean): void;
392
+ }
393
+
385
394
  export interface Process extends EventEmitter {
386
- stdout: Socket;
387
- stderr: Socket;
388
- stdin: Socket;
395
+ stdout: WriteStream;
396
+ stderr: WriteStream;
397
+ stdin: ReadStream;
389
398
  openStdin(): Socket;
390
399
  argv: string[];
391
400
  argv0: string;
@@ -846,7 +855,7 @@ declare module "cluster" {
846
855
  id: string;
847
856
  process: child.ChildProcess;
848
857
  suicide: boolean;
849
- send(message: any, sendHandle?: any): boolean;
858
+ send(message: any, sendHandle?: any, callback?: (error: Error) => void): boolean;
850
859
  kill(signal?: string): void;
851
860
  destroy(signal?: string): void;
852
861
  disconnect(): void;
@@ -865,7 +874,7 @@ declare module "cluster" {
865
874
  */
866
875
  addListener(event: string, listener: Function): this;
867
876
  addListener(event: "disconnect", listener: () => void): this;
868
- addListener(event: "error", listener: (code: number, signal: string) => void): this;
877
+ addListener(event: "error", listener: (error: Error) => void): this;
869
878
  addListener(event: "exit", listener: (code: number, signal: string) => void): this;
870
879
  addListener(event: "listening", listener: (address: Address) => void): this;
871
880
  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.
@@ -873,7 +882,7 @@ declare module "cluster" {
873
882
 
874
883
  emit(event: string | symbol, ...args: any[]): boolean;
875
884
  emit(event: "disconnect", listener: () => void): boolean
876
- emit(event: "error", listener: (code: number, signal: string) => void): boolean
885
+ emit(event: "error", listener: (error: Error) => void): boolean
877
886
  emit(event: "exit", listener: (code: number, signal: string) => void): boolean
878
887
  emit(event: "listening", listener: (address: Address) => void): boolean
879
888
  emit(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): boolean
@@ -881,7 +890,7 @@ declare module "cluster" {
881
890
 
882
891
  on(event: string, listener: Function): this;
883
892
  on(event: "disconnect", listener: () => void): this;
884
- on(event: "error", listener: (code: number, signal: string) => void): this;
893
+ on(event: "error", listener: (error: Error) => void): this;
885
894
  on(event: "exit", listener: (code: number, signal: string) => void): this;
886
895
  on(event: "listening", listener: (address: Address) => void): this;
887
896
  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.
@@ -889,7 +898,7 @@ declare module "cluster" {
889
898
 
890
899
  once(event: string, listener: Function): this;
891
900
  once(event: "disconnect", listener: () => void): this;
892
- once(event: "error", listener: (code: number, signal: string) => void): this;
901
+ once(event: "error", listener: (error: Error) => void): this;
893
902
  once(event: "exit", listener: (code: number, signal: string) => void): this;
894
903
  once(event: "listening", listener: (address: Address) => void): this;
895
904
  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.
@@ -897,7 +906,7 @@ declare module "cluster" {
897
906
 
898
907
  prependListener(event: string, listener: Function): this;
899
908
  prependListener(event: "disconnect", listener: () => void): this;
900
- prependListener(event: "error", listener: (code: number, signal: string) => void): this;
909
+ prependListener(event: "error", listener: (error: Error) => void): this;
901
910
  prependListener(event: "exit", listener: (code: number, signal: string) => void): this;
902
911
  prependListener(event: "listening", listener: (address: Address) => void): this;
903
912
  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.
@@ -905,7 +914,7 @@ declare module "cluster" {
905
914
 
906
915
  prependOnceListener(event: string, listener: Function): this;
907
916
  prependOnceListener(event: "disconnect", listener: () => void): this;
908
- prependOnceListener(event: "error", listener: (code: number, signal: string) => void): this;
917
+ prependOnceListener(event: "error", listener: (error: Error) => void): this;
909
918
  prependOnceListener(event: "exit", listener: (code: number, signal: string) => void): this;
910
919
  prependOnceListener(event: "listening", listener: (address: Address) => void): this;
911
920
  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.
@@ -1114,21 +1123,21 @@ declare module "zlib" {
1114
1123
  export function deflateRaw(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void;
1115
1124
  export function deflateRaw(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
1116
1125
  export function deflateRawSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
1117
- export function gzip(buf: Buffer, callback: (error: Error, result: Buffer) => void): void;
1118
- export function gzip(buf: Buffer, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
1119
- export function gzipSync(buf: Buffer, options?: ZlibOptions): Buffer;
1120
- export function gunzip(buf: Buffer, callback: (error: Error, result: Buffer) => void): void;
1121
- export function gunzip(buf: Buffer, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
1122
- export function gunzipSync(buf: Buffer, options?: ZlibOptions): Buffer;
1123
- export function inflate(buf: Buffer, callback: (error: Error, result: Buffer) => void): void;
1124
- export function inflate(buf: Buffer, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
1125
- export function inflateSync(buf: Buffer, options?: ZlibOptions): Buffer;
1126
- export function inflateRaw(buf: Buffer, callback: (error: Error, result: Buffer) => void): void;
1127
- export function inflateRaw(buf: Buffer, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
1128
- export function inflateRawSync(buf: Buffer, options?: ZlibOptions): Buffer;
1129
- export function unzip(buf: Buffer, callback: (error: Error, result: Buffer) => void): void;
1130
- export function unzip(buf: Buffer, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
1131
- export function unzipSync(buf: Buffer, options?: ZlibOptions): Buffer;
1126
+ export function gzip(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void;
1127
+ export function gzip(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
1128
+ export function gzipSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
1129
+ export function gunzip(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void;
1130
+ export function gunzip(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
1131
+ export function gunzipSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
1132
+ export function inflate(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void;
1133
+ export function inflate(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
1134
+ export function inflateSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
1135
+ export function inflateRaw(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void;
1136
+ export function inflateRaw(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
1137
+ export function inflateRawSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
1138
+ export function unzip(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void;
1139
+ export function unzip(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
1140
+ export function unzipSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
1132
1141
 
1133
1142
  export namespace constants {
1134
1143
  // Allowed flush values.
@@ -1641,6 +1650,7 @@ declare module "child_process" {
1641
1650
  stdout: stream.Readable;
1642
1651
  stderr: stream.Readable;
1643
1652
  stdio: [stream.Writable, stream.Readable, stream.Readable];
1653
+ killed: boolean;
1644
1654
  pid: number;
1645
1655
  kill(signal?: string): void;
1646
1656
  send(message: any, sendHandle?: any): boolean;
@@ -2403,23 +2413,23 @@ declare module "fs" {
2403
2413
  */
2404
2414
  addListener(event: string, listener: Function): this;
2405
2415
  addListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
2406
- addListener(event: "error", listener: (code: number, signal: string) => void): this;
2416
+ addListener(event: "error", listener: (error: Error) => void): this;
2407
2417
 
2408
2418
  on(event: string, listener: Function): this;
2409
2419
  on(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
2410
- on(event: "error", listener: (code: number, signal: string) => void): this;
2420
+ on(event: "error", listener: (error: Error) => void): this;
2411
2421
 
2412
2422
  once(event: string, listener: Function): this;
2413
2423
  once(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
2414
- once(event: "error", listener: (code: number, signal: string) => void): this;
2424
+ once(event: "error", listener: (error: Error) => void): this;
2415
2425
 
2416
2426
  prependListener(event: string, listener: Function): this;
2417
2427
  prependListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
2418
- prependListener(event: "error", listener: (code: number, signal: string) => void): this;
2428
+ prependListener(event: "error", listener: (error: Error) => void): this;
2419
2429
 
2420
2430
  prependOnceListener(event: string, listener: Function): this;
2421
2431
  prependOnceListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
2422
- prependOnceListener(event: "error", listener: (code: number, signal: string) => void): this;
2432
+ prependOnceListener(event: "error", listener: (error: Error) => void): this;
2423
2433
  }
2424
2434
 
2425
2435
  export interface ReadStream extends stream.Readable {
@@ -3834,7 +3844,7 @@ declare module "util" {
3834
3844
  export function isString(object: any): object is string;
3835
3845
  export function isSymbol(object: any): object is symbol;
3836
3846
  export function isUndefined(object: any): object is undefined;
3837
- export function deprecate(fn: Function, message: string): Function;
3847
+ export function deprecate<T extends Function>(fn: T, message: string): T;
3838
3848
  }
3839
3849
 
3840
3850
  declare module "assert" {
node v7/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "7.0.39",
3
+ "version": "7.0.43",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -40,7 +40,6 @@
40
40
  },
41
41
  "scripts": {},
42
42
  "dependencies": {},
43
- "peerDependencies": {},
44
- "typesPublisherContentHash": "673b32a5a733cc15a3b6e86c53298f2d37c27ffba68d1223b84268cffb545765",
43
+ "typesPublisherContentHash": "93dfb67950b1163d8d77863d7060c908a0a543857fc3d0e983f242468598251d",
45
44
  "typeScriptVersion": "2.0"
46
45
  }