@types/node 10.17.44 → 10.17.48
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.17/README.md +1 -1
- node v10.17/assert.d.ts +14 -10
- node v10.17/globals.d.ts +14 -2
- node v10.17/http.d.ts +1 -1
- node v10.17/package.json +3 -3
- node v10.17/util.d.ts +26 -14
node v10.17/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: Mon, 30 Nov 2020 19:02:28 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Buffer`, `NodeJS`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
|
14
14
|
|
node v10.17/assert.d.ts
CHANGED
|
@@ -64,26 +64,30 @@ declare module 'assert' {
|
|
|
64
64
|
|
|
65
65
|
const strict: Omit<
|
|
66
66
|
typeof assert,
|
|
67
|
-
| 'strict'
|
|
68
|
-
| 'deepEqual'
|
|
69
|
-
| 'notDeepEqual'
|
|
70
67
|
| 'equal'
|
|
71
68
|
| 'notEqual'
|
|
69
|
+
| 'deepEqual'
|
|
70
|
+
| 'notDeepEqual'
|
|
72
71
|
| 'ok'
|
|
73
72
|
| 'strictEqual'
|
|
74
73
|
| 'deepStrictEqual'
|
|
75
74
|
| 'ifError'
|
|
75
|
+
| 'strict'
|
|
76
76
|
> & {
|
|
77
77
|
(value: any, message?: string | Error): asserts value;
|
|
78
|
-
strict: typeof strict;
|
|
79
|
-
deepEqual: typeof deepStrictEqual;
|
|
80
|
-
notDeepEqual: typeof notDeepStrictEqual;
|
|
81
78
|
equal: typeof strictEqual;
|
|
82
79
|
notEqual: typeof notStrictEqual;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
80
|
+
deepEqual: typeof deepStrictEqual;
|
|
81
|
+
notDeepEqual: typeof notDeepStrictEqual;
|
|
82
|
+
|
|
83
|
+
// Mapped types and assertion functions are incompatible?
|
|
84
|
+
// TS2775: Assertions require every name in the call target
|
|
85
|
+
// to be declared with an explicit type annotation.
|
|
86
|
+
ok: typeof ok;
|
|
87
|
+
strictEqual: typeof strictEqual;
|
|
88
|
+
deepStrictEqual: typeof deepStrictEqual;
|
|
89
|
+
ifError: typeof ifError;
|
|
90
|
+
strict: typeof strict;
|
|
87
91
|
};
|
|
88
92
|
}
|
|
89
93
|
|
node v10.17/globals.d.ts
CHANGED
|
@@ -721,7 +721,7 @@ declare namespace NodeJS {
|
|
|
721
721
|
argv0: string;
|
|
722
722
|
execArgv: string[];
|
|
723
723
|
execPath: string;
|
|
724
|
-
abort():
|
|
724
|
+
abort(): never;
|
|
725
725
|
chdir(directory: string): void;
|
|
726
726
|
cwd(): string;
|
|
727
727
|
debugPort: number;
|
|
@@ -1009,5 +1009,17 @@ declare namespace NodeJS {
|
|
|
1009
1009
|
constructor(id: string, parent?: Module);
|
|
1010
1010
|
}
|
|
1011
1011
|
|
|
1012
|
-
type TypedArray =
|
|
1012
|
+
type TypedArray =
|
|
1013
|
+
| Uint8Array
|
|
1014
|
+
| Uint8ClampedArray
|
|
1015
|
+
| Uint16Array
|
|
1016
|
+
| Uint32Array
|
|
1017
|
+
| Int8Array
|
|
1018
|
+
| Int16Array
|
|
1019
|
+
| Int32Array
|
|
1020
|
+
| BigUint64Array
|
|
1021
|
+
| BigInt64Array
|
|
1022
|
+
| Float32Array
|
|
1023
|
+
| Float64Array;
|
|
1024
|
+
type ArrayBufferView = TypedArray | DataView;
|
|
1013
1025
|
}
|
node v10.17/http.d.ts
CHANGED
|
@@ -160,7 +160,7 @@ declare module "http" {
|
|
|
160
160
|
writeHead(statusCode: number, headers?: OutgoingHttpHeaders): void;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
// https://github.com/nodejs/node/blob/
|
|
163
|
+
// https://github.com/nodejs/node/blob/v10.23.0/lib/_http_client.js#L65
|
|
164
164
|
class ClientRequest extends OutgoingMessage {
|
|
165
165
|
connection: net.Socket;
|
|
166
166
|
socket: net.Socket;
|
node v10.17/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "10.17.
|
|
3
|
+
"version": "10.17.48",
|
|
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": "
|
|
200
|
-
"typeScriptVersion": "3.
|
|
199
|
+
"typesPublisherContentHash": "cc7949e585ef394d2a1462d2d916e5399789dd6b9fdab3458e97b0479a319089",
|
|
200
|
+
"typeScriptVersion": "3.3"
|
|
201
201
|
}
|
node v10.17/util.d.ts
CHANGED
|
@@ -110,46 +110,58 @@ declare module "util" {
|
|
|
110
110
|
function promisify(fn: Function): Function;
|
|
111
111
|
|
|
112
112
|
namespace types {
|
|
113
|
-
|
|
114
|
-
function isAnyArrayBuffer(object: any): boolean;
|
|
113
|
+
function isAnyArrayBuffer(object: any): object is ArrayBufferLike;
|
|
115
114
|
function isArgumentsObject(object: any): object is IArguments;
|
|
116
115
|
function isArrayBuffer(object: any): object is ArrayBuffer;
|
|
117
|
-
function isArrayBufferView(object: any): object is ArrayBufferView;
|
|
116
|
+
function isArrayBufferView(object: any): object is NodeJS.ArrayBufferView;
|
|
118
117
|
function isAsyncFunction(object: any): boolean;
|
|
119
118
|
function isBigInt64Array(value: any): value is BigInt64Array;
|
|
120
119
|
function isBigUint64Array(value: any): value is BigUint64Array;
|
|
121
120
|
function isBooleanObject(object: any): object is Boolean;
|
|
122
|
-
function isBoxedPrimitive(object: any): object is
|
|
121
|
+
function isBoxedPrimitive(object: any): object is String | Number | BigInt | Boolean | Symbol;
|
|
123
122
|
function isDataView(object: any): object is DataView;
|
|
124
123
|
function isDate(object: any): object is Date;
|
|
125
124
|
function isExternal(object: any): boolean;
|
|
126
125
|
function isFloat32Array(object: any): object is Float32Array;
|
|
127
126
|
function isFloat64Array(object: any): object is Float64Array;
|
|
128
|
-
function isGeneratorFunction(object: any):
|
|
129
|
-
function isGeneratorObject(object: any):
|
|
127
|
+
function isGeneratorFunction(object: any): object is GeneratorFunction;
|
|
128
|
+
function isGeneratorObject(object: any): object is Generator;
|
|
130
129
|
function isInt8Array(object: any): object is Int8Array;
|
|
131
130
|
function isInt16Array(object: any): object is Int16Array;
|
|
132
131
|
function isInt32Array(object: any): object is Int32Array;
|
|
133
|
-
function isMap(
|
|
132
|
+
function isMap<T>(
|
|
133
|
+
object: T | {},
|
|
134
|
+
): object is T extends ReadonlyMap<any, any>
|
|
135
|
+
? unknown extends T
|
|
136
|
+
? never
|
|
137
|
+
: ReadonlyMap<any, any>
|
|
138
|
+
: Map<any, any>;
|
|
134
139
|
function isMapIterator(object: any): boolean;
|
|
135
140
|
function isModuleNamespaceObject(value: any): boolean;
|
|
136
141
|
function isNativeError(object: any): object is Error;
|
|
137
142
|
function isNumberObject(object: any): object is Number;
|
|
138
|
-
function isPromise(object: any):
|
|
143
|
+
function isPromise(object: any): object is Promise<any>;
|
|
139
144
|
function isProxy(object: any): boolean;
|
|
140
145
|
function isRegExp(object: any): object is RegExp;
|
|
141
|
-
function isSet(
|
|
146
|
+
function isSet<T>(
|
|
147
|
+
object: T | {},
|
|
148
|
+
): object is T extends ReadonlySet<any>
|
|
149
|
+
? unknown extends T
|
|
150
|
+
? never
|
|
151
|
+
: ReadonlySet<any>
|
|
152
|
+
: Set<any>;
|
|
142
153
|
function isSetIterator(object: any): boolean;
|
|
143
|
-
function isSharedArrayBuffer(object: any):
|
|
144
|
-
function isStringObject(object: any):
|
|
145
|
-
function isSymbolObject(object: any):
|
|
154
|
+
function isSharedArrayBuffer(object: any): object is SharedArrayBuffer;
|
|
155
|
+
function isStringObject(object: any): object is String;
|
|
156
|
+
function isSymbolObject(object: any): object is Symbol;
|
|
146
157
|
function isTypedArray(object: any): object is NodeJS.TypedArray;
|
|
147
158
|
function isUint8Array(object: any): object is Uint8Array;
|
|
148
159
|
function isUint8ClampedArray(object: any): object is Uint8ClampedArray;
|
|
149
160
|
function isUint16Array(object: any): object is Uint16Array;
|
|
150
161
|
function isUint32Array(object: any): object is Uint32Array;
|
|
151
|
-
function isWeakMap(object: any):
|
|
152
|
-
function isWeakSet(object: any):
|
|
162
|
+
function isWeakMap(object: any): object is WeakMap<any, any>;
|
|
163
|
+
function isWeakSet(object: any): object is WeakSet<any>;
|
|
164
|
+
/** @deprecated Removed in v14.0.0 */
|
|
153
165
|
function isWebAssemblyCompiledModule(object: any): boolean;
|
|
154
166
|
}
|
|
155
167
|
|