@types/node 10.12.30 → 10.14.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.
- node v10/README.md +1 -1
- node v10/child_process.d.ts +1 -0
- node v10/http.d.ts +12 -1
- node v10/http2.d.ts +1 -3
- node v10/https.d.ts +12 -0
- node v10/index.d.ts +5 -1
- node v10/package.json +2 -2
- node v10/ts3.2/util.d.ts +5 -0
- node v10/util.d.ts +2 -1
node v10/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://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v10
|
|
9
9
|
|
|
10
10
|
Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Fri, 22 Mar 2019 19:04:50 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: Buffer, NodeJS, Symbol, __dirname, __filename, clearImmediate, clearInterval, clearTimeout, console, exports, global, module, process, require, setImmediate, setInterval, setTimeout
|
|
14
14
|
|
node v10/child_process.d.ts
CHANGED
node v10/http.d.ts
CHANGED
|
@@ -101,8 +101,19 @@ declare module "http" {
|
|
|
101
101
|
|
|
102
102
|
setTimeout(msecs?: number, callback?: () => void): this;
|
|
103
103
|
setTimeout(callback: () => void): this;
|
|
104
|
-
|
|
104
|
+
/**
|
|
105
|
+
* Limits maximum incoming headers count. If set to 0, no limit will be applied.
|
|
106
|
+
* @default 2000
|
|
107
|
+
* {@link https://nodejs.org/api/http.html#http_server_maxheaderscount}
|
|
108
|
+
*/
|
|
109
|
+
maxHeadersCount: number | null;
|
|
105
110
|
timeout: number;
|
|
111
|
+
/**
|
|
112
|
+
* Limit the amount of time the parser will wait to receive the complete HTTP headers.
|
|
113
|
+
* @default 40000
|
|
114
|
+
* {@link https://nodejs.org/api/http.html#http_server_headerstimeout}
|
|
115
|
+
*/
|
|
116
|
+
headersTimeout: number;
|
|
106
117
|
keepAliveTimeout: number;
|
|
107
118
|
}
|
|
108
119
|
|
node v10/http2.d.ts
CHANGED
|
@@ -424,9 +424,7 @@ declare module "http2" {
|
|
|
424
424
|
export interface SecureClientSessionOptions extends ClientSessionOptions, tls.ConnectionOptions { }
|
|
425
425
|
export interface SecureServerSessionOptions extends ServerSessionOptions, tls.TlsOptions { }
|
|
426
426
|
|
|
427
|
-
export interface ServerOptions extends ServerSessionOptions {
|
|
428
|
-
allowHTTP1?: boolean;
|
|
429
|
-
}
|
|
427
|
+
export interface ServerOptions extends ServerSessionOptions { }
|
|
430
428
|
|
|
431
429
|
export interface SecureServerOptions extends SecureServerSessionOptions {
|
|
432
430
|
allowHTTP1?: boolean;
|
node v10/https.d.ts
CHANGED
|
@@ -26,7 +26,19 @@ declare module "https" {
|
|
|
26
26
|
|
|
27
27
|
setTimeout(callback: () => void): this;
|
|
28
28
|
setTimeout(msecs?: number, callback?: () => void): this;
|
|
29
|
+
/**
|
|
30
|
+
* Limits maximum incoming headers count. If set to 0, no limit will be applied.
|
|
31
|
+
* @default 2000
|
|
32
|
+
* {@link https://nodejs.org/api/http.html#http_server_maxheaderscount}
|
|
33
|
+
*/
|
|
34
|
+
maxHeadersCount: number | null;
|
|
29
35
|
timeout: number;
|
|
36
|
+
/**
|
|
37
|
+
* Limit the amount of time the parser will wait to receive the complete HTTP headers.
|
|
38
|
+
* @default 40000
|
|
39
|
+
* {@link https://nodejs.org/api/http.html#http_server_headerstimeout}
|
|
40
|
+
*/
|
|
41
|
+
headersTimeout: number;
|
|
30
42
|
keepAliveTimeout: number;
|
|
31
43
|
}
|
|
32
44
|
|
node v10/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Node.js 10.
|
|
1
|
+
// Type definitions for Node.js 10.14
|
|
2
2
|
// Project: http://nodejs.org/
|
|
3
3
|
// Definitions by: Microsoft TypeScript <https://github.com/Microsoft>
|
|
4
4
|
// DefinitelyTyped <https://github.com/DefinitelyTyped>
|
|
@@ -84,4 +84,8 @@ declare module "util" {
|
|
|
84
84
|
namespace promisify {
|
|
85
85
|
const custom: symbol;
|
|
86
86
|
}
|
|
87
|
+
namespace types {
|
|
88
|
+
function isBigInt64Array(value: any): boolean;
|
|
89
|
+
function isBigUint64Array(value: any): boolean;
|
|
90
|
+
}
|
|
87
91
|
}
|
node v10/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.14.3",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -196,6 +196,6 @@
|
|
|
196
196
|
},
|
|
197
197
|
"scripts": {},
|
|
198
198
|
"dependencies": {},
|
|
199
|
-
"typesPublisherContentHash": "
|
|
199
|
+
"typesPublisherContentHash": "9231104d3906ef64b05d31ef1da631828d13f79c4bbdb7ec3cc282f9c72e9b8d",
|
|
200
200
|
"typeScriptVersion": "2.0"
|
|
201
201
|
}
|
node v10/ts3.2/util.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// tslint:disable-next-line:no-bad-reference
|
|
2
2
|
/// <reference path="../util.d.ts" />
|
|
3
|
+
|
|
3
4
|
declare module "util" {
|
|
4
5
|
namespace inspect {
|
|
5
6
|
const custom: unique symbol;
|
|
@@ -7,4 +8,8 @@ declare module "util" {
|
|
|
7
8
|
namespace promisify {
|
|
8
9
|
const custom: unique symbol;
|
|
9
10
|
}
|
|
11
|
+
namespace types {
|
|
12
|
+
function isBigInt64Array(value: any): value is BigInt64Array;
|
|
13
|
+
function isBigUint64Array(value: any): value is BigUint64Array;
|
|
14
|
+
}
|
|
10
15
|
}
|
node v10/util.d.ts
CHANGED
|
@@ -114,7 +114,7 @@ declare module "util" {
|
|
|
114
114
|
function isArrayBuffer(object: any): object is ArrayBuffer;
|
|
115
115
|
function isAsyncFunction(object: any): boolean;
|
|
116
116
|
function isBooleanObject(object: any): object is Boolean;
|
|
117
|
-
function isBoxedPrimitive(object: any): object is (Number | Boolean | String | Symbol /* BigInt */);
|
|
117
|
+
function isBoxedPrimitive(object: any): object is (Number | Boolean | String | Symbol /* | Object(BigInt) | Object(Symbol) */);
|
|
118
118
|
function isDataView(object: any): object is DataView;
|
|
119
119
|
function isDate(object: any): object is Date;
|
|
120
120
|
function isExternal(object: any): boolean;
|
|
@@ -127,6 +127,7 @@ declare module "util" {
|
|
|
127
127
|
function isInt32Array(object: any): object is Int32Array;
|
|
128
128
|
function isMap(object: any): boolean;
|
|
129
129
|
function isMapIterator(object: any): boolean;
|
|
130
|
+
function isModuleNamespaceObject(value: any): boolean;
|
|
130
131
|
function isNativeError(object: any): object is Error;
|
|
131
132
|
function isNumberObject(object: any): object is Number;
|
|
132
133
|
function isPromise(object: any): boolean;
|