@types/node 14.14.7 → 14.14.11
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 +1 -1
- node/assert.d.ts +14 -10
- node/globals.d.ts +12 -1
- node/package.json +3 -3
- node/process.d.ts +1 -1
- node/tls.d.ts +1 -1
- node/util.d.ts +25 -14
node/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.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Tue, 08 Dec 2020 16:56:23 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/assert.d.ts
CHANGED
|
@@ -93,26 +93,30 @@ declare module 'assert' {
|
|
|
93
93
|
|
|
94
94
|
const strict: Omit<
|
|
95
95
|
typeof assert,
|
|
96
|
-
| 'strict'
|
|
97
|
-
| 'deepEqual'
|
|
98
|
-
| 'notDeepEqual'
|
|
99
96
|
| 'equal'
|
|
100
97
|
| 'notEqual'
|
|
98
|
+
| 'deepEqual'
|
|
99
|
+
| 'notDeepEqual'
|
|
101
100
|
| 'ok'
|
|
102
101
|
| 'strictEqual'
|
|
103
102
|
| 'deepStrictEqual'
|
|
104
103
|
| 'ifError'
|
|
104
|
+
| 'strict'
|
|
105
105
|
> & {
|
|
106
106
|
(value: any, message?: string | Error): asserts value;
|
|
107
|
-
strict: typeof strict;
|
|
108
|
-
deepEqual: typeof deepStrictEqual;
|
|
109
|
-
notDeepEqual: typeof notDeepStrictEqual;
|
|
110
107
|
equal: typeof strictEqual;
|
|
111
108
|
notEqual: typeof notStrictEqual;
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
109
|
+
deepEqual: typeof deepStrictEqual;
|
|
110
|
+
notDeepEqual: typeof notDeepStrictEqual;
|
|
111
|
+
|
|
112
|
+
// Mapped types and assertion functions are incompatible?
|
|
113
|
+
// TS2775: Assertions require every name in the call target
|
|
114
|
+
// to be declared with an explicit type annotation.
|
|
115
|
+
ok: typeof ok;
|
|
116
|
+
strictEqual: typeof strictEqual;
|
|
117
|
+
deepStrictEqual: typeof deepStrictEqual;
|
|
118
|
+
ifError: typeof ifError;
|
|
119
|
+
strict: typeof strict;
|
|
116
120
|
};
|
|
117
121
|
}
|
|
118
122
|
|
node/globals.d.ts
CHANGED
|
@@ -555,7 +555,18 @@ declare namespace NodeJS {
|
|
|
555
555
|
[Symbol.toPrimitive](): number;
|
|
556
556
|
}
|
|
557
557
|
|
|
558
|
-
type TypedArray =
|
|
558
|
+
type TypedArray =
|
|
559
|
+
| Uint8Array
|
|
560
|
+
| Uint8ClampedArray
|
|
561
|
+
| Uint16Array
|
|
562
|
+
| Uint32Array
|
|
563
|
+
| Int8Array
|
|
564
|
+
| Int16Array
|
|
565
|
+
| Int32Array
|
|
566
|
+
| BigUint64Array
|
|
567
|
+
| BigInt64Array
|
|
568
|
+
| Float32Array
|
|
569
|
+
| Float64Array;
|
|
559
570
|
type ArrayBufferView = TypedArray | DataView;
|
|
560
571
|
|
|
561
572
|
interface Require {
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "14.14.
|
|
3
|
+
"version": "14.14.11",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -246,6 +246,6 @@
|
|
|
246
246
|
},
|
|
247
247
|
"scripts": {},
|
|
248
248
|
"dependencies": {},
|
|
249
|
-
"typesPublisherContentHash": "
|
|
250
|
-
"typeScriptVersion": "3.
|
|
249
|
+
"typesPublisherContentHash": "75c844e97b20ed36216377480ad7018e135b943a7e6a16a8a860e1ff0371986e",
|
|
250
|
+
"typeScriptVersion": "3.3"
|
|
251
251
|
}
|
node/process.d.ts
CHANGED
node/tls.d.ts
CHANGED
node/util.d.ts
CHANGED
|
@@ -120,46 +120,57 @@ 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):
|
|
162
|
-
function isWebAssemblyCompiledModule(object: any): boolean;
|
|
172
|
+
function isWeakMap(object: any): object is WeakMap<any, any>;
|
|
173
|
+
function isWeakSet(object: any): object is WeakSet<any>;
|
|
163
174
|
}
|
|
164
175
|
|
|
165
176
|
class TextDecoder {
|