@types/node 10.1.4 → 10.3.3

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 +2 -2
  2. node/index.d.ts +53 -33
  3. node/package.json +7 -2
node/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://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node
9
9
 
10
10
  Additional Details
11
- * Last updated: Wed, 30 May 2018 01:28:45 GMT
11
+ * Last updated: Wed, 13 Jun 2018 19:16:57 GMT
12
12
  * Dependencies: none
13
13
  * Global values: Buffer, NodeJS, SlowBuffer, Symbol, __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>, Parambir Singh <https://github.com/parambirs>, Christian Vaagland Tellnes <https://github.com/tellnes>, Wilco Bakker <https://github.com/WilcoBakker>, Nicolas Voigt <https://github.com/octo-sniffle>, Chigozirim C. <https://github.com/smac89>, Flarna <https://github.com/Flarna>, Mariusz Wiktorczyk <https://github.com/mwiktorczyk>, wwwy3y3 <https://github.com/wwwy3y3>, Deividas Bakanas <https://github.com/DeividasBakanas>, Kelvin Jin <https://github.com/kjin>, Alvis HT Tang <https://github.com/alvis>, Sebastian Silbermann <https://github.com/eps1lon>, Hannes Magnusson <https://github.com/Hannes-Magnusson-CK>, Alberto Schiabel <https://github.com/jkomyno>, Klaus Meinhardt <https://github.com/ajafff>, Huw <https://github.com/hoo29>, Nicolas Even <https://github.com/n-e>, Bruno Scheufler <https://github.com/brunoscheufler>, Mohsen Azimi <https://github.com/mohsen1>, Hoàng Văn Khải <https://github.com/KSXGitHub>, Alexander T. <https://github.com/a-tarasyuk>, Lishude <https://github.com/islishude>.
16
+ These definitions were written by Microsoft TypeScript <http://typescriptlang.org>, DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>, Parambir Singh <https://github.com/parambirs>, Christian Vaagland Tellnes <https://github.com/tellnes>, Wilco Bakker <https://github.com/WilcoBakker>, Nicolas Voigt <https://github.com/octo-sniffle>, Chigozirim C. <https://github.com/smac89>, Flarna <https://github.com/Flarna>, Mariusz Wiktorczyk <https://github.com/mwiktorczyk>, wwwy3y3 <https://github.com/wwwy3y3>, Deividas Bakanas <https://github.com/DeividasBakanas>, Kelvin Jin <https://github.com/kjin>, Alvis HT Tang <https://github.com/alvis>, Sebastian Silbermann <https://github.com/eps1lon>, Hannes Magnusson <https://github.com/Hannes-Magnusson-CK>, Alberto Schiabel <https://github.com/jkomyno>, Klaus Meinhardt <https://github.com/ajafff>, Huw <https://github.com/hoo29>, Nicolas Even <https://github.com/n-e>, Bruno Scheufler <https://github.com/brunoscheufler>, Mohsen Azimi <https://github.com/mohsen1>, Hoàng Văn Khải <https://github.com/KSXGitHub>, Alexander T. <https://github.com/a-tarasyuk>, Lishude <https://github.com/islishude>, Andrew Makarov <https://github.com/r3nya>.
node/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for Node.js 10.1.x
1
+ // Type definitions for Node.js 10.3.x
2
2
  // Project: http://nodejs.org/
3
3
  // Definitions by: Microsoft TypeScript <http://typescriptlang.org>
4
4
  // DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>
@@ -24,6 +24,7 @@
24
24
  // Hoàng Văn Khải <https://github.com/KSXGitHub>
25
25
  // Alexander T. <https://github.com/a-tarasyuk>
26
26
  // Lishude <https://github.com/islishude>
27
+ // Andrew Makarov <https://github.com/r3nya>
27
28
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
28
29
 
29
30
  /** inspector module types */
@@ -164,6 +165,7 @@ interface Iterator<T> {
164
165
  interface IteratorResult<T> { }
165
166
  interface AsyncIterableIterator<T> {}
166
167
  interface SymbolConstructor {
168
+ readonly observable: symbol;
167
169
  readonly iterator: symbol;
168
170
  readonly asyncIterator: symbol;
169
171
  }
@@ -2051,6 +2053,9 @@ declare module "readline" {
2051
2053
  completer?: Completer | AsyncCompleter;
2052
2054
  terminal?: boolean;
2053
2055
  historySize?: number;
2056
+ prompt?: string;
2057
+ crlfDelay?: number;
2058
+ removeHistoryDuplicates?: boolean;
2054
2059
  }
2055
2060
 
2056
2061
  export function createInterface(input: NodeJS.ReadableStream, output?: NodeJS.WritableStream, completer?: Completer | AsyncCompleter, terminal?: boolean): ReadLine;
@@ -2174,6 +2179,7 @@ declare module "child_process" {
2174
2179
  }
2175
2180
 
2176
2181
  export interface SpawnOptions {
2182
+ argv0?: string;
2177
2183
  cwd?: string;
2178
2184
  env?: any;
2179
2185
  stdio?: any;
@@ -2316,6 +2322,7 @@ declare module "child_process" {
2316
2322
  export function fork(modulePath: string, args?: ReadonlyArray<string>, options?: ForkOptions): ChildProcess;
2317
2323
 
2318
2324
  export interface SpawnSyncOptions {
2325
+ argv0?: string;
2319
2326
  cwd?: string;
2320
2327
  input?: string | Buffer;
2321
2328
  stdio?: any;
@@ -2534,6 +2541,12 @@ declare module "dns" {
2534
2541
  export function __promisify__(hostname: string, options?: LookupOptions | number): Promise<{ address: string | LookupAddress[], family?: number }>;
2535
2542
  }
2536
2543
 
2544
+ export function lookupService(address: string, port: number, callback: (err: NodeJS.ErrnoException, hostname: string, service: string) => void): void;
2545
+
2546
+ export namespace lookupService {
2547
+ export function __promisify__(address: string, port: number): Promise<{ hostname: string, service: string }>;
2548
+ }
2549
+
2537
2550
  export interface ResolveOptions {
2538
2551
  ttl: boolean;
2539
2552
  }
@@ -2822,6 +2835,8 @@ declare module "net" {
2822
2835
  backlog?: number;
2823
2836
  path?: string;
2824
2837
  exclusive?: boolean;
2838
+ readableAll?: boolean;
2839
+ writableAll?: boolean;
2825
2840
  }
2826
2841
 
2827
2842
  // https://github.com/nodejs/node/blob/master/lib/net.js
@@ -3462,7 +3477,7 @@ declare module "fs" {
3462
3477
  * @param type May be set to `'dir'`, `'file'`, or `'junction'` (default is `'file'`) and is only available on Windows (ignored on other platforms).
3463
3478
  * When using `'junction'`, the `target` argument will automatically be normalized to an absolute path.
3464
3479
  */
3465
- export function symlink(target: PathLike, path: PathLike, type: string | undefined | null, callback: (err: NodeJS.ErrnoException) => void): void;
3480
+ export function symlink(target: PathLike, path: PathLike, type: symlink.Type | undefined | null, callback: (err: NodeJS.ErrnoException) => void): void;
3466
3481
 
3467
3482
  /**
3468
3483
  * Asynchronous symlink(2) - Create a new symbolic link to an existing file.
@@ -3481,6 +3496,8 @@ declare module "fs" {
3481
3496
  * When using `'junction'`, the `target` argument will automatically be normalized to an absolute path.
3482
3497
  */
3483
3498
  export function __promisify__(target: PathLike, path: PathLike, type?: string | null): Promise<void>;
3499
+
3500
+ export type Type = "dir" | "file" | "junction";
3484
3501
  }
3485
3502
 
3486
3503
  /**
@@ -3490,7 +3507,7 @@ declare module "fs" {
3490
3507
  * @param type May be set to `'dir'`, `'file'`, or `'junction'` (default is `'file'`) and is only available on Windows (ignored on other platforms).
3491
3508
  * When using `'junction'`, the `target` argument will automatically be normalized to an absolute path.
3492
3509
  */
3493
- export function symlinkSync(target: PathLike, path: PathLike, type?: string | null): void;
3510
+ export function symlinkSync(target: PathLike, path: PathLike, type?: symlink.Type | null): void;
3494
3511
 
3495
3512
  /**
3496
3513
  * Asynchronous readlink(2) - read value of a symbolic link.
@@ -6205,25 +6222,25 @@ declare module "util" {
6205
6222
  export function isInt8Array(object: any): object is Int8Array;
6206
6223
  export function isInt16Array(object: any): object is Int16Array;
6207
6224
  export function isInt32Array(object: any): object is Int32Array;
6208
- export function isMap(object: any): object is Map<any, any>;
6225
+ export function isMap(object: any): boolean;
6209
6226
  export function isMapIterator(object: any): boolean;
6210
6227
  export function isNativeError(object: any): object is Error;
6211
6228
  export function isNumberObject(object: any): object is Number;
6212
- export function isPromise(object: any): object is Promise<any>;
6229
+ export function isPromise(object: any): boolean;
6213
6230
  export function isProxy(object: any): boolean;
6214
6231
  export function isRegExp(object: any): object is RegExp;
6215
- export function isSet(object: any): object is Set<any>;
6232
+ export function isSet(object: any): boolean;
6216
6233
  export function isSetIterator(object: any): boolean;
6217
6234
  export function isSharedArrayBuffer(object: any): boolean;
6218
- export function isStringObject(object: any): object is String;
6219
- export function isSymbolObject(object: any): object is Symbol;
6235
+ export function isStringObject(object: any): boolean;
6236
+ export function isSymbolObject(object: any): boolean;
6220
6237
  export function isTypedArray(object: any): object is Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array | Int8Array | Int16Array | Int32Array | Float32Array | Float64Array;
6221
6238
  export function isUint8Array(object: any): object is Uint8Array;
6222
6239
  export function isUint8ClampedArray(object: any): object is Uint8ClampedArray;
6223
6240
  export function isUint16Array(object: any): object is Uint16Array;
6224
6241
  export function isUint32Array(object: any): object is Uint32Array;
6225
- export function isWeakMap(object: any): object is WeakMap<any, any>;
6226
- export function isWeakSet(object: any): object is WeakSet<any>;
6242
+ export function isWeakMap(object: any): boolean;
6243
+ export function isWeakSet(object: any): boolean;
6227
6244
  export function isWebAssemblyCompiledModule(object: any): boolean;
6228
6245
  }
6229
6246
 
@@ -6839,12 +6856,15 @@ declare module "http2" {
6839
6856
  import { IncomingHttpHeaders as Http1IncomingHttpHeaders, OutgoingHttpHeaders } from "http";
6840
6857
  export { OutgoingHttpHeaders } from "http";
6841
6858
 
6859
+ export interface IncomingHttpStatusHeader {
6860
+ ":status"?: number;
6861
+ }
6862
+
6842
6863
  export interface IncomingHttpHeaders extends Http1IncomingHttpHeaders {
6843
- ':path'?: string;
6844
- ':method'?: string;
6845
- ':status'?: string;
6846
- ':authority'?: string;
6847
- ':scheme'?: string;
6864
+ ":path"?: string;
6865
+ ":method"?: string;
6866
+ ":authority"?: string;
6867
+ ":scheme"?: string;
6848
6868
  }
6849
6869
 
6850
6870
  // Http2Stream
@@ -6991,34 +7011,34 @@ declare module "http2" {
6991
7011
 
6992
7012
  export interface ClientHttp2Stream extends Http2Stream {
6993
7013
  addListener(event: string, listener: (...args: any[]) => void): this;
6994
- addListener(event: "headers", listener: (headers: IncomingHttpHeaders, flags: number) => void): this;
7014
+ addListener(event: "headers", listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this;
6995
7015
  addListener(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this;
6996
- addListener(event: "response", listener: (headers: IncomingHttpHeaders, flags: number) => void): this;
7016
+ addListener(event: "response", listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this;
6997
7017
 
6998
7018
  emit(event: string | symbol, ...args: any[]): boolean;
6999
- emit(event: "headers", headers: IncomingHttpHeaders, flags: number): boolean;
7019
+ emit(event: "headers", headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number): boolean;
7000
7020
  emit(event: "push", headers: IncomingHttpHeaders, flags: number): boolean;
7001
- emit(event: "response", headers: IncomingHttpHeaders, flags: number): boolean;
7021
+ emit(event: "response", headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number): boolean;
7002
7022
 
7003
7023
  on(event: string, listener: (...args: any[]) => void): this;
7004
- on(event: "headers", listener: (headers: IncomingHttpHeaders, flags: number) => void): this;
7024
+ on(event: "headers", listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this;
7005
7025
  on(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this;
7006
- on(event: "response", listener: (headers: IncomingHttpHeaders, flags: number) => void): this;
7026
+ on(event: "response", listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this;
7007
7027
 
7008
7028
  once(event: string, listener: (...args: any[]) => void): this;
7009
- once(event: "headers", listener: (headers: IncomingHttpHeaders, flags: number) => void): this;
7029
+ once(event: "headers", listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this;
7010
7030
  once(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this;
7011
- once(event: "response", listener: (headers: IncomingHttpHeaders, flags: number) => void): this;
7031
+ once(event: "response", listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this;
7012
7032
 
7013
7033
  prependListener(event: string, listener: (...args: any[]) => void): this;
7014
- prependListener(event: "headers", listener: (headers: IncomingHttpHeaders, flags: number) => void): this;
7034
+ prependListener(event: "headers", listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this;
7015
7035
  prependListener(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this;
7016
- prependListener(event: "response", listener: (headers: IncomingHttpHeaders, flags: number) => void): this;
7036
+ prependListener(event: "response", listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this;
7017
7037
 
7018
7038
  prependOnceListener(event: string, listener: (...args: any[]) => void): this;
7019
- prependOnceListener(event: "headers", listener: (headers: IncomingHttpHeaders, flags: number) => void): this;
7039
+ prependOnceListener(event: "headers", listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this;
7020
7040
  prependOnceListener(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this;
7021
- prependOnceListener(event: "response", listener: (headers: IncomingHttpHeaders, flags: number) => void): this;
7041
+ prependOnceListener(event: "response", listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this;
7022
7042
  }
7023
7043
 
7024
7044
  export interface ServerHttp2Stream extends Http2Stream {
@@ -7146,32 +7166,32 @@ declare module "http2" {
7146
7166
  addListener(event: string, listener: (...args: any[]) => void): this;
7147
7167
  addListener(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this;
7148
7168
  addListener(event: "connect", listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this;
7149
- addListener(event: "stream", listener: (stream: ClientHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this;
7169
+ addListener(event: "stream", listener: (stream: ClientHttp2Stream, headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this;
7150
7170
 
7151
7171
  emit(event: string | symbol, ...args: any[]): boolean;
7152
7172
  emit(event: "altsvc", alt: string, origin: string, stream: number): boolean;
7153
7173
  emit(event: "connect", session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket): boolean;
7154
- emit(event: "stream", stream: ClientHttp2Stream, headers: IncomingHttpHeaders, flags: number): boolean;
7174
+ emit(event: "stream", stream: ClientHttp2Stream, headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number): boolean;
7155
7175
 
7156
7176
  on(event: string, listener: (...args: any[]) => void): this;
7157
7177
  on(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this;
7158
7178
  on(event: "connect", listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this;
7159
- on(event: "stream", listener: (stream: ClientHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this;
7179
+ on(event: "stream", listener: (stream: ClientHttp2Stream, headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this;
7160
7180
 
7161
7181
  once(event: string, listener: (...args: any[]) => void): this;
7162
7182
  once(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this;
7163
7183
  once(event: "connect", listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this;
7164
- once(event: "stream", listener: (stream: ClientHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this;
7184
+ once(event: "stream", listener: (stream: ClientHttp2Stream, headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this;
7165
7185
 
7166
7186
  prependListener(event: string, listener: (...args: any[]) => void): this;
7167
7187
  prependListener(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this;
7168
7188
  prependListener(event: "connect", listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this;
7169
- prependListener(event: "stream", listener: (stream: ClientHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this;
7189
+ prependListener(event: "stream", listener: (stream: ClientHttp2Stream, headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this;
7170
7190
 
7171
7191
  prependOnceListener(event: string, listener: (...args: any[]) => void): this;
7172
7192
  prependOnceListener(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this;
7173
7193
  prependOnceListener(event: "connect", listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this;
7174
- prependOnceListener(event: "stream", listener: (stream: ClientHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this;
7194
+ prependOnceListener(event: "stream", listener: (stream: ClientHttp2Stream, headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this;
7175
7195
  }
7176
7196
 
7177
7197
  export interface AlternativeServiceOptions {
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "10.1.4",
3
+ "version": "10.3.3",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -121,6 +121,11 @@
121
121
  "name": "Lishude",
122
122
  "url": "https://github.com/islishude",
123
123
  "githubUsername": "islishude"
124
+ },
125
+ {
126
+ "name": "Andrew Makarov",
127
+ "url": "https://github.com/r3nya",
128
+ "githubUsername": "r3nya"
124
129
  }
125
130
  ],
126
131
  "main": "",
@@ -130,6 +135,6 @@
130
135
  },
131
136
  "scripts": {},
132
137
  "dependencies": {},
133
- "typesPublisherContentHash": "19833c289ea8e60f7afd37641bc11815dd9a35fc55cd09c28d2e1ea8341221e7",
138
+ "typesPublisherContentHash": "9fb270923c003b2a8e38258f618afc5c724cb26ba294ea6f8344ab178d3fbce3",
134
139
  "typeScriptVersion": "2.0"
135
140
  }