@types/node 13.13.32 → 13.13.36
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 v13.13/README.md +1 -1
- node v13.13/assert.d.ts +4 -2
- node v13.13/globals.d.ts +12 -1
- node v13.13/http.d.ts +1 -1
- node v13.13/package.json +3 -3
- node v13.13/tls.d.ts +1 -1
- node v13.13/ts3.4/assert.d.ts +4 -2
- node v13.13/util.d.ts +26 -13
node v13.13/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/v13.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Sat, 12 Dec 2020 17:18:16 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
|
14
14
|
|
node v13.13/assert.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ declare module 'assert' {
|
|
|
15
15
|
actual?: any;
|
|
16
16
|
expected?: any;
|
|
17
17
|
operator?: string;
|
|
18
|
+
// tslint:disable-next-line:ban-types
|
|
18
19
|
stackStartFn?: Function;
|
|
19
20
|
});
|
|
20
21
|
}
|
|
@@ -28,6 +29,7 @@ declare module 'assert' {
|
|
|
28
29
|
expected: any,
|
|
29
30
|
message?: string | Error,
|
|
30
31
|
operator?: string,
|
|
32
|
+
// tslint:disable-next-line:ban-types
|
|
31
33
|
stackStartFn?: Function,
|
|
32
34
|
): never;
|
|
33
35
|
function ok(value: any, message?: string | Error): asserts value;
|
|
@@ -47,7 +49,7 @@ declare module 'assert' {
|
|
|
47
49
|
function throws(block: () => any, message?: string | Error): void;
|
|
48
50
|
function throws(block: () => any, error: AssertPredicate, message?: string | Error): void;
|
|
49
51
|
function doesNotThrow(block: () => any, message?: string | Error): void;
|
|
50
|
-
function doesNotThrow(block: () => any, error:
|
|
52
|
+
function doesNotThrow(block: () => any, error: AssertPredicate, message?: string | Error): void;
|
|
51
53
|
|
|
52
54
|
function ifError(value: any): asserts value is null | undefined;
|
|
53
55
|
|
|
@@ -60,7 +62,7 @@ declare module 'assert' {
|
|
|
60
62
|
function doesNotReject(block: (() => Promise<any>) | Promise<any>, message?: string | Error): Promise<void>;
|
|
61
63
|
function doesNotReject(
|
|
62
64
|
block: (() => Promise<any>) | Promise<any>,
|
|
63
|
-
error:
|
|
65
|
+
error: AssertPredicate,
|
|
64
66
|
message?: string | Error,
|
|
65
67
|
): Promise<void>;
|
|
66
68
|
|
node v13.13/globals.d.ts
CHANGED
|
@@ -1085,7 +1085,18 @@ declare namespace NodeJS {
|
|
|
1085
1085
|
refresh(): this;
|
|
1086
1086
|
}
|
|
1087
1087
|
|
|
1088
|
-
type TypedArray =
|
|
1088
|
+
type TypedArray =
|
|
1089
|
+
| Uint8Array
|
|
1090
|
+
| Uint8ClampedArray
|
|
1091
|
+
| Uint16Array
|
|
1092
|
+
| Uint32Array
|
|
1093
|
+
| Int8Array
|
|
1094
|
+
| Int16Array
|
|
1095
|
+
| Int32Array
|
|
1096
|
+
| BigUint64Array
|
|
1097
|
+
| BigInt64Array
|
|
1098
|
+
| Float32Array
|
|
1099
|
+
| Float64Array;
|
|
1089
1100
|
type ArrayBufferView = TypedArray | DataView;
|
|
1090
1101
|
|
|
1091
1102
|
interface Require {
|
node v13.13/http.d.ts
CHANGED
|
@@ -198,7 +198,7 @@ declare module "http" {
|
|
|
198
198
|
rawHeaders: string[];
|
|
199
199
|
}
|
|
200
200
|
|
|
201
|
-
// https://github.com/nodejs/node/blob/
|
|
201
|
+
// https://github.com/nodejs/node/blob/v13.14.0/lib/_http_client.js#L86
|
|
202
202
|
class ClientRequest extends OutgoingMessage {
|
|
203
203
|
/**
|
|
204
204
|
* @deprecate Use `socket` instead.
|
node v13.13/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "13.13.
|
|
3
|
+
"version": "13.13.36",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -241,6 +241,6 @@
|
|
|
241
241
|
},
|
|
242
242
|
"scripts": {},
|
|
243
243
|
"dependencies": {},
|
|
244
|
-
"typesPublisherContentHash": "
|
|
245
|
-
"typeScriptVersion": "3.
|
|
244
|
+
"typesPublisherContentHash": "9a04e5f9544dbce1df105b2218f8c7f60800b7c59be3b02981b3cabb236c1694",
|
|
245
|
+
"typeScriptVersion": "3.3"
|
|
246
246
|
}
|
node v13.13/tls.d.ts
CHANGED
node v13.13/ts3.4/assert.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ declare module 'assert' {
|
|
|
15
15
|
actual?: any;
|
|
16
16
|
expected?: any;
|
|
17
17
|
operator?: string;
|
|
18
|
+
// tslint:disable-next-line:ban-types
|
|
18
19
|
stackStartFn?: Function;
|
|
19
20
|
});
|
|
20
21
|
}
|
|
@@ -28,6 +29,7 @@ declare module 'assert' {
|
|
|
28
29
|
expected: any,
|
|
29
30
|
message?: string | Error,
|
|
30
31
|
operator?: string,
|
|
32
|
+
// tslint:disable-next-line:ban-types
|
|
31
33
|
stackStartFn?: Function,
|
|
32
34
|
): never;
|
|
33
35
|
function ok(value: any, message?: string | Error): void;
|
|
@@ -47,7 +49,7 @@ declare module 'assert' {
|
|
|
47
49
|
function throws(block: () => any, message?: string | Error): void;
|
|
48
50
|
function throws(block: () => any, error: AssertPredicate, message?: string | Error): void;
|
|
49
51
|
function doesNotThrow(block: () => any, message?: string | Error): void;
|
|
50
|
-
function doesNotThrow(block: () => any, error:
|
|
52
|
+
function doesNotThrow(block: () => any, error: AssertPredicate, message?: string | Error): void;
|
|
51
53
|
|
|
52
54
|
function ifError(value: any): void;
|
|
53
55
|
|
|
@@ -60,7 +62,7 @@ declare module 'assert' {
|
|
|
60
62
|
function doesNotReject(block: (() => Promise<any>) | Promise<any>, message?: string | Error): Promise<void>;
|
|
61
63
|
function doesNotReject(
|
|
62
64
|
block: (() => Promise<any>) | Promise<any>,
|
|
63
|
-
error:
|
|
65
|
+
error: AssertPredicate,
|
|
64
66
|
message?: string | Error,
|
|
65
67
|
): Promise<void>;
|
|
66
68
|
|
node v13.13/util.d.ts
CHANGED
|
@@ -120,45 +120,58 @@ declare module "util" {
|
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
namespace types {
|
|
123
|
-
function isAnyArrayBuffer(object: any):
|
|
123
|
+
function isAnyArrayBuffer(object: any): object is ArrayBufferLike;
|
|
124
124
|
function isArgumentsObject(object: any): object is IArguments;
|
|
125
125
|
function isArrayBuffer(object: any): object is ArrayBuffer;
|
|
126
|
-
function isArrayBufferView(object: any): object is ArrayBufferView;
|
|
126
|
+
function isArrayBufferView(object: any): object is NodeJS.ArrayBufferView;
|
|
127
127
|
function isAsyncFunction(object: any): boolean;
|
|
128
128
|
function isBigInt64Array(value: any): value is BigInt64Array;
|
|
129
129
|
function isBigUint64Array(value: any): value is BigUint64Array;
|
|
130
130
|
function isBooleanObject(object: any): object is Boolean;
|
|
131
|
-
function isBoxedPrimitive(object: any): object is
|
|
131
|
+
function isBoxedPrimitive(object: any): object is String | Number | BigInt | Boolean | Symbol;
|
|
132
132
|
function isDataView(object: any): object is DataView;
|
|
133
133
|
function isDate(object: any): object is Date;
|
|
134
134
|
function isExternal(object: any): boolean;
|
|
135
135
|
function isFloat32Array(object: any): object is Float32Array;
|
|
136
136
|
function isFloat64Array(object: any): object is Float64Array;
|
|
137
|
-
function isGeneratorFunction(object: any):
|
|
138
|
-
function isGeneratorObject(object: any):
|
|
137
|
+
function isGeneratorFunction(object: any): object is GeneratorFunction;
|
|
138
|
+
function isGeneratorObject(object: any): object is Generator;
|
|
139
139
|
function isInt8Array(object: any): object is Int8Array;
|
|
140
140
|
function isInt16Array(object: any): object is Int16Array;
|
|
141
141
|
function isInt32Array(object: any): object is Int32Array;
|
|
142
|
-
function isMap(
|
|
142
|
+
function isMap<T>(
|
|
143
|
+
object: T | {},
|
|
144
|
+
): object is T extends ReadonlyMap<any, any>
|
|
145
|
+
? unknown extends T
|
|
146
|
+
? never
|
|
147
|
+
: ReadonlyMap<any, any>
|
|
148
|
+
: Map<any, any>;
|
|
143
149
|
function isMapIterator(object: any): boolean;
|
|
144
150
|
function isModuleNamespaceObject(value: any): boolean;
|
|
145
151
|
function isNativeError(object: any): object is Error;
|
|
146
152
|
function isNumberObject(object: any): object is Number;
|
|
147
|
-
function isPromise(object: any):
|
|
153
|
+
function isPromise(object: any): object is Promise<any>;
|
|
148
154
|
function isProxy(object: any): boolean;
|
|
149
155
|
function isRegExp(object: any): object is RegExp;
|
|
150
|
-
function isSet(
|
|
156
|
+
function isSet<T>(
|
|
157
|
+
object: T | {},
|
|
158
|
+
): object is T extends ReadonlySet<any>
|
|
159
|
+
? unknown extends T
|
|
160
|
+
? never
|
|
161
|
+
: ReadonlySet<any>
|
|
162
|
+
: Set<any>;
|
|
151
163
|
function isSetIterator(object: any): boolean;
|
|
152
|
-
function isSharedArrayBuffer(object: any):
|
|
153
|
-
function isStringObject(object: any):
|
|
154
|
-
function isSymbolObject(object: any):
|
|
164
|
+
function isSharedArrayBuffer(object: any): object is SharedArrayBuffer;
|
|
165
|
+
function isStringObject(object: any): object is String;
|
|
166
|
+
function isSymbolObject(object: any): object is Symbol;
|
|
155
167
|
function isTypedArray(object: any): object is NodeJS.TypedArray;
|
|
156
168
|
function isUint8Array(object: any): object is Uint8Array;
|
|
157
169
|
function isUint8ClampedArray(object: any): object is Uint8ClampedArray;
|
|
158
170
|
function isUint16Array(object: any): object is Uint16Array;
|
|
159
171
|
function isUint32Array(object: any): object is Uint32Array;
|
|
160
|
-
function isWeakMap(object: any):
|
|
161
|
-
function isWeakSet(object: any):
|
|
172
|
+
function isWeakMap(object: any): object is WeakMap<any, any>;
|
|
173
|
+
function isWeakSet(object: any): object is WeakSet<any>;
|
|
174
|
+
/** @deprecated Removed in v14.0.0 */
|
|
162
175
|
function isWebAssemblyCompiledModule(object: any): boolean;
|
|
163
176
|
}
|
|
164
177
|
|