@types/node 8.0.25 → 8.0.26

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.
Files changed (3) hide show
  1. node/README.md +1 -1
  2. node/index.d.ts +34 -35
  3. node/package.json +26 -14
node/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
9
9
 
10
10
  Additional Details
11
- * Last updated: Thu, 24 Aug 2017 17:15:34 GMT
11
+ * Last updated: Tue, 29 Aug 2017 21:31:37 GMT
12
12
  * Dependencies: events, net, stream, url, child_process, tls, http, readline, crypto, fs
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/index.d.ts CHANGED
@@ -1273,26 +1273,26 @@ declare module "zlib" {
1273
1273
  export function createInflateRaw(options?: ZlibOptions): InflateRaw;
1274
1274
  export function createUnzip(options?: ZlibOptions): Unzip;
1275
1275
 
1276
- export function deflate(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void;
1277
- export function deflate(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
1276
+ export function deflate(buf: Buffer | string, callback: (error: Error | null, result: Buffer) => void): void;
1277
+ export function deflate(buf: Buffer | string, options: ZlibOptions, callback: (error: Error | null, result: Buffer) => void): void;
1278
1278
  export function deflateSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
1279
- export function deflateRaw(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void;
1280
- export function deflateRaw(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
1279
+ export function deflateRaw(buf: Buffer | string, callback: (error: Error | null, result: Buffer) => void): void;
1280
+ export function deflateRaw(buf: Buffer | string, options: ZlibOptions, callback: (error: Error | null, result: Buffer) => void): void;
1281
1281
  export function deflateRawSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
1282
- export function gzip(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void;
1283
- export function gzip(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
1282
+ export function gzip(buf: Buffer | string, callback: (error: Error | null, result: Buffer) => void): void;
1283
+ export function gzip(buf: Buffer | string, options: ZlibOptions, callback: (error: Error | null, result: Buffer) => void): void;
1284
1284
  export function gzipSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
1285
- export function gunzip(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void;
1286
- export function gunzip(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
1285
+ export function gunzip(buf: Buffer | string, callback: (error: Error | null, result: Buffer) => void): void;
1286
+ export function gunzip(buf: Buffer | string, options: ZlibOptions, callback: (error: Error | null, result: Buffer) => void): void;
1287
1287
  export function gunzipSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
1288
- export function inflate(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void;
1289
- export function inflate(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
1288
+ export function inflate(buf: Buffer | string, callback: (error: Error | null, result: Buffer) => void): void;
1289
+ export function inflate(buf: Buffer | string, options: ZlibOptions, callback: (error: Error | null, result: Buffer) => void): void;
1290
1290
  export function inflateSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
1291
- export function inflateRaw(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void;
1292
- export function inflateRaw(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
1291
+ export function inflateRaw(buf: Buffer | string, callback: (error: Error | null, result: Buffer) => void): void;
1292
+ export function inflateRaw(buf: Buffer | string, options: ZlibOptions, callback: (error: Error | null, result: Buffer) => void): void;
1293
1293
  export function inflateRawSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
1294
- export function unzip(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void;
1295
- export function unzip(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void;
1294
+ export function unzip(buf: Buffer | string, callback: (error: Error | null, result: Buffer) => void): void;
1295
+ export function unzip(buf: Buffer | string, options: ZlibOptions, callback: (error: Error | null, result: Buffer) => void): void;
1296
1296
  export function unzipSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
1297
1297
 
1298
1298
  export namespace constants {
@@ -1919,23 +1919,23 @@ declare module "child_process" {
1919
1919
  }
1920
1920
 
1921
1921
  // no `options` definitely means stdout/stderr are `string`.
1922
- export function exec(command: string, callback?: (error: Error, stdout: string, stderr: string) => void): ChildProcess;
1922
+ export function exec(command: string, callback?: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess;
1923
1923
 
1924
1924
  // `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`.
1925
- export function exec(command: string, options: { encoding: "buffer" | null } & ExecOptions, callback?: (error: Error, stdout: Buffer, stderr: Buffer) => void): ChildProcess;
1925
+ export function exec(command: string, options: { encoding: "buffer" | null } & ExecOptions, callback?: (error: Error | null, stdout: Buffer, stderr: Buffer) => void): ChildProcess;
1926
1926
 
1927
1927
  // `options` with well known `encoding` means stdout/stderr are definitely `string`.
1928
- export function exec(command: string, options: { encoding: BufferEncoding } & ExecOptions, callback?: (error: Error, stdout: string, stderr: string) => void): ChildProcess;
1928
+ export function exec(command: string, options: { encoding: BufferEncoding } & ExecOptions, callback?: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess;
1929
1929
 
1930
1930
  // `options` with an `encoding` whose type is `string` means stdout/stderr could either be `Buffer` or `string`.
1931
1931
  // There is no guarantee the `encoding` is unknown as `string` is a superset of `BufferEncoding`.
1932
- export function exec(command: string, options: { encoding: string } & ExecOptions, callback?: (error: Error, stdout: string | Buffer, stderr: string | Buffer) => void): ChildProcess;
1932
+ export function exec(command: string, options: { encoding: string } & ExecOptions, callback?: (error: Error | null, stdout: string | Buffer, stderr: string | Buffer) => void): ChildProcess;
1933
1933
 
1934
1934
  // `options` without an `encoding` means stdout/stderr are definitely `string`.
1935
- export function exec(command: string, options: ExecOptions, callback?: (error: Error, stdout: string, stderr: string) => void): ChildProcess;
1935
+ export function exec(command: string, options: ExecOptions, callback?: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess;
1936
1936
 
1937
1937
  // fallback if nothing else matches. Worst case is always `string | Buffer`.
1938
- export function exec(command: string, options: ({ encoding?: string | null } & ExecOptions) | undefined | null, callback?: (error: Error, stdout: string | Buffer, stderr: string | Buffer) => void): ChildProcess;
1938
+ export function exec(command: string, options: ({ encoding?: string | null } & ExecOptions) | undefined | null, callback?: (error: Error | null, stdout: string | Buffer, stderr: string | Buffer) => void): ChildProcess;
1939
1939
 
1940
1940
  // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
1941
1941
  export namespace exec {
@@ -1968,28 +1968,28 @@ declare module "child_process" {
1968
1968
  export function execFile(file: string, args: string[] | undefined | null, options: ({ encoding?: string | null } & ExecFileOptions) | undefined | null): ChildProcess;
1969
1969
 
1970
1970
  // no `options` definitely means stdout/stderr are `string`.
1971
- export function execFile(file: string, callback: (error: Error, stdout: string, stderr: string) => void): ChildProcess;
1971
+ export function execFile(file: string, callback: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess;
1972
1972
 
1973
1973
  // `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`.
1974
- export function execFile(file: string, options: { encoding: "buffer" | null } & ExecFileOptions, callback: (error: Error, stdout: string, stderr: string) => void): ChildProcess;
1975
- export function execFile(file: string, args: string[] | undefined | null, options: { encoding: "buffer" | null } & ExecFileOptions, callback: (error: Error, stdout: string, stderr: string) => void): ChildProcess;
1974
+ export function execFile(file: string, options: { encoding: "buffer" | null } & ExecFileOptions, callback: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess;
1975
+ export function execFile(file: string, args: string[] | undefined | null, options: { encoding: "buffer" | null } & ExecFileOptions, callback: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess;
1976
1976
 
1977
1977
  // `options` with well known `encoding` means stdout/stderr are definitely `string`.
1978
- export function execFile(file: string, options: { encoding: BufferEncoding } & ExecFileOptions, callback: (error: Error, stdout: Buffer, stderr: Buffer) => void): ChildProcess;
1979
- export function execFile(file: string, args: string[] | undefined | null, options: { encoding: BufferEncoding } & ExecFileOptions, callback: (error: Error, stdout: Buffer, stderr: Buffer) => void): ChildProcess;
1978
+ export function execFile(file: string, options: { encoding: BufferEncoding } & ExecFileOptions, callback: (error: Error | null, stdout: Buffer, stderr: Buffer) => void): ChildProcess;
1979
+ export function execFile(file: string, args: string[] | undefined | null, options: { encoding: BufferEncoding } & ExecFileOptions, callback: (error: Error | null, stdout: Buffer, stderr: Buffer) => void): ChildProcess;
1980
1980
 
1981
1981
  // `options` with an `encoding` whose type is `string` means stdout/stderr could either be `Buffer` or `string`.
1982
1982
  // There is no guarantee the `encoding` is unknown as `string` is a superset of `BufferEncoding`.
1983
- export function execFile(file: string, options: { encoding: string } & ExecFileOptions, callback: (error: Error, stdout: string | Buffer, stderr: string | Buffer) => void): ChildProcess;
1984
- export function execFile(file: string, args: string[] | undefined | null, options: { encoding: string } & ExecFileOptions, callback: (error: Error, stdout: string | Buffer, stderr: string | Buffer) => void): ChildProcess;
1983
+ export function execFile(file: string, options: { encoding: string } & ExecFileOptions, callback: (error: Error | null, stdout: string | Buffer, stderr: string | Buffer) => void): ChildProcess;
1984
+ export function execFile(file: string, args: string[] | undefined | null, options: { encoding: string } & ExecFileOptions, callback: (error: Error | null, stdout: string | Buffer, stderr: string | Buffer) => void): ChildProcess;
1985
1985
 
1986
1986
  // `options` without an `encoding` means stdout/stderr are definitely `string`.
1987
- export function execFile(file: string, options: ExecFileOptions, callback: (error: Error, stdout: string, stderr: string) => void): ChildProcess;
1988
- export function execFile(file: string, args: string[] | undefined | null, options: ExecFileOptions, callback: (error: Error, stdout: string, stderr: string) => void): ChildProcess;
1987
+ export function execFile(file: string, options: ExecFileOptions, callback: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess;
1988
+ export function execFile(file: string, args: string[] | undefined | null, options: ExecFileOptions, callback: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess;
1989
1989
 
1990
1990
  // fallback if nothing else matches. Worst case is always `string | Buffer`.
1991
- export function execFile(file: string, options: ({ encoding?: string | null } & ExecFileOptions) | undefined | null, callback: ((error: Error, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null): ChildProcess;
1992
- export function execFile(file: string, args: string[] | undefined | null, options: ({ encoding?: string | null } & ExecFileOptions) | undefined | null, callback: ((error: Error, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null): ChildProcess;
1991
+ export function execFile(file: string, options: ({ encoding?: string | null } & ExecFileOptions) | undefined | null, callback: ((error: Error | null, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null): ChildProcess;
1992
+ export function execFile(file: string, args: string[] | undefined | null, options: ({ encoding?: string | null } & ExecFileOptions) | undefined | null, callback: ((error: Error | null, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null): ChildProcess;
1993
1993
 
1994
1994
  // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
1995
1995
  export namespace execFile {
@@ -2492,7 +2492,7 @@ declare module "net" {
2492
2492
  listen(handle: any, listeningListener?: Function): Server;
2493
2493
  close(callback?: Function): Server;
2494
2494
  address(): { port: number; family: string; address: string; };
2495
- getConnections(cb: (error: Error, count: number) => void): void;
2495
+ getConnections(cb: (error: Error | null, count: number) => void): void;
2496
2496
  ref(): Server;
2497
2497
  unref(): Server;
2498
2498
  maxConnections: number;
@@ -2587,8 +2587,8 @@ declare module "dgram" {
2587
2587
  export function createSocket(options: SocketOptions, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket;
2588
2588
 
2589
2589
  export interface Socket extends events.EventEmitter {
2590
- send(msg: Buffer | String | any[], port: number, address: string, callback?: (error: Error, bytes: number) => void): void;
2591
- send(msg: Buffer | String | any[], offset: number, length: number, port: number, address: string, callback?: (error: Error, bytes: number) => void): void;
2590
+ send(msg: Buffer | String | any[], port: number, address: string, callback?: (error: Error | null, bytes: number) => void): void;
2591
+ send(msg: Buffer | String | any[], offset: number, length: number, port: number, address: string, callback?: (error: Error | null, bytes: number) => void): void;
2592
2592
  bind(port?: number, address?: string, callback?: () => void): void;
2593
2593
  bind(port?: number, callback?: () => void): void;
2594
2594
  bind(callback?: () => void): void;
@@ -4979,7 +4979,6 @@ declare module "stream" {
4979
4979
  pause(): this;
4980
4980
  resume(): this;
4981
4981
  isPaused(): boolean;
4982
- pipe<T extends NodeJS.WritableStream>(destination: T, options?: { end?: boolean; }): T;
4983
4982
  unpipe<T extends NodeJS.WritableStream>(destination?: T): this;
4984
4983
  unshift(chunk: any): void;
4985
4984
  wrap(oldStream: NodeJS.ReadableStream): Readable;
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "8.0.25",
3
+ "version": "8.0.26",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -14,51 +14,63 @@
14
14
  },
15
15
  {
16
16
  "name": "Parambir Singh",
17
- "url": "https://github.com/parambirs"
17
+ "url": "https://github.com/parambirs",
18
+ "githubUsername": "parambirs"
18
19
  },
19
20
  {
20
21
  "name": "Roberto Desideri",
21
- "url": "https://github.com/RobDesideri"
22
+ "url": "https://github.com/RobDesideri",
23
+ "githubUsername": "RobDesideri"
22
24
  },
23
25
  {
24
26
  "name": "Christian Vaagland Tellnes",
25
- "url": "https://github.com/tellnes"
27
+ "url": "https://github.com/tellnes",
28
+ "githubUsername": "tellnes"
26
29
  },
27
30
  {
28
31
  "name": "Wilco Bakker",
29
- "url": "https://github.com/WilcoBakker"
32
+ "url": "https://github.com/WilcoBakker",
33
+ "githubUsername": "WilcoBakker"
30
34
  },
31
35
  {
32
36
  "name": "Nicolas Voigt",
33
- "url": "https://github.com/octo-sniffle"
37
+ "url": "https://github.com/octo-sniffle",
38
+ "githubUsername": "octo-sniffle"
34
39
  },
35
40
  {
36
41
  "name": "Chigozirim C.",
37
- "url": "https://github.com/smac89"
42
+ "url": "https://github.com/smac89",
43
+ "githubUsername": "smac89"
38
44
  },
39
45
  {
40
46
  "name": "Flarna",
41
- "url": "https://github.com/Flarna"
47
+ "url": "https://github.com/Flarna",
48
+ "githubUsername": "Flarna"
42
49
  },
43
50
  {
44
51
  "name": "Mariusz Wiktorczyk",
45
- "url": "https://github.com/mwiktorczyk"
52
+ "url": "https://github.com/mwiktorczyk",
53
+ "githubUsername": "mwiktorczyk"
46
54
  },
47
55
  {
48
56
  "name": "wwwy3y3",
49
- "url": "https://github.com/wwwy3y3"
57
+ "url": "https://github.com/wwwy3y3",
58
+ "githubUsername": "wwwy3y3"
50
59
  },
51
60
  {
52
61
  "name": "Daniel Imms",
53
- "url": "https://github.com/Tyriar"
62
+ "url": "https://github.com/Tyriar",
63
+ "githubUsername": "Tyriar"
54
64
  },
55
65
  {
56
66
  "name": "Deividas Bakanas",
57
- "url": "https://github.com/DeividasBakanas"
67
+ "url": "https://github.com/DeividasBakanas",
68
+ "githubUsername": "DeividasBakanas"
58
69
  },
59
70
  {
60
71
  "name": "Kelvin Jin",
61
- "url": "https://github.com/kjin"
72
+ "url": "https://github.com/kjin",
73
+ "githubUsername": "kjin"
62
74
  }
63
75
  ],
64
76
  "main": "",
@@ -68,6 +80,6 @@
68
80
  },
69
81
  "scripts": {},
70
82
  "dependencies": {},
71
- "typesPublisherContentHash": "a63790864be55efa37188c7d809600156968661f3d016ec1fc792fc72bde92d0",
83
+ "typesPublisherContentHash": "d58897114d5b8a61202a375762d0439e38ee2561924fe0907100ad241214937c",
72
84
  "typeScriptVersion": "2.2"
73
85
  }