@types/node 11.15.34 → 11.15.38
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 v11.15/README.md +1 -1
- node v11.15/assert.d.ts +14 -10
- node v11.15/globals.d.ts +14 -3
- node v11.15/package.json +3 -3
- node v11.15/util.d.ts +26 -13
node v11.15/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/v11.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Wed, 25 Nov 2020 06:26:22 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Buffer`, `NodeJS`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
|
14
14
|
|
node v11.15/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 v11.15/globals.d.ts
CHANGED
|
@@ -193,7 +193,6 @@ declare function queueMicrotask(callback: () => void): void;
|
|
|
193
193
|
|
|
194
194
|
// TODO: change to `type NodeRequireFunction = (id: string) => any;` in next mayor version.
|
|
195
195
|
interface NodeRequireFunction {
|
|
196
|
-
/* tslint:disable-next-line:callable-types */
|
|
197
196
|
(id: string): any;
|
|
198
197
|
}
|
|
199
198
|
|
|
@@ -832,7 +831,7 @@ declare namespace NodeJS {
|
|
|
832
831
|
argv0: string;
|
|
833
832
|
execArgv: string[];
|
|
834
833
|
execPath: string;
|
|
835
|
-
abort():
|
|
834
|
+
abort(): never;
|
|
836
835
|
chdir(directory: string): void;
|
|
837
836
|
cwd(): string;
|
|
838
837
|
debugPort: number;
|
|
@@ -1141,5 +1140,17 @@ declare namespace NodeJS {
|
|
|
1141
1140
|
constructor(id: string, parent?: Module);
|
|
1142
1141
|
}
|
|
1143
1142
|
|
|
1144
|
-
type TypedArray =
|
|
1143
|
+
type TypedArray =
|
|
1144
|
+
| Uint8Array
|
|
1145
|
+
| Uint8ClampedArray
|
|
1146
|
+
| Uint16Array
|
|
1147
|
+
| Uint32Array
|
|
1148
|
+
| Int8Array
|
|
1149
|
+
| Int16Array
|
|
1150
|
+
| Int32Array
|
|
1151
|
+
| BigUint64Array
|
|
1152
|
+
| BigInt64Array
|
|
1153
|
+
| Float32Array
|
|
1154
|
+
| Float64Array;
|
|
1155
|
+
type ArrayBufferView = TypedArray | DataView;
|
|
1145
1156
|
}
|
node v11.15/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "11.15.
|
|
3
|
+
"version": "11.15.38",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -211,6 +211,6 @@
|
|
|
211
211
|
},
|
|
212
212
|
"scripts": {},
|
|
213
213
|
"dependencies": {},
|
|
214
|
-
"typesPublisherContentHash": "
|
|
215
|
-
"typeScriptVersion": "3.
|
|
214
|
+
"typesPublisherContentHash": "b32169c74a075a99fe4de6aa6af4aaa7b2d0e2d9709a0b0a4d878a902ef9ee56",
|
|
215
|
+
"typeScriptVersion": "3.3"
|
|
216
216
|
}
|
node v11.15/util.d.ts
CHANGED
|
@@ -118,45 +118,58 @@ declare module "util" {
|
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
namespace types {
|
|
121
|
-
function isAnyArrayBuffer(object: any):
|
|
121
|
+
function isAnyArrayBuffer(object: any): object is ArrayBufferLike;
|
|
122
122
|
function isArgumentsObject(object: any): object is IArguments;
|
|
123
123
|
function isArrayBuffer(object: any): object is ArrayBuffer;
|
|
124
|
-
function isArrayBufferView(object: any): object is ArrayBufferView;
|
|
124
|
+
function isArrayBufferView(object: any): object is NodeJS.ArrayBufferView;
|
|
125
125
|
function isAsyncFunction(object: any): boolean;
|
|
126
126
|
function isBigInt64Array(value: any): value is BigInt64Array;
|
|
127
127
|
function isBigUint64Array(value: any): value is BigUint64Array;
|
|
128
128
|
function isBooleanObject(object: any): object is Boolean;
|
|
129
|
-
function isBoxedPrimitive(object: any): object is
|
|
129
|
+
function isBoxedPrimitive(object: any): object is String | Number | BigInt | Boolean | Symbol;
|
|
130
130
|
function isDataView(object: any): object is DataView;
|
|
131
131
|
function isDate(object: any): object is Date;
|
|
132
132
|
function isExternal(object: any): boolean;
|
|
133
133
|
function isFloat32Array(object: any): object is Float32Array;
|
|
134
134
|
function isFloat64Array(object: any): object is Float64Array;
|
|
135
|
-
function isGeneratorFunction(object: any):
|
|
136
|
-
function isGeneratorObject(object: any):
|
|
135
|
+
function isGeneratorFunction(object: any): object is GeneratorFunction;
|
|
136
|
+
function isGeneratorObject(object: any): object is Generator;
|
|
137
137
|
function isInt8Array(object: any): object is Int8Array;
|
|
138
138
|
function isInt16Array(object: any): object is Int16Array;
|
|
139
139
|
function isInt32Array(object: any): object is Int32Array;
|
|
140
|
-
function isMap(
|
|
140
|
+
function isMap<T>(
|
|
141
|
+
object: T | {},
|
|
142
|
+
): object is T extends ReadonlyMap<any, any>
|
|
143
|
+
? unknown extends T
|
|
144
|
+
? never
|
|
145
|
+
: ReadonlyMap<any, any>
|
|
146
|
+
: Map<any, any>;
|
|
141
147
|
function isMapIterator(object: any): boolean;
|
|
142
148
|
function isModuleNamespaceObject(value: any): boolean;
|
|
143
149
|
function isNativeError(object: any): object is Error;
|
|
144
150
|
function isNumberObject(object: any): object is Number;
|
|
145
|
-
function isPromise(object: any):
|
|
151
|
+
function isPromise(object: any): object is Promise<any>;
|
|
146
152
|
function isProxy(object: any): boolean;
|
|
147
153
|
function isRegExp(object: any): object is RegExp;
|
|
148
|
-
function isSet(
|
|
154
|
+
function isSet<T>(
|
|
155
|
+
object: T | {},
|
|
156
|
+
): object is T extends ReadonlySet<any>
|
|
157
|
+
? unknown extends T
|
|
158
|
+
? never
|
|
159
|
+
: ReadonlySet<any>
|
|
160
|
+
: Set<any>;
|
|
149
161
|
function isSetIterator(object: any): boolean;
|
|
150
|
-
function isSharedArrayBuffer(object: any):
|
|
151
|
-
function isStringObject(object: any):
|
|
152
|
-
function isSymbolObject(object: any):
|
|
162
|
+
function isSharedArrayBuffer(object: any): object is SharedArrayBuffer;
|
|
163
|
+
function isStringObject(object: any): object is String;
|
|
164
|
+
function isSymbolObject(object: any): object is Symbol;
|
|
153
165
|
function isTypedArray(object: any): object is NodeJS.TypedArray;
|
|
154
166
|
function isUint8Array(object: any): object is Uint8Array;
|
|
155
167
|
function isUint8ClampedArray(object: any): object is Uint8ClampedArray;
|
|
156
168
|
function isUint16Array(object: any): object is Uint16Array;
|
|
157
169
|
function isUint32Array(object: any): object is Uint32Array;
|
|
158
|
-
function isWeakMap(object: any):
|
|
159
|
-
function isWeakSet(object: any):
|
|
170
|
+
function isWeakMap(object: any): object is WeakMap<any, any>;
|
|
171
|
+
function isWeakSet(object: any): object is WeakSet<any>;
|
|
172
|
+
/** @deprecated Removed in v14.0.0 */
|
|
160
173
|
function isWebAssemblyCompiledModule(object: any): boolean;
|
|
161
174
|
}
|
|
162
175
|
|