@types/node 9.4.4 → 9.6.0
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/README.md +2 -2
- node/index.d.ts +134 -109
- node/package.json +12 -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://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node
|
|
9
9
|
|
|
10
10
|
Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Thu, 22 Mar 2018 21:28:49 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>, Oliver Joseph Ash <https://github.com/OliverJAsh>, 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>.
|
|
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>, Oliver Joseph Ash <https://github.com/OliverJAsh>, 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>.
|
node/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Node.js 9.
|
|
1
|
+
// Type definitions for Node.js 9.6.x
|
|
2
2
|
// Project: http://nodejs.org/
|
|
3
3
|
// Definitions by: Microsoft TypeScript <http://typescriptlang.org>
|
|
4
4
|
// DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>
|
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
// Hannes Magnusson <https://github.com/Hannes-Magnusson-CK>
|
|
19
19
|
// Alberto Schiabel <https://github.com/jkomyno>
|
|
20
20
|
// Klaus Meinhardt <https://github.com/ajafff>
|
|
21
|
+
// Huw <https://github.com/hoo29>
|
|
22
|
+
// Nicolas Even <https://github.com/n-e>
|
|
21
23
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
22
24
|
|
|
23
25
|
/** inspector module types */
|
|
@@ -113,7 +115,7 @@ declare function clearImmediate(immediateId: any): void;
|
|
|
113
115
|
|
|
114
116
|
// TODO: change to `type NodeRequireFunction = (id: string) => any;` in next mayor version.
|
|
115
117
|
interface NodeRequireFunction {
|
|
116
|
-
/* tslint:disable-next-line:callable-types */
|
|
118
|
+
/* tslint:disable-next-line:callable-types */
|
|
117
119
|
(id: string): any;
|
|
118
120
|
}
|
|
119
121
|
|
|
@@ -1745,33 +1747,20 @@ declare module "https" {
|
|
|
1745
1747
|
import * as http from "http";
|
|
1746
1748
|
import { URL } from "url";
|
|
1747
1749
|
|
|
1748
|
-
export
|
|
1749
|
-
pfx?: any;
|
|
1750
|
-
key?: any;
|
|
1751
|
-
passphrase?: string;
|
|
1752
|
-
cert?: any;
|
|
1753
|
-
ca?: any;
|
|
1754
|
-
crl?: any;
|
|
1755
|
-
ciphers?: string;
|
|
1756
|
-
honorCipherOrder?: boolean;
|
|
1757
|
-
requestCert?: boolean;
|
|
1758
|
-
rejectUnauthorized?: boolean;
|
|
1759
|
-
NPNProtocols?: any;
|
|
1760
|
-
SNICallback?: (servername: string, cb: (err: Error | null, ctx: tls.SecureContext) => void) => void;
|
|
1761
|
-
secureProtocol?: string;
|
|
1762
|
-
}
|
|
1750
|
+
export type ServerOptions = tls.SecureContextOptions & tls.TlsOptions;
|
|
1763
1751
|
|
|
1764
|
-
export
|
|
1765
|
-
|
|
1766
|
-
|
|
1752
|
+
export type RequestOptions = http.RequestOptions & {
|
|
1753
|
+
rejectUnauthorized?: boolean; // Defaults to true
|
|
1754
|
+
servername?: string; // SNI TLS Extension
|
|
1755
|
+
pfx?: string | Buffer | Array<string | Buffer | Object>;
|
|
1756
|
+
key?: string | Buffer | Array<Buffer | Object>;
|
|
1767
1757
|
passphrase?: string;
|
|
1768
|
-
cert?:
|
|
1769
|
-
ca?:
|
|
1758
|
+
cert?: string | Buffer | Array<string | Buffer>;
|
|
1759
|
+
ca?: string | Buffer | Array<string | Buffer>;
|
|
1770
1760
|
ciphers?: string;
|
|
1771
|
-
|
|
1772
|
-
secureProtocol?: string;
|
|
1773
|
-
|
|
1774
|
-
}
|
|
1761
|
+
clientCertEngine?: string;
|
|
1762
|
+
secureProtocol?: string; // SSL Method, e.g. SSLv23_method
|
|
1763
|
+
};
|
|
1775
1764
|
|
|
1776
1765
|
export interface AgentOptions extends http.AgentOptions, tls.ConnectionOptions {
|
|
1777
1766
|
rejectUnauthorized?: boolean;
|
|
@@ -1780,6 +1769,7 @@ declare module "https" {
|
|
|
1780
1769
|
|
|
1781
1770
|
export class Agent extends http.Agent {
|
|
1782
1771
|
constructor(options?: AgentOptions);
|
|
1772
|
+
options: AgentOptions;
|
|
1783
1773
|
}
|
|
1784
1774
|
|
|
1785
1775
|
export class Server extends tls.Server {
|
|
@@ -2116,6 +2106,7 @@ declare module "child_process" {
|
|
|
2116
2106
|
killSignal?: string;
|
|
2117
2107
|
uid?: number;
|
|
2118
2108
|
gid?: number;
|
|
2109
|
+
windowsHide?: boolean;
|
|
2119
2110
|
}
|
|
2120
2111
|
|
|
2121
2112
|
export interface ExecOptionsWithStringEncoding extends ExecOptions {
|
|
@@ -2162,6 +2153,7 @@ declare module "child_process" {
|
|
|
2162
2153
|
killSignal?: string;
|
|
2163
2154
|
uid?: number;
|
|
2164
2155
|
gid?: number;
|
|
2156
|
+
windowsHide?: boolean;
|
|
2165
2157
|
windowsVerbatimArguments?: boolean;
|
|
2166
2158
|
}
|
|
2167
2159
|
export interface ExecFileOptionsWithStringEncoding extends ExecFileOptions {
|
|
@@ -2245,6 +2237,7 @@ declare module "child_process" {
|
|
|
2245
2237
|
maxBuffer?: number;
|
|
2246
2238
|
encoding?: string;
|
|
2247
2239
|
shell?: boolean | string;
|
|
2240
|
+
windowsHide?: boolean;
|
|
2248
2241
|
windowsVerbatimArguments?: boolean;
|
|
2249
2242
|
}
|
|
2250
2243
|
export interface SpawnSyncOptionsWithStringEncoding extends SpawnSyncOptions {
|
|
@@ -2282,6 +2275,7 @@ declare module "child_process" {
|
|
|
2282
2275
|
killSignal?: string;
|
|
2283
2276
|
maxBuffer?: number;
|
|
2284
2277
|
encoding?: string;
|
|
2278
|
+
windowsHide?: boolean;
|
|
2285
2279
|
}
|
|
2286
2280
|
export interface ExecSyncOptionsWithStringEncoding extends ExecSyncOptions {
|
|
2287
2281
|
encoding: BufferEncoding;
|
|
@@ -2305,6 +2299,7 @@ declare module "child_process" {
|
|
|
2305
2299
|
killSignal?: string;
|
|
2306
2300
|
maxBuffer?: number;
|
|
2307
2301
|
encoding?: string;
|
|
2302
|
+
windowsHide?: boolean;
|
|
2308
2303
|
}
|
|
2309
2304
|
export interface ExecFileSyncOptionsWithStringEncoding extends ExecFileSyncOptions {
|
|
2310
2305
|
encoding: BufferEncoding;
|
|
@@ -4844,7 +4839,7 @@ declare module "tls" {
|
|
|
4844
4839
|
* An array of strings or a Buffer naming possible NPN protocols.
|
|
4845
4840
|
* (Protocols should be ordered by their priority.)
|
|
4846
4841
|
*/
|
|
4847
|
-
NPNProtocols?: string[] | Buffer,
|
|
4842
|
+
NPNProtocols?: string[] | Buffer[] | Uint8Array[] | Buffer | Uint8Array,
|
|
4848
4843
|
/**
|
|
4849
4844
|
* An array of strings or a Buffer naming possible ALPN protocols.
|
|
4850
4845
|
* (Protocols should be ordered by their priority.) When the server
|
|
@@ -4852,7 +4847,7 @@ declare module "tls" {
|
|
|
4852
4847
|
* precedence over NPN and the server does not send an NPN extension
|
|
4853
4848
|
* to the client.
|
|
4854
4849
|
*/
|
|
4855
|
-
ALPNProtocols?: string[] | Buffer,
|
|
4850
|
+
ALPNProtocols?: string[] | Buffer[] | Uint8Array[] | Buffer | Uint8Array,
|
|
4856
4851
|
/**
|
|
4857
4852
|
* SNICallback(servername, cb) <Function> A function that will be
|
|
4858
4853
|
* called if the client supports SNI TLS extension. Two arguments
|
|
@@ -4907,6 +4902,14 @@ declare module "tls" {
|
|
|
4907
4902
|
getPeerCertificate(detailed: true): DetailedPeerCertificate;
|
|
4908
4903
|
getPeerCertificate(detailed?: false): PeerCertificate;
|
|
4909
4904
|
getPeerCertificate(detailed?: boolean): PeerCertificate | DetailedPeerCertificate;
|
|
4905
|
+
/**
|
|
4906
|
+
* Returns a string containing the negotiated SSL/TLS protocol version of the current connection.
|
|
4907
|
+
* The value `'unknown'` will be returned for connected sockets that have not completed the handshaking process.
|
|
4908
|
+
* The value `null` will be returned for server sockets or disconnected client sockets.
|
|
4909
|
+
* See https://www.openssl.org/docs/man1.0.2/ssl/SSL_get_version.html for more information.
|
|
4910
|
+
* @returns negotiated SSL/TLS protocol version of the current connection
|
|
4911
|
+
*/
|
|
4912
|
+
getProtocol(): string | null;
|
|
4910
4913
|
/**
|
|
4911
4914
|
* Could be used to speed up handshake establishment when reconnecting to the server.
|
|
4912
4915
|
* @returns ASN.1 encoded TLS session or undefined if none was negotiated.
|
|
@@ -4928,7 +4931,7 @@ declare module "tls" {
|
|
|
4928
4931
|
* @param callback - callback(err) will be executed with null as err, once the renegotiation
|
|
4929
4932
|
* is successfully completed.
|
|
4930
4933
|
*/
|
|
4931
|
-
renegotiate(options:
|
|
4934
|
+
renegotiate(options: { rejectUnauthorized?: boolean, requestCert?: boolean }, callback: (err: Error | null) => void): any;
|
|
4932
4935
|
/**
|
|
4933
4936
|
* Set maximum TLS fragment size (default and maximum value is: 16384, minimum is: 512).
|
|
4934
4937
|
* Smaller fragment size decreases buffering latency on the client: large fragments are buffered by
|
|
@@ -4971,30 +4974,16 @@ declare module "tls" {
|
|
|
4971
4974
|
prependOnceListener(event: "secureConnect", listener: () => void): this;
|
|
4972
4975
|
}
|
|
4973
4976
|
|
|
4974
|
-
export interface TlsOptions {
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
pfx?: string | Buffer[];
|
|
4978
|
-
key?: string | string[] | Buffer | any[];
|
|
4979
|
-
passphrase?: string;
|
|
4980
|
-
cert?: string | string[] | Buffer | Buffer[];
|
|
4981
|
-
ca?: string | string[] | Buffer | Buffer[];
|
|
4982
|
-
crl?: string | string[];
|
|
4983
|
-
ciphers?: string;
|
|
4984
|
-
honorCipherOrder?: boolean;
|
|
4977
|
+
export interface TlsOptions extends SecureContextOptions {
|
|
4978
|
+
clientCertEngine?: string;
|
|
4979
|
+
handshakeTimeout?: number;
|
|
4985
4980
|
requestCert?: boolean;
|
|
4986
4981
|
rejectUnauthorized?: boolean;
|
|
4987
|
-
NPNProtocols?: string[] | Buffer;
|
|
4982
|
+
NPNProtocols?: string[] | Buffer[] | Uint8Array[] | Buffer | Uint8Array;
|
|
4983
|
+
ALPNProtocols?: string[] | Buffer[] | Uint8Array[] | Buffer | Uint8Array;
|
|
4988
4984
|
SNICallback?: (servername: string, cb: (err: Error | null, ctx: SecureContext) => void) => void;
|
|
4989
|
-
ecdhCurve?: string;
|
|
4990
|
-
dhparam?: string | Buffer;
|
|
4991
|
-
handshakeTimeout?: number;
|
|
4992
|
-
ALPNProtocols?: string[] | Buffer;
|
|
4993
4985
|
sessionTimeout?: number;
|
|
4994
4986
|
ticketKeys?: Buffer;
|
|
4995
|
-
sessionIdContext?: string;
|
|
4996
|
-
secureProtocol?: string;
|
|
4997
|
-
secureOptions?: number;
|
|
4998
4987
|
}
|
|
4999
4988
|
|
|
5000
4989
|
export interface ConnectionOptions extends SecureContextOptions {
|
|
@@ -5003,8 +4992,8 @@ declare module "tls" {
|
|
|
5003
4992
|
path?: string; // Creates unix socket connection to path. If this option is specified, `host` and `port` are ignored.
|
|
5004
4993
|
socket?: net.Socket; // Establish secure connection on a given socket rather than creating a new socket
|
|
5005
4994
|
rejectUnauthorized?: boolean; // Defaults to true
|
|
5006
|
-
NPNProtocols?:
|
|
5007
|
-
ALPNProtocols?:
|
|
4995
|
+
NPNProtocols?: string[] | Buffer[] | Uint8Array[] | Buffer | Uint8Array;
|
|
4996
|
+
ALPNProtocols?: string[] | Buffer[] | Uint8Array[] | Buffer | Uint8Array;
|
|
5008
4997
|
checkServerIdentity?: typeof checkServerIdentity;
|
|
5009
4998
|
servername?: string; // SNI TLS Extension
|
|
5010
4999
|
session?: Buffer;
|
|
@@ -5102,6 +5091,7 @@ declare module "tls" {
|
|
|
5102
5091
|
ciphers?: string;
|
|
5103
5092
|
honorCipherOrder?: boolean;
|
|
5104
5093
|
ecdhCurve?: string;
|
|
5094
|
+
clientCertEngine?: string;
|
|
5105
5095
|
crl?: string | Buffer | Array<string | Buffer>;
|
|
5106
5096
|
dhparam?: string | Buffer;
|
|
5107
5097
|
secureOptions?: number; // Value is a numeric bitmask of the `SSL_OP_*` options
|
|
@@ -5405,7 +5395,7 @@ declare module "stream" {
|
|
|
5405
5395
|
readonly writableLength: number;
|
|
5406
5396
|
constructor(opts?: WritableOptions);
|
|
5407
5397
|
_write(chunk: any, encoding: string, callback: (err?: Error) => void): void;
|
|
5408
|
-
_writev?(chunks: Array<{chunk: any, encoding: string}>, callback: (err?: Error) => void): void;
|
|
5398
|
+
_writev?(chunks: Array<{ chunk: any, encoding: string }>, callback: (err?: Error) => void): void;
|
|
5409
5399
|
_destroy(err: Error, callback: Function): void;
|
|
5410
5400
|
_final(callback: Function): void;
|
|
5411
5401
|
write(chunk: any, cb?: Function): boolean;
|
|
@@ -5498,7 +5488,7 @@ declare module "stream" {
|
|
|
5498
5488
|
readonly writableLength: number;
|
|
5499
5489
|
constructor(opts?: DuplexOptions);
|
|
5500
5490
|
_write(chunk: any, encoding: string, callback: (err?: Error) => void): void;
|
|
5501
|
-
_writev?(chunks: Array<{chunk: any, encoding: string}>, callback: (err?: Error) => void): void;
|
|
5491
|
+
_writev?(chunks: Array<{ chunk: any, encoding: string }>, callback: (err?: Error) => void): void;
|
|
5502
5492
|
_destroy(err: Error, callback: Function): void;
|
|
5503
5493
|
_final(callback: Function): void;
|
|
5504
5494
|
write(chunk: any, cb?: Function): boolean;
|
|
@@ -5578,27 +5568,27 @@ declare module "util" {
|
|
|
5578
5568
|
export function callbackify<T1, T2>(fn: (arg1: T1, arg2: T2) => Promise<void>): (arg1: T1, arg2: T2, callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
5579
5569
|
export function callbackify<T1, T2, TResult>(fn: (arg1: T1, arg2: T2) => Promise<TResult>): (arg1: T1, arg2: T2, callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void;
|
|
5580
5570
|
export function callbackify<T1, T2, T3>(fn: (arg1: T1, arg2: T2, arg3: T3) => Promise<void>): (arg1: T1, arg2: T2, arg3: T3, callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
5581
|
-
export function callbackify<T1, T2, T3, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3) => Promise<TResult>): (arg1: T1, arg2: T2, arg3: T3,
|
|
5571
|
+
export function callbackify<T1, T2, T3, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3) => Promise<TResult>): (arg1: T1, arg2: T2, arg3: T3, callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void;
|
|
5582
5572
|
export function callbackify<T1, T2, T3, T4>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<void>): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
5583
|
-
export function callbackify<T1, T2, T3, T4, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<TResult>): (arg1: T1, arg2: T2, arg3: T3, arg4: T4,
|
|
5573
|
+
export function callbackify<T1, T2, T3, T4, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<TResult>): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void;
|
|
5584
5574
|
export function callbackify<T1, T2, T3, T4, T5>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<void>): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
5585
5575
|
export function callbackify<T1, T2, T3, T4, T5, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<TResult>): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void;
|
|
5586
5576
|
export function callbackify<T1, T2, T3, T4, T5, T6>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise<void>): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
5587
5577
|
export function callbackify<T1, T2, T3, T4, T5, T6, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise<TResult>): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void;
|
|
5588
5578
|
|
|
5589
5579
|
export function promisify<TCustom extends Function>(fn: CustomPromisify<TCustom>): TCustom;
|
|
5590
|
-
export function promisify<TResult>(fn: (callback: (err: Error, result: TResult) => void) => void): () => Promise<TResult>;
|
|
5591
|
-
export function promisify(fn: (callback: (err: Error) => void) => void): () => Promise<void>;
|
|
5592
|
-
export function promisify<T1, TResult>(fn: (arg1: T1, callback: (err: Error, result: TResult) => void) => void): (arg1: T1) => Promise<TResult>;
|
|
5593
|
-
export function promisify<T1>(fn: (arg1: T1, callback: (err: Error) => void) => void): (arg1: T1) => Promise<void>;
|
|
5594
|
-
export function promisify<T1, T2, TResult>(fn: (arg1: T1, arg2: T2, callback: (err: Error, result: TResult) => void) => void): (arg1: T1, arg2: T2) => Promise<TResult>;
|
|
5595
|
-
export function promisify<T1, T2>(fn: (arg1: T1, arg2: T2, callback: (err: Error) => void) => void): (arg1: T1, arg2: T2) => Promise<void>;
|
|
5596
|
-
export function promisify<T1, T2, T3, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err: Error, result: TResult) => void) => void): (arg1: T1, arg2: T2, arg3: T3) => Promise<TResult>;
|
|
5597
|
-
export function promisify<T1, T2, T3>(fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err: Error) => void) => void): (arg1: T1, arg2: T2, arg3: T3) => Promise<void>;
|
|
5598
|
-
export function promisify<T1, T2, T3, T4, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: Error, result: TResult) => void) => void): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<TResult>;
|
|
5599
|
-
export function promisify<T1, T2, T3, T4>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: Error) => void) => void): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<void>;
|
|
5600
|
-
export function promisify<T1, T2, T3, T4, T5, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: Error, result: TResult) => void) => void): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<TResult>;
|
|
5601
|
-
export function promisify<T1, T2, T3, T4, T5>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: Error) => void) => void): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<void>;
|
|
5580
|
+
export function promisify<TResult>(fn: (callback: (err: Error | null, result: TResult) => void) => void): () => Promise<TResult>;
|
|
5581
|
+
export function promisify(fn: (callback: (err: Error | null) => void) => void): () => Promise<void>;
|
|
5582
|
+
export function promisify<T1, TResult>(fn: (arg1: T1, callback: (err: Error | null, result: TResult) => void) => void): (arg1: T1) => Promise<TResult>;
|
|
5583
|
+
export function promisify<T1>(fn: (arg1: T1, callback: (err: Error | null) => void) => void): (arg1: T1) => Promise<void>;
|
|
5584
|
+
export function promisify<T1, T2, TResult>(fn: (arg1: T1, arg2: T2, callback: (err: Error | null, result: TResult) => void) => void): (arg1: T1, arg2: T2) => Promise<TResult>;
|
|
5585
|
+
export function promisify<T1, T2>(fn: (arg1: T1, arg2: T2, callback: (err: Error | null) => void) => void): (arg1: T1, arg2: T2) => Promise<void>;
|
|
5586
|
+
export function promisify<T1, T2, T3, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err: Error | null, result: TResult) => void) => void): (arg1: T1, arg2: T2, arg3: T3) => Promise<TResult>;
|
|
5587
|
+
export function promisify<T1, T2, T3>(fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err: Error | null) => void) => void): (arg1: T1, arg2: T2, arg3: T3) => Promise<void>;
|
|
5588
|
+
export function promisify<T1, T2, T3, T4, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: Error | null, result: TResult) => void) => void): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<TResult>;
|
|
5589
|
+
export function promisify<T1, T2, T3, T4>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: Error | null) => void) => void): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<void>;
|
|
5590
|
+
export function promisify<T1, T2, T3, T4, T5, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: Error | null, result: TResult) => void) => void): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<TResult>;
|
|
5591
|
+
export function promisify<T1, T2, T3, T4, T5>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: Error | null) => void) => void): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<void>;
|
|
5602
5592
|
export function promisify(fn: Function): Function;
|
|
5603
5593
|
export namespace promisify {
|
|
5604
5594
|
const custom: symbol;
|
|
@@ -5654,12 +5644,12 @@ declare module "tty" {
|
|
|
5654
5644
|
import * as net from "net";
|
|
5655
5645
|
|
|
5656
5646
|
export function isatty(fd: number): boolean;
|
|
5657
|
-
export
|
|
5647
|
+
export class ReadStream extends net.Socket {
|
|
5658
5648
|
isRaw: boolean;
|
|
5659
5649
|
setRawMode(mode: boolean): void;
|
|
5660
5650
|
isTTY: boolean;
|
|
5661
5651
|
}
|
|
5662
|
-
export
|
|
5652
|
+
export class WriteStream extends net.Socket {
|
|
5663
5653
|
columns: number;
|
|
5664
5654
|
rows: number;
|
|
5665
5655
|
isTTY: boolean;
|
|
@@ -6092,6 +6082,23 @@ declare module "async_hooks" {
|
|
|
6092
6082
|
*/
|
|
6093
6083
|
export function createHook(options: HookCallbacks): AsyncHook;
|
|
6094
6084
|
|
|
6085
|
+
export interface AsyncResourceOptions {
|
|
6086
|
+
/**
|
|
6087
|
+
* The ID of the execution context that created this async event.
|
|
6088
|
+
* Default: `executionAsyncId()`
|
|
6089
|
+
*/
|
|
6090
|
+
triggerAsyncId?: number;
|
|
6091
|
+
|
|
6092
|
+
/**
|
|
6093
|
+
* Disables automatic `emitDestroy` when the object is garbage collected.
|
|
6094
|
+
* This usually does not need to be set (even if `emitDestroy` is called
|
|
6095
|
+
* manually), unless the resource's `asyncId` is retrieved and the
|
|
6096
|
+
* sensitive API's `emitDestroy` is called with it.
|
|
6097
|
+
* Default: `false`
|
|
6098
|
+
*/
|
|
6099
|
+
requireManualDestroy?: boolean;
|
|
6100
|
+
}
|
|
6101
|
+
|
|
6095
6102
|
/**
|
|
6096
6103
|
* The class AsyncResource was designed to be extended by the embedder's async resources.
|
|
6097
6104
|
* Using this users can easily trigger the lifetime events of their own resources.
|
|
@@ -6101,21 +6108,38 @@ declare module "async_hooks" {
|
|
|
6101
6108
|
* AsyncResource() is meant to be extended. Instantiating a
|
|
6102
6109
|
* new AsyncResource() also triggers init. If triggerAsyncId is omitted then
|
|
6103
6110
|
* async_hook.executionAsyncId() is used.
|
|
6104
|
-
* @param type
|
|
6105
|
-
* @param triggerAsyncId
|
|
6111
|
+
* @param type The type of async event.
|
|
6112
|
+
* @param triggerAsyncId The ID of the execution context that created
|
|
6113
|
+
* this async event (default: `executionAsyncId()`), or an
|
|
6114
|
+
* AsyncResourceOptions object (since 9.3)
|
|
6106
6115
|
*/
|
|
6107
|
-
constructor(type: string, triggerAsyncId?: number)
|
|
6116
|
+
constructor(type: string, triggerAsyncId?: number|AsyncResourceOptions);
|
|
6108
6117
|
|
|
6109
6118
|
/**
|
|
6110
6119
|
* Call AsyncHooks before callbacks.
|
|
6120
|
+
* @deprecated since 9.6 - Use asyncResource.runInAsyncScope() instead.
|
|
6111
6121
|
*/
|
|
6112
6122
|
emitBefore(): void;
|
|
6113
6123
|
|
|
6114
6124
|
/**
|
|
6115
|
-
* Call AsyncHooks after callbacks
|
|
6125
|
+
* Call AsyncHooks after callbacks.
|
|
6126
|
+
* @deprecated since 9.6 - Use asyncResource.runInAsyncScope() instead.
|
|
6116
6127
|
*/
|
|
6117
6128
|
emitAfter(): void;
|
|
6118
6129
|
|
|
6130
|
+
/**
|
|
6131
|
+
* Call the provided function with the provided arguments in the
|
|
6132
|
+
* execution context of the async resource. This will establish the
|
|
6133
|
+
* context, trigger the AsyncHooks before callbacks, call the function,
|
|
6134
|
+
* trigger the AsyncHooks after callbacks, and then restore the original
|
|
6135
|
+
* execution context.
|
|
6136
|
+
* @param fn The function to call in the execution context of this
|
|
6137
|
+
* async resource.
|
|
6138
|
+
* @param thisArg The receiver to be used for the function call.
|
|
6139
|
+
* @param args Optional arguments to pass to the function.
|
|
6140
|
+
*/
|
|
6141
|
+
runInAsyncScope<This, Result>(fn: (this: This, ...args: any[]) => Result, thisArg?: This, ...args: any[]): Result;
|
|
6142
|
+
|
|
6119
6143
|
/**
|
|
6120
6144
|
* Call AsyncHooks destroy callbacks.
|
|
6121
6145
|
*/
|
|
@@ -6173,7 +6197,7 @@ declare module "http2" {
|
|
|
6173
6197
|
}
|
|
6174
6198
|
|
|
6175
6199
|
export interface ServerStreamFileResponseOptions {
|
|
6176
|
-
statCheck?: (stats: fs.Stats, headers: OutgoingHttpHeaders, statOptions: StatOptions) => void|boolean;
|
|
6200
|
+
statCheck?: (stats: fs.Stats, headers: OutgoingHttpHeaders, statOptions: StatOptions) => void | boolean;
|
|
6177
6201
|
getTrailers?: (trailers: OutgoingHttpHeaders) => void;
|
|
6178
6202
|
offset?: number;
|
|
6179
6203
|
length?: number;
|
|
@@ -6185,15 +6209,12 @@ declare module "http2" {
|
|
|
6185
6209
|
|
|
6186
6210
|
export interface Http2Stream extends stream.Duplex {
|
|
6187
6211
|
readonly aborted: boolean;
|
|
6212
|
+
close(code: number, callback?: () => void): void;
|
|
6213
|
+
readonly closed: boolean;
|
|
6188
6214
|
readonly destroyed: boolean;
|
|
6215
|
+
readonly pending: boolean;
|
|
6189
6216
|
priority(options: StreamPriorityOptions): void;
|
|
6190
6217
|
readonly rstCode: number;
|
|
6191
|
-
rstStream(code: number): void;
|
|
6192
|
-
rstWithNoError(): void;
|
|
6193
|
-
rstWithProtocolError(): void;
|
|
6194
|
-
rstWithCancel(): void;
|
|
6195
|
-
rstWithRefuse(): void;
|
|
6196
|
-
rstWithInternalError(): void;
|
|
6197
6218
|
readonly session: Http2Session;
|
|
6198
6219
|
setTimeout(msecs: number, callback?: () => void): void;
|
|
6199
6220
|
readonly state: StreamState;
|
|
@@ -6325,8 +6346,8 @@ declare module "http2" {
|
|
|
6325
6346
|
additionalHeaders(headers: OutgoingHttpHeaders): void;
|
|
6326
6347
|
readonly headersSent: boolean;
|
|
6327
6348
|
readonly pushAllowed: boolean;
|
|
6328
|
-
pushStream(headers: OutgoingHttpHeaders, callback?: (pushStream: ServerHttp2Stream) => void): void;
|
|
6329
|
-
pushStream(headers: OutgoingHttpHeaders, options?: StreamPriorityOptions, callback?: (pushStream: ServerHttp2Stream) => void): void;
|
|
6349
|
+
pushStream(headers: OutgoingHttpHeaders, callback?: (err: Error | null, pushStream: ServerHttp2Stream, headers: OutgoingHttpHeaders) => void): void;
|
|
6350
|
+
pushStream(headers: OutgoingHttpHeaders, options?: StreamPriorityOptions, callback?: (err: Error | null, pushStream: ServerHttp2Stream, headers: OutgoingHttpHeaders) => void): void;
|
|
6330
6351
|
respond(headers?: OutgoingHttpHeaders, options?: ServerStreamResponseOptions): void;
|
|
6331
6352
|
respondWithFD(fd: number, headers?: OutgoingHttpHeaders, options?: ServerStreamFileResponseOptions): void;
|
|
6332
6353
|
respondWithFile(path: string, headers?: OutgoingHttpHeaders, options?: ServerStreamFileResponseOptionsWithError): void;
|
|
@@ -6351,13 +6372,6 @@ declare module "http2" {
|
|
|
6351
6372
|
getTrailers?: (trailers: OutgoingHttpHeaders, flags: number) => void;
|
|
6352
6373
|
}
|
|
6353
6374
|
|
|
6354
|
-
export interface SessionShutdownOptions {
|
|
6355
|
-
graceful?: boolean;
|
|
6356
|
-
errorCode?: number;
|
|
6357
|
-
lastStreamID?: number;
|
|
6358
|
-
opaqueData?: Buffer | Uint8Array;
|
|
6359
|
-
}
|
|
6360
|
-
|
|
6361
6375
|
export interface SessionState {
|
|
6362
6376
|
effectiveLocalWindowSize?: number;
|
|
6363
6377
|
effectiveRecvDataLength?: number;
|
|
@@ -6371,20 +6385,26 @@ declare module "http2" {
|
|
|
6371
6385
|
}
|
|
6372
6386
|
|
|
6373
6387
|
export interface Http2Session extends events.EventEmitter {
|
|
6374
|
-
|
|
6388
|
+
readonly alpnProtocol?: string;
|
|
6389
|
+
close(callback?: () => void): void;
|
|
6390
|
+
readonly closed: boolean;
|
|
6391
|
+
destroy(error?: Error, code?: number): void;
|
|
6375
6392
|
readonly destroyed: boolean;
|
|
6393
|
+
readonly encrypted?: boolean;
|
|
6394
|
+
goaway(code?: number, lastStreamID?: number, opaqueData?: Buffer | DataView /*| TypedArray*/): void;
|
|
6376
6395
|
readonly localSettings: Settings;
|
|
6396
|
+
readonly originSet?: string[];
|
|
6377
6397
|
readonly pendingSettingsAck: boolean;
|
|
6398
|
+
ref(): void;
|
|
6378
6399
|
readonly remoteSettings: Settings;
|
|
6379
6400
|
rstStream(stream: Http2Stream, code?: number): void;
|
|
6380
6401
|
setTimeout(msecs: number, callback?: () => void): void;
|
|
6381
|
-
shutdown(callback?: () => void): void;
|
|
6382
|
-
shutdown(options: SessionShutdownOptions, callback?: () => void): void;
|
|
6383
6402
|
readonly socket: net.Socket | tls.TLSSocket;
|
|
6384
6403
|
readonly state: SessionState;
|
|
6385
6404
|
priority(stream: Http2Stream, options: StreamPriorityOptions): void;
|
|
6386
6405
|
settings(settings: Settings): void;
|
|
6387
6406
|
readonly type: number;
|
|
6407
|
+
unref(): void;
|
|
6388
6408
|
|
|
6389
6409
|
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
6390
6410
|
addListener(event: "close", listener: () => void): this;
|
|
@@ -6393,7 +6413,6 @@ declare module "http2" {
|
|
|
6393
6413
|
addListener(event: "goaway", listener: (errorCode: number, lastStreamID: number, opaqueData: Buffer) => void): this;
|
|
6394
6414
|
addListener(event: "localSettings", listener: (settings: Settings) => void): this;
|
|
6395
6415
|
addListener(event: "remoteSettings", listener: (settings: Settings) => void): this;
|
|
6396
|
-
addListener(event: "socketError", listener: (err: Error) => void): this;
|
|
6397
6416
|
addListener(event: "timeout", listener: () => void): this;
|
|
6398
6417
|
|
|
6399
6418
|
emit(event: string | symbol, ...args: any[]): boolean;
|
|
@@ -6403,7 +6422,6 @@ declare module "http2" {
|
|
|
6403
6422
|
emit(event: "goaway", errorCode: number, lastStreamID: number, opaqueData: Buffer): boolean;
|
|
6404
6423
|
emit(event: "localSettings", settings: Settings): boolean;
|
|
6405
6424
|
emit(event: "remoteSettings", settings: Settings): boolean;
|
|
6406
|
-
emit(event: "socketError", err: Error): boolean;
|
|
6407
6425
|
emit(event: "timeout"): boolean;
|
|
6408
6426
|
|
|
6409
6427
|
on(event: string, listener: (...args: any[]) => void): this;
|
|
@@ -6413,7 +6431,6 @@ declare module "http2" {
|
|
|
6413
6431
|
on(event: "goaway", listener: (errorCode: number, lastStreamID: number, opaqueData: Buffer) => void): this;
|
|
6414
6432
|
on(event: "localSettings", listener: (settings: Settings) => void): this;
|
|
6415
6433
|
on(event: "remoteSettings", listener: (settings: Settings) => void): this;
|
|
6416
|
-
on(event: "socketError", listener: (err: Error) => void): this;
|
|
6417
6434
|
on(event: "timeout", listener: () => void): this;
|
|
6418
6435
|
|
|
6419
6436
|
once(event: string, listener: (...args: any[]) => void): this;
|
|
@@ -6423,7 +6440,6 @@ declare module "http2" {
|
|
|
6423
6440
|
once(event: "goaway", listener: (errorCode: number, lastStreamID: number, opaqueData: Buffer) => void): this;
|
|
6424
6441
|
once(event: "localSettings", listener: (settings: Settings) => void): this;
|
|
6425
6442
|
once(event: "remoteSettings", listener: (settings: Settings) => void): this;
|
|
6426
|
-
once(event: "socketError", listener: (err: Error) => void): this;
|
|
6427
6443
|
once(event: "timeout", listener: () => void): this;
|
|
6428
6444
|
|
|
6429
6445
|
prependListener(event: string, listener: (...args: any[]) => void): this;
|
|
@@ -6433,7 +6449,6 @@ declare module "http2" {
|
|
|
6433
6449
|
prependListener(event: "goaway", listener: (errorCode: number, lastStreamID: number, opaqueData: Buffer) => void): this;
|
|
6434
6450
|
prependListener(event: "localSettings", listener: (settings: Settings) => void): this;
|
|
6435
6451
|
prependListener(event: "remoteSettings", listener: (settings: Settings) => void): this;
|
|
6436
|
-
prependListener(event: "socketError", listener: (err: Error) => void): this;
|
|
6437
6452
|
prependListener(event: "timeout", listener: () => void): this;
|
|
6438
6453
|
|
|
6439
6454
|
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
|
@@ -6443,7 +6458,6 @@ declare module "http2" {
|
|
|
6443
6458
|
prependOnceListener(event: "goaway", listener: (errorCode: number, lastStreamID: number, opaqueData: Buffer) => void): this;
|
|
6444
6459
|
prependOnceListener(event: "localSettings", listener: (settings: Settings) => void): this;
|
|
6445
6460
|
prependOnceListener(event: "remoteSettings", listener: (settings: Settings) => void): this;
|
|
6446
|
-
prependOnceListener(event: "socketError", listener: (err: Error) => void): this;
|
|
6447
6461
|
prependOnceListener(event: "timeout", listener: () => void): this;
|
|
6448
6462
|
}
|
|
6449
6463
|
|
|
@@ -6451,31 +6465,42 @@ declare module "http2" {
|
|
|
6451
6465
|
request(headers?: OutgoingHttpHeaders, options?: ClientSessionRequestOptions): ClientHttp2Stream;
|
|
6452
6466
|
|
|
6453
6467
|
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
6468
|
+
addListener(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this;
|
|
6454
6469
|
addListener(event: "connect", listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this;
|
|
6455
6470
|
addListener(event: "stream", listener: (stream: ClientHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this;
|
|
6456
6471
|
|
|
6457
6472
|
emit(event: string | symbol, ...args: any[]): boolean;
|
|
6473
|
+
emit(event: "altsvc", alt: string, origin: string, stream: number): boolean;
|
|
6458
6474
|
emit(event: "connect", session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket): boolean;
|
|
6459
6475
|
emit(event: "stream", stream: ClientHttp2Stream, headers: IncomingHttpHeaders, flags: number): boolean;
|
|
6460
6476
|
|
|
6461
6477
|
on(event: string, listener: (...args: any[]) => void): this;
|
|
6478
|
+
on(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this;
|
|
6462
6479
|
on(event: "connect", listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this;
|
|
6463
6480
|
on(event: "stream", listener: (stream: ClientHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this;
|
|
6464
6481
|
|
|
6465
6482
|
once(event: string, listener: (...args: any[]) => void): this;
|
|
6483
|
+
once(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this;
|
|
6466
6484
|
once(event: "connect", listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this;
|
|
6467
6485
|
once(event: "stream", listener: (stream: ClientHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this;
|
|
6468
6486
|
|
|
6469
6487
|
prependListener(event: string, listener: (...args: any[]) => void): this;
|
|
6488
|
+
prependListener(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this;
|
|
6470
6489
|
prependListener(event: "connect", listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this;
|
|
6471
6490
|
prependListener(event: "stream", listener: (stream: ClientHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this;
|
|
6472
6491
|
|
|
6473
6492
|
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
|
6493
|
+
prependOnceListener(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this;
|
|
6474
6494
|
prependOnceListener(event: "connect", listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this;
|
|
6475
6495
|
prependOnceListener(event: "stream", listener: (stream: ClientHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this;
|
|
6476
6496
|
}
|
|
6477
6497
|
|
|
6498
|
+
export interface AlternativeServiceOptions {
|
|
6499
|
+
origin: number | string | url.URL;
|
|
6500
|
+
}
|
|
6501
|
+
|
|
6478
6502
|
export interface ServerHttp2Session extends Http2Session {
|
|
6503
|
+
altsvc(alt: string, originOrStream: number | string | url.URL | AlternativeServiceOptions): void;
|
|
6479
6504
|
readonly server: Http2Server | Http2SecureServer;
|
|
6480
6505
|
|
|
6481
6506
|
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
@@ -6531,93 +6556,93 @@ declare module "http2" {
|
|
|
6531
6556
|
|
|
6532
6557
|
export interface Http2Server extends net.Server {
|
|
6533
6558
|
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
6559
|
+
addListener(event: "checkContinue", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this;
|
|
6534
6560
|
addListener(event: "request", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this;
|
|
6535
6561
|
addListener(event: "sessionError", listener: (err: Error) => void): this;
|
|
6536
|
-
addListener(event: "socketError", listener: (err: Error) => void): this;
|
|
6537
6562
|
addListener(event: "stream", listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this;
|
|
6538
6563
|
addListener(event: "timeout", listener: () => void): this;
|
|
6539
6564
|
|
|
6540
6565
|
emit(event: string | symbol, ...args: any[]): boolean;
|
|
6566
|
+
emit(event: "checkContinue", request: Http2ServerRequest, response: Http2ServerResponse): boolean;
|
|
6541
6567
|
emit(event: "request", request: Http2ServerRequest, response: Http2ServerResponse): boolean;
|
|
6542
6568
|
emit(event: "sessionError", err: Error): boolean;
|
|
6543
|
-
emit(event: "socketError", err: Error): boolean;
|
|
6544
6569
|
emit(event: "stream", stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number): boolean;
|
|
6545
6570
|
emit(event: "timeout"): boolean;
|
|
6546
6571
|
|
|
6547
6572
|
on(event: string, listener: (...args: any[]) => void): this;
|
|
6573
|
+
on(event: "checkContinue", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this;
|
|
6548
6574
|
on(event: "request", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this;
|
|
6549
6575
|
on(event: "sessionError", listener: (err: Error) => void): this;
|
|
6550
|
-
on(event: "socketError", listener: (err: Error) => void): this;
|
|
6551
6576
|
on(event: "stream", listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this;
|
|
6552
6577
|
on(event: "timeout", listener: () => void): this;
|
|
6553
6578
|
|
|
6554
6579
|
once(event: string, listener: (...args: any[]) => void): this;
|
|
6580
|
+
once(event: "checkContinue", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this;
|
|
6555
6581
|
once(event: "request", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this;
|
|
6556
6582
|
once(event: "sessionError", listener: (err: Error) => void): this;
|
|
6557
|
-
once(event: "socketError", listener: (err: Error) => void): this;
|
|
6558
6583
|
once(event: "stream", listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this;
|
|
6559
6584
|
once(event: "timeout", listener: () => void): this;
|
|
6560
6585
|
|
|
6561
6586
|
prependListener(event: string, listener: (...args: any[]) => void): this;
|
|
6587
|
+
prependListener(event: "checkContinue", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this;
|
|
6562
6588
|
prependListener(event: "request", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this;
|
|
6563
6589
|
prependListener(event: "sessionError", listener: (err: Error) => void): this;
|
|
6564
|
-
prependListener(event: "socketError", listener: (err: Error) => void): this;
|
|
6565
6590
|
prependListener(event: "stream", listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this;
|
|
6566
6591
|
prependListener(event: "timeout", listener: () => void): this;
|
|
6567
6592
|
|
|
6568
6593
|
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
|
6594
|
+
prependOnceListener(event: "checkContinue", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this;
|
|
6569
6595
|
prependOnceListener(event: "request", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this;
|
|
6570
6596
|
prependOnceListener(event: "sessionError", listener: (err: Error) => void): this;
|
|
6571
|
-
prependOnceListener(event: "socketError", listener: (err: Error) => void): this;
|
|
6572
6597
|
prependOnceListener(event: "stream", listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this;
|
|
6573
6598
|
prependOnceListener(event: "timeout", listener: () => void): this;
|
|
6574
6599
|
}
|
|
6575
6600
|
|
|
6576
6601
|
export interface Http2SecureServer extends tls.Server {
|
|
6577
6602
|
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
6603
|
+
addListener(event: "checkContinue", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this;
|
|
6578
6604
|
addListener(event: "request", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this;
|
|
6579
6605
|
addListener(event: "sessionError", listener: (err: Error) => void): this;
|
|
6580
|
-
addListener(event: "socketError", listener: (err: Error) => void): this;
|
|
6581
6606
|
addListener(event: "stream", listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this;
|
|
6582
6607
|
addListener(event: "timeout", listener: () => void): this;
|
|
6583
6608
|
addListener(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this;
|
|
6584
6609
|
|
|
6585
6610
|
emit(event: string | symbol, ...args: any[]): boolean;
|
|
6611
|
+
emit(event: "checkContinue", request: Http2ServerRequest, response: Http2ServerResponse): boolean;
|
|
6586
6612
|
emit(event: "request", request: Http2ServerRequest, response: Http2ServerResponse): boolean;
|
|
6587
6613
|
emit(event: "sessionError", err: Error): boolean;
|
|
6588
|
-
emit(event: "socketError", err: Error): boolean;
|
|
6589
6614
|
emit(event: "stream", stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number): boolean;
|
|
6590
6615
|
emit(event: "timeout"): boolean;
|
|
6591
6616
|
emit(event: "unknownProtocol", socket: tls.TLSSocket): boolean;
|
|
6592
6617
|
|
|
6593
6618
|
on(event: string, listener: (...args: any[]) => void): this;
|
|
6619
|
+
on(event: "checkContinue", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this;
|
|
6594
6620
|
on(event: "request", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this;
|
|
6595
6621
|
on(event: "sessionError", listener: (err: Error) => void): this;
|
|
6596
|
-
on(event: "socketError", listener: (err: Error) => void): this;
|
|
6597
6622
|
on(event: "stream", listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this;
|
|
6598
6623
|
on(event: "timeout", listener: () => void): this;
|
|
6599
6624
|
on(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this;
|
|
6600
6625
|
|
|
6601
6626
|
once(event: string, listener: (...args: any[]) => void): this;
|
|
6627
|
+
once(event: "checkContinue", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this;
|
|
6602
6628
|
once(event: "request", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this;
|
|
6603
6629
|
once(event: "sessionError", listener: (err: Error) => void): this;
|
|
6604
|
-
once(event: "socketError", listener: (err: Error) => void): this;
|
|
6605
6630
|
once(event: "stream", listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this;
|
|
6606
6631
|
once(event: "timeout", listener: () => void): this;
|
|
6607
6632
|
once(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this;
|
|
6608
6633
|
|
|
6609
6634
|
prependListener(event: string, listener: (...args: any[]) => void): this;
|
|
6635
|
+
prependListener(event: "checkContinue", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this;
|
|
6610
6636
|
prependListener(event: "request", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this;
|
|
6611
6637
|
prependListener(event: "sessionError", listener: (err: Error) => void): this;
|
|
6612
|
-
prependListener(event: "socketError", listener: (err: Error) => void): this;
|
|
6613
6638
|
prependListener(event: "stream", listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this;
|
|
6614
6639
|
prependListener(event: "timeout", listener: () => void): this;
|
|
6615
6640
|
prependListener(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this;
|
|
6616
6641
|
|
|
6617
6642
|
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
|
6643
|
+
prependOnceListener(event: "checkContinue", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this;
|
|
6618
6644
|
prependOnceListener(event: "request", listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this;
|
|
6619
6645
|
prependOnceListener(event: "sessionError", listener: (err: Error) => void): this;
|
|
6620
|
-
prependOnceListener(event: "socketError", listener: (err: Error) => void): this;
|
|
6621
6646
|
prependOnceListener(event: "stream", listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this;
|
|
6622
6647
|
prependOnceListener(event: "timeout", listener: () => void): this;
|
|
6623
6648
|
prependOnceListener(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this;
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.6.0",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -91,6 +91,16 @@
|
|
|
91
91
|
"name": "Klaus Meinhardt",
|
|
92
92
|
"url": "https://github.com/ajafff",
|
|
93
93
|
"githubUsername": "ajafff"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "Huw",
|
|
97
|
+
"url": "https://github.com/hoo29",
|
|
98
|
+
"githubUsername": "hoo29"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "Nicolas Even",
|
|
102
|
+
"url": "https://github.com/n-e",
|
|
103
|
+
"githubUsername": "n-e"
|
|
94
104
|
}
|
|
95
105
|
],
|
|
96
106
|
"main": "",
|
|
@@ -100,6 +110,6 @@
|
|
|
100
110
|
},
|
|
101
111
|
"scripts": {},
|
|
102
112
|
"dependencies": {},
|
|
103
|
-
"typesPublisherContentHash": "
|
|
113
|
+
"typesPublisherContentHash": "c3b590e8e174d607132b7dedb4f5f7eadd4cef2f0ded27b3038db1af2dd6ce9c",
|
|
104
114
|
"typeScriptVersion": "2.0"
|
|
105
115
|
}
|