@types/node 14.18.8 → 14.18.12
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 v14.18/README.md +2 -2
- node v14.18/globals.d.ts +133 -0
- node v14.18/package.json +2 -2
- node v14.18/url.d.ts +31 -1
node v14.18/README.md
CHANGED
|
@@ -8,9 +8,9 @@ This package contains type definitions for Node.js (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v14.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Mon, 14 Feb 2022 19:31:28 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
|
-
* Global values: `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
|
13
|
+
* Global values: `AbortController`, `AbortSignal`, `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
|
14
14
|
|
|
15
15
|
# Credits
|
|
16
16
|
These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Hoàng Văn Khải](https://github.com/KSXGitHub), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Seth Westphal](https://github.com/westy92), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [Bond](https://github.com/bondz), and [Linus Unnebäck](https://github.com/LinusU).
|
node v14.18/globals.d.ts
CHANGED
|
@@ -75,6 +75,49 @@ type BufferEncoding = "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2"
|
|
|
75
75
|
|
|
76
76
|
type WithImplicitCoercion<T> = T | { valueOf(): T };
|
|
77
77
|
|
|
78
|
+
//#region borrowed
|
|
79
|
+
// from https://github.com/microsoft/TypeScript/blob/38da7c600c83e7b31193a62495239a0fe478cb67/lib/lib.webworker.d.ts#L633 until moved to separate lib
|
|
80
|
+
/**
|
|
81
|
+
* A controller object that allows you to abort one or more DOM requests as and when desired.
|
|
82
|
+
* @since v14.7.0
|
|
83
|
+
*/
|
|
84
|
+
interface AbortController {
|
|
85
|
+
/**
|
|
86
|
+
* Returns the AbortSignal object associated with this object.
|
|
87
|
+
* @since v14.7.0
|
|
88
|
+
*/
|
|
89
|
+
readonly signal: AbortSignal;
|
|
90
|
+
/**
|
|
91
|
+
* Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.
|
|
92
|
+
* @since v14.7.0
|
|
93
|
+
*/
|
|
94
|
+
abort(): void;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object.
|
|
99
|
+
* @since v14.7.0
|
|
100
|
+
*/
|
|
101
|
+
interface AbortSignal {
|
|
102
|
+
/**
|
|
103
|
+
* Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
|
|
104
|
+
* @since v14.7.0
|
|
105
|
+
*/
|
|
106
|
+
readonly aborted: boolean;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
declare var AbortController: {
|
|
110
|
+
prototype: AbortController;
|
|
111
|
+
new(): AbortController;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
declare var AbortSignal: {
|
|
115
|
+
prototype: AbortSignal;
|
|
116
|
+
new(): AbortSignal;
|
|
117
|
+
// TODO: Add abort() static
|
|
118
|
+
};
|
|
119
|
+
//#endregion borrowed
|
|
120
|
+
|
|
78
121
|
/**
|
|
79
122
|
* Raw data is stored in instances of the Buffer class.
|
|
80
123
|
* A Buffer is similar to an array of integers but corresponds to a raw memory allocation outside the V8 heap. A Buffer cannot be resized.
|
|
@@ -255,24 +298,89 @@ declare class Buffer extends Uint8Array {
|
|
|
255
298
|
writeBigInt64BE(value: bigint, offset?: number): number;
|
|
256
299
|
writeBigInt64LE(value: bigint, offset?: number): number;
|
|
257
300
|
writeBigUInt64BE(value: bigint, offset?: number): number;
|
|
301
|
+
/**
|
|
302
|
+
* @alias Buffer.writeBigUInt64BE
|
|
303
|
+
* @since v14.10.0, v12.19.0
|
|
304
|
+
*/
|
|
305
|
+
writeBigUint64BE(value: bigint, offset?: number): number;
|
|
258
306
|
writeBigUInt64LE(value: bigint, offset?: number): number;
|
|
307
|
+
/**
|
|
308
|
+
* @alias Buffer.writeBigUInt64LE
|
|
309
|
+
* @since v14.10.0, v12.19.0
|
|
310
|
+
*/
|
|
311
|
+
writeBigUint64LE(value: bigint, offset?: number): number;
|
|
259
312
|
writeUIntLE(value: number, offset: number, byteLength: number): number;
|
|
313
|
+
/**
|
|
314
|
+
* @alias Buffer.writeUIntLE
|
|
315
|
+
* @since v14.9.0, v12.19.0
|
|
316
|
+
*/
|
|
317
|
+
writeUintLE(value: number, offset: number, byteLength: number): number;
|
|
260
318
|
writeUIntBE(value: number, offset: number, byteLength: number): number;
|
|
319
|
+
/**
|
|
320
|
+
* @alias Buffer.writeUIntBE
|
|
321
|
+
* @since v14.9.0, v12.19.0
|
|
322
|
+
*/
|
|
323
|
+
writeUintBE(value: number, offset: number, byteLength: number): number;
|
|
261
324
|
writeIntLE(value: number, offset: number, byteLength: number): number;
|
|
262
325
|
writeIntBE(value: number, offset: number, byteLength: number): number;
|
|
263
326
|
readBigUInt64BE(offset?: number): bigint;
|
|
327
|
+
/**
|
|
328
|
+
* @alias Buffer.readBigUInt64BE
|
|
329
|
+
* @since v14.10.0, v12.19.0
|
|
330
|
+
*/
|
|
331
|
+
readBigUint64BE(offset?: number): bigint;
|
|
264
332
|
readBigUInt64LE(offset?: number): bigint;
|
|
333
|
+
/**
|
|
334
|
+
* @alias Buffer.readBigUInt64LE
|
|
335
|
+
* @since v14.10.0, v12.19.0
|
|
336
|
+
*/
|
|
337
|
+
readBigUint64LE(offset?: number): bigint;
|
|
265
338
|
readBigInt64BE(offset?: number): bigint;
|
|
266
339
|
readBigInt64LE(offset?: number): bigint;
|
|
267
340
|
readUIntLE(offset: number, byteLength: number): number;
|
|
341
|
+
/**
|
|
342
|
+
* @alias Buffer.readUIntLE
|
|
343
|
+
* @since v14.9.0, v12.19.0
|
|
344
|
+
*/
|
|
345
|
+
readUintLE(offset: number, byteLength: number): number;
|
|
268
346
|
readUIntBE(offset: number, byteLength: number): number;
|
|
347
|
+
/**
|
|
348
|
+
* @alias Buffer.readUIntBE
|
|
349
|
+
* @since v14.9.0, v12.19.0
|
|
350
|
+
*/
|
|
351
|
+
readUintBE(offset: number, byteLength: number): number;
|
|
269
352
|
readIntLE(offset: number, byteLength: number): number;
|
|
270
353
|
readIntBE(offset: number, byteLength: number): number;
|
|
271
354
|
readUInt8(offset?: number): number;
|
|
355
|
+
/**
|
|
356
|
+
* @alias Buffer.readUInt8
|
|
357
|
+
* @since v14.9.0, v12.19.0
|
|
358
|
+
*/
|
|
359
|
+
readUint8(offset?: number): number;
|
|
272
360
|
readUInt16LE(offset?: number): number;
|
|
361
|
+
/**
|
|
362
|
+
* @alias Buffer.readUInt16LE
|
|
363
|
+
* @since v14.9.0, v12.19.0
|
|
364
|
+
*/
|
|
365
|
+
readUint16LE(offset?: number): number;
|
|
273
366
|
readUInt16BE(offset?: number): number;
|
|
367
|
+
/**
|
|
368
|
+
* @alias Buffer.readUInt16BE
|
|
369
|
+
* @since v14.9.0, v12.19.0
|
|
370
|
+
*/
|
|
371
|
+
readUint16BE(offset?: number): number;
|
|
274
372
|
readUInt32LE(offset?: number): number;
|
|
373
|
+
/**
|
|
374
|
+
* @alias Buffer.readUInt32LE
|
|
375
|
+
* @since v14.9.0, v12.19.0
|
|
376
|
+
*/
|
|
377
|
+
readUint32LE(offset?: number): number;
|
|
275
378
|
readUInt32BE(offset?: number): number;
|
|
379
|
+
/**
|
|
380
|
+
* @alias Buffer.readUInt32BE
|
|
381
|
+
* @since v14.9.0, v12.19.0
|
|
382
|
+
*/
|
|
383
|
+
readUint32BE(offset?: number): number;
|
|
276
384
|
readInt8(offset?: number): number;
|
|
277
385
|
readInt16LE(offset?: number): number;
|
|
278
386
|
readInt16BE(offset?: number): number;
|
|
@@ -287,10 +395,35 @@ declare class Buffer extends Uint8Array {
|
|
|
287
395
|
swap32(): Buffer;
|
|
288
396
|
swap64(): Buffer;
|
|
289
397
|
writeUInt8(value: number, offset?: number): number;
|
|
398
|
+
/**
|
|
399
|
+
* @alias Buffer.writeUInt8
|
|
400
|
+
* @since v14.9.0, v12.19.0
|
|
401
|
+
*/
|
|
402
|
+
writeUint8(value: number, offset?: number): number;
|
|
290
403
|
writeUInt16LE(value: number, offset?: number): number;
|
|
404
|
+
/**
|
|
405
|
+
* @alias Buffer.writeUInt16LE
|
|
406
|
+
* @since v14.9.0, v12.19.0
|
|
407
|
+
*/
|
|
408
|
+
writeUint16LE(value: number, offset?: number): number;
|
|
291
409
|
writeUInt16BE(value: number, offset?: number): number;
|
|
410
|
+
/**
|
|
411
|
+
* @alias Buffer.writeUInt16BE
|
|
412
|
+
* @since v14.9.0, v12.19.0
|
|
413
|
+
*/
|
|
414
|
+
writeUint16BE(value: number, offset?: number): number;
|
|
292
415
|
writeUInt32LE(value: number, offset?: number): number;
|
|
416
|
+
/**
|
|
417
|
+
* @alias Buffer.writeUInt32LE
|
|
418
|
+
* @since v14.9.0, v12.19.0
|
|
419
|
+
*/
|
|
420
|
+
writeUint32LE(value: number, offset?: number): number;
|
|
293
421
|
writeUInt32BE(value: number, offset?: number): number;
|
|
422
|
+
/**
|
|
423
|
+
* @alias Buffer.writeUInt32BE
|
|
424
|
+
* @since v14.9.0, v12.19.0
|
|
425
|
+
*/
|
|
426
|
+
writeUint32BE(value: number, offset?: number): number;
|
|
294
427
|
writeInt8(value: number, offset?: number): number;
|
|
295
428
|
writeInt16LE(value: number, offset?: number): number;
|
|
296
429
|
writeInt16BE(value: number, offset?: number): number;
|
node v14.18/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "14.18.
|
|
3
|
+
"version": "14.18.12",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -220,6 +220,6 @@
|
|
|
220
220
|
},
|
|
221
221
|
"scripts": {},
|
|
222
222
|
"dependencies": {},
|
|
223
|
-
"typesPublisherContentHash": "
|
|
223
|
+
"typesPublisherContentHash": "757273e514d1d1b21dac64fec141cfb9376f836ab554e1062dd525c8e14d3c3c",
|
|
224
224
|
"typeScriptVersion": "3.8"
|
|
225
225
|
}
|
node v14.18/url.d.ts
CHANGED
|
@@ -102,7 +102,7 @@ declare module 'url' {
|
|
|
102
102
|
append(name: string, value: string): void;
|
|
103
103
|
delete(name: string): void;
|
|
104
104
|
entries(): IterableIterator<[string, string]>;
|
|
105
|
-
forEach(callback: (value: string, name: string, searchParams:
|
|
105
|
+
forEach(callback: (value: string, name: string, searchParams: URLSearchParams) => void, thisArg?: any): void;
|
|
106
106
|
get(name: string): string | null;
|
|
107
107
|
getAll(name: string): string[];
|
|
108
108
|
has(name: string): boolean;
|
|
@@ -113,6 +113,36 @@ declare module 'url' {
|
|
|
113
113
|
values(): IterableIterator<string>;
|
|
114
114
|
[Symbol.iterator](): IterableIterator<[string, string]>;
|
|
115
115
|
}
|
|
116
|
+
|
|
117
|
+
import { URL as _URL, URLSearchParams as _URLSearchParams } from 'url';
|
|
118
|
+
global {
|
|
119
|
+
interface URLSearchParams extends _URLSearchParams {}
|
|
120
|
+
interface URL extends _URL {}
|
|
121
|
+
interface Global {
|
|
122
|
+
URL: typeof _URL;
|
|
123
|
+
URLSearchParams: typeof _URLSearchParams;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* `URL` class is a global reference for `require('url').URL`
|
|
127
|
+
* https://nodejs.org/api/url.html#the-whatwg-url-api
|
|
128
|
+
* @since v10.0.0
|
|
129
|
+
*/
|
|
130
|
+
var URL:
|
|
131
|
+
// For compatibility with "dom" and "webworker" URL declarations
|
|
132
|
+
typeof globalThis extends { onmessage: any, URL: infer URL }
|
|
133
|
+
? URL
|
|
134
|
+
: typeof _URL;
|
|
135
|
+
/**
|
|
136
|
+
* `URLSearchParams` class is a global reference for `require('url').URLSearchParams`.
|
|
137
|
+
* https://nodejs.org/api/url.html#class-urlsearchparams
|
|
138
|
+
* @since v10.0.0
|
|
139
|
+
*/
|
|
140
|
+
var URLSearchParams:
|
|
141
|
+
// For compatibility with "dom" and "webworker" URLSearchParams declarations
|
|
142
|
+
typeof globalThis extends { onmessage: any, URLSearchParams: infer URLSearchParams }
|
|
143
|
+
? URLSearchParams
|
|
144
|
+
: typeof _URLSearchParams;
|
|
145
|
+
}
|
|
116
146
|
}
|
|
117
147
|
declare module 'node:url' {
|
|
118
148
|
export * from 'url';
|