@types/node 11.15.37 → 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 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: Thu, 19 Nov 2020 21:27:33 GMT
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
 
@@ -1140,5 +1140,17 @@ declare namespace NodeJS {
1140
1140
  constructor(id: string, parent?: Module);
1141
1141
  }
1142
1142
 
1143
- type TypedArray = Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array | Int8Array | Int16Array | Int32Array | Float32Array | Float64Array;
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;
1144
1156
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "11.15.37",
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": "1f83013d40c8700f59f0f3f12dd45eb10be0604e84672fe56f5aed672c553638",
215
- "typeScriptVersion": "3.2"
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): boolean;
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 (Number | Boolean | String | Symbol /* | Object(BigInt) | Object(Symbol) */);
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): boolean;
136
- function isGeneratorObject(object: any): boolean;
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(object: any): boolean;
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): boolean;
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(object: any): boolean;
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): boolean;
151
- function isStringObject(object: any): boolean;
152
- function isSymbolObject(object: any): boolean;
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): boolean;
159
- function isWeakSet(object: any): boolean;
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