@types/node 12.12.58 → 12.12.62
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 v12.12/README.md +2 -2
- node v12.12/{ts3.1/async_hooks.d.ts → async_hooks.d.ts} +0 -0
- node v12.12/{ts3.1/buffer.d.ts → buffer.d.ts} +0 -0
- node v12.12/{ts3.1/child_process.d.ts → child_process.d.ts} +0 -0
- node v12.12/{ts3.1/cluster.d.ts → cluster.d.ts} +0 -0
- node v12.12/{ts3.1/console.d.ts → console.d.ts} +0 -0
- node v12.12/{ts3.1/constants.d.ts → constants.d.ts} +0 -0
- node v12.12/{ts3.1/crypto.d.ts → crypto.d.ts } +20 -12
- node v12.12/{ts3.1/dgram.d.ts → dgram.d.ts} +0 -0
- node v12.12/{ts3.1/dns.d.ts → dns.d.ts} +0 -0
- node v12.12/{ts3.1/domain.d.ts → domain.d.ts} +0 -0
- node v12.12/{ts3.1/events.d.ts → events.d.ts} +0 -0
- node v12.12/{ts3.1/fs.d.ts → fs.d.ts } +24 -0
- node v12.12/{ts3.1/globals.d.ts → globals.d.ts } +9 -7
- node v12.12/{ts3.6/globals.global.d.ts → globals.global.d.ts} +0 -0
- node v12.12/{ts3.1/http.d.ts → http.d.ts} +0 -0
- node v12.12/{ts3.1/http2.d.ts → http2.d.ts} +0 -0
- node v12.12/{ts3.1/https.d.ts → https.d.ts} +0 -0
- node v12.12/{ts3.1/inspector.d.ts → inspector.d.ts} +0 -0
- node v12.12/{ts3.1/module.d.ts → module.d.ts} +0 -0
- node v12.12/{ts3.1/net.d.ts → net.d.ts} +0 -0
- node v12.12/{ts3.1/os.d.ts → os.d.ts} +0 -0
- node v12.12/package.json +3 -8
- node v12.12/{ts3.1/path.d.ts → path.d.ts} +0 -0
- node v12.12/{ts3.1/perf_hooks.d.ts → perf_hooks.d.ts} +0 -0
- node v12.12/{ts3.1/process.d.ts → process.d.ts} +0 -0
- node v12.12/{ts3.1/punycode.d.ts → punycode.d.ts} +0 -0
- node v12.12/{ts3.1/querystring.d.ts → querystring.d.ts} +0 -0
- node v12.12/{ts3.1/readline.d.ts → readline.d.ts} +0 -0
- node v12.12/{ts3.1/repl.d.ts → repl.d.ts} +0 -0
- node v12.12/{ts3.1/stream.d.ts → stream.d.ts} +0 -0
- node v12.12/{ts3.1/string_decoder.d.ts → string_decoder.d.ts} +0 -0
- node v12.12/{ts3.1/timers.d.ts → timers.d.ts} +0 -0
- node v12.12/{ts3.1/tls.d.ts → tls.d.ts} +0 -0
- node v12.12/{ts3.1/trace_events.d.ts → trace_events.d.ts} +0 -0
- node v12.12/{ts3.1 → ts3.3}/assert.d.ts +0 -0
- node v12.12/ts3.3/base.d.ts +39 -7
- node v12.12/{ts3.1 → ts3.3}/globals.global.d.ts +0 -0
- node v12.12/ts3.3/index.d.ts +2 -6
- node v12.12/ts3.6/base.d.ts +1 -1
- node v12.12/ts3.6/index.d.ts +1 -1
- node v12.12/{ts3.1/tty.d.ts → tty.d.ts} +0 -0
- node v12.12/{ts3.1/url.d.ts → url.d.ts} +0 -0
- node v12.12/{ts3.1/util.d.ts → util.d.ts } +6 -0
- node v12.12/{ts3.1/v8.d.ts → v8.d.ts} +0 -0
- node v12.12/{ts3.1/vm.d.ts → vm.d.ts} +0 -0
- node v12.12/{ts3.1/worker_threads.d.ts → worker_threads.d.ts} +0 -0
- node v12.12/{ts3.1/zlib.d.ts → zlib.d.ts} +0 -0
- node v12.12/ts3.1/base.d.ts +0 -40
- node v12.12/ts3.1/index.d.ts +0 -65
- node v12.12/ts3.3/fs.d.ts +0 -33
- node v12.12/ts3.3/globals.d.ts +0 -19
- node v12.12/ts3.3/util.d.ts +0 -15
node v12.12/README.md
CHANGED
|
@@ -8,9 +8,9 @@ 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/v12.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Thu, 17 Sep 2020 17:55:14 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
|
-
* Global values: `Buffer`, `NodeJS`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout
|
|
13
|
+
* Global values: `Buffer`, `NodeJS`, `__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), [Alexander T.](https://github.com/a-tarasyuk), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Bruno Scheufler](https://github.com/brunoscheufler), [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), [Flarna](https://github.com/Flarna), [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), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Zane Hannan AU](https://github.com/ZaneHannanAU), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Jordi Oliveras Rovira](https://github.com/j-oliveras), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Minh Son Nguyen](https://github.com/nguymin4), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), and [Jason Kwok](https://github.com/JasonHK).
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -210,14 +210,14 @@ declare module "crypto" {
|
|
|
210
210
|
final(output_encoding: string): string;
|
|
211
211
|
setAutoPadding(auto_padding?: boolean): this;
|
|
212
212
|
// getAuthTag(): Buffer;
|
|
213
|
-
// setAAD(buffer:
|
|
213
|
+
// setAAD(buffer: NodeJS.ArrayBufferView): this;
|
|
214
214
|
}
|
|
215
215
|
interface CipherCCM extends Cipher {
|
|
216
|
-
setAAD(buffer:
|
|
216
|
+
setAAD(buffer: NodeJS.ArrayBufferView, options: { plaintextLength: number }): this;
|
|
217
217
|
getAuthTag(): Buffer;
|
|
218
218
|
}
|
|
219
219
|
interface CipherGCM extends Cipher {
|
|
220
|
-
setAAD(buffer:
|
|
220
|
+
setAAD(buffer: NodeJS.ArrayBufferView, options?: { plaintextLength: number }): this;
|
|
221
221
|
getAuthTag(): Buffer;
|
|
222
222
|
}
|
|
223
223
|
/** @deprecated since v10.0.0 use createDecipheriv() */
|
|
@@ -281,16 +281,27 @@ declare module "crypto" {
|
|
|
281
281
|
|
|
282
282
|
function createSign(algorithm: string, options?: stream.WritableOptions): Signer;
|
|
283
283
|
|
|
284
|
+
type DSAEncoding = 'der' | 'ieee-p1363';
|
|
285
|
+
|
|
284
286
|
interface SigningOptions {
|
|
285
287
|
/**
|
|
286
288
|
* @See crypto.constants.RSA_PKCS1_PADDING
|
|
287
289
|
*/
|
|
288
290
|
padding?: number;
|
|
289
291
|
saltLength?: number;
|
|
292
|
+
dsaEncoding?: DSAEncoding;
|
|
290
293
|
}
|
|
291
294
|
|
|
292
295
|
interface SignPrivateKeyInput extends PrivateKeyInput, SigningOptions {
|
|
293
296
|
}
|
|
297
|
+
interface SignKeyObjectInput extends SigningOptions {
|
|
298
|
+
key: KeyObject;
|
|
299
|
+
}
|
|
300
|
+
interface VerifyPublicKeyInput extends PublicKeyInput, SigningOptions {
|
|
301
|
+
}
|
|
302
|
+
interface VerifyKeyObjectInput extends SigningOptions {
|
|
303
|
+
key: KeyObject;
|
|
304
|
+
}
|
|
294
305
|
|
|
295
306
|
type KeyLike = string | Buffer | KeyObject;
|
|
296
307
|
|
|
@@ -299,8 +310,8 @@ declare module "crypto" {
|
|
|
299
310
|
|
|
300
311
|
update(data: BinaryLike): Signer;
|
|
301
312
|
update(data: string, input_encoding: Utf8AsciiLatin1Encoding): Signer;
|
|
302
|
-
sign(private_key:
|
|
303
|
-
sign(private_key:
|
|
313
|
+
sign(private_key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput): Buffer;
|
|
314
|
+
sign(private_key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput, output_format: HexBase64Latin1Encoding): string;
|
|
304
315
|
}
|
|
305
316
|
|
|
306
317
|
function createVerify(algorithm: string, options?: stream.WritableOptions): Verify;
|
|
@@ -309,8 +320,8 @@ declare module "crypto" {
|
|
|
309
320
|
|
|
310
321
|
update(data: BinaryLike): Verify;
|
|
311
322
|
update(data: string, input_encoding: Utf8AsciiLatin1Encoding): Verify;
|
|
312
|
-
verify(object:
|
|
313
|
-
verify(object:
|
|
323
|
+
verify(object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: NodeJS.ArrayBufferView): boolean;
|
|
324
|
+
verify(object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: string, signature_format?: HexBase64Latin1Encoding): boolean;
|
|
314
325
|
// https://nodejs.org/api/crypto.html#crypto_verifier_verify_object_signature_signature_format
|
|
315
326
|
// The signature field accepts a TypedArray type, but it is only available starting ES2017
|
|
316
327
|
}
|
|
@@ -598,10 +609,7 @@ declare module "crypto" {
|
|
|
598
609
|
* If `key` is not a [`KeyObject`][], this function behaves as if `key` had been
|
|
599
610
|
* passed to [`crypto.createPrivateKey()`][].
|
|
600
611
|
*/
|
|
601
|
-
function sign(algorithm: string | null | undefined, data: NodeJS.ArrayBufferView, key: KeyLike | SignPrivateKeyInput): Buffer;
|
|
602
|
-
|
|
603
|
-
interface VerifyKeyWithOptions extends KeyObject, SigningOptions {
|
|
604
|
-
}
|
|
612
|
+
function sign(algorithm: string | null | undefined, data: NodeJS.ArrayBufferView, key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput): Buffer;
|
|
605
613
|
|
|
606
614
|
/**
|
|
607
615
|
* Calculates and returns the signature for `data` using the given private key and
|
|
@@ -611,5 +619,5 @@ declare module "crypto" {
|
|
|
611
619
|
* If `key` is not a [`KeyObject`][], this function behaves as if `key` had been
|
|
612
620
|
* passed to [`crypto.createPublicKey()`][].
|
|
613
621
|
*/
|
|
614
|
-
function verify(algorithm: string | null | undefined, data: NodeJS.ArrayBufferView, key: KeyLike |
|
|
622
|
+
function verify(algorithm: string | null | undefined, data: NodeJS.ArrayBufferView, key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: NodeJS.ArrayBufferView): Buffer;
|
|
615
623
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -422,6 +422,8 @@ declare module "fs" {
|
|
|
422
422
|
* Asynchronous stat(2) - Get file status.
|
|
423
423
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
424
424
|
*/
|
|
425
|
+
function stat(path: PathLike, options: BigIntOptions, callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void): void;
|
|
426
|
+
function stat(path: PathLike, options: StatOptions, callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void): void;
|
|
425
427
|
function stat(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void;
|
|
426
428
|
|
|
427
429
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
@@ -430,6 +432,8 @@ declare module "fs" {
|
|
|
430
432
|
* Asynchronous stat(2) - Get file status.
|
|
431
433
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
432
434
|
*/
|
|
435
|
+
function __promisify__(path: PathLike, options: BigIntOptions): Promise<BigIntStats>;
|
|
436
|
+
function __promisify__(path: PathLike, options: StatOptions): Promise<Stats | BigIntStats>;
|
|
433
437
|
function __promisify__(path: PathLike): Promise<Stats>;
|
|
434
438
|
}
|
|
435
439
|
|
|
@@ -437,6 +441,8 @@ declare module "fs" {
|
|
|
437
441
|
* Synchronous stat(2) - Get file status.
|
|
438
442
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
439
443
|
*/
|
|
444
|
+
function statSync(path: PathLike, options: BigIntOptions): BigIntStats;
|
|
445
|
+
function statSync(path: PathLike, options: StatOptions): Stats | BigIntStats;
|
|
440
446
|
function statSync(path: PathLike): Stats;
|
|
441
447
|
|
|
442
448
|
/**
|
|
@@ -2449,4 +2455,22 @@ declare module "fs" {
|
|
|
2449
2455
|
|
|
2450
2456
|
function opendir(path: string, options?: OpenDirOptions): Promise<Dir>;
|
|
2451
2457
|
}
|
|
2458
|
+
|
|
2459
|
+
interface BigIntStats extends StatsBase<bigint> {
|
|
2460
|
+
}
|
|
2461
|
+
|
|
2462
|
+
class BigIntStats {
|
|
2463
|
+
atimeNs: bigint;
|
|
2464
|
+
mtimeNs: bigint;
|
|
2465
|
+
ctimeNs: bigint;
|
|
2466
|
+
birthtimeNs: bigint;
|
|
2467
|
+
}
|
|
2468
|
+
|
|
2469
|
+
interface BigIntOptions {
|
|
2470
|
+
bigint: true;
|
|
2471
|
+
}
|
|
2472
|
+
|
|
2473
|
+
interface StatOptions {
|
|
2474
|
+
bigint: boolean;
|
|
2475
|
+
}
|
|
2452
2476
|
}
|
|
@@ -252,6 +252,14 @@ type BufferEncoding = "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2"
|
|
|
252
252
|
|
|
253
253
|
interface Buffer {
|
|
254
254
|
constructor: typeof Buffer;
|
|
255
|
+
readBigUInt64BE(offset?: number): bigint;
|
|
256
|
+
readBigUInt64LE(offset?: number): bigint;
|
|
257
|
+
readBigInt64BE(offset?: number): bigint;
|
|
258
|
+
readBigInt64LE(offset?: number): bigint;
|
|
259
|
+
writeBigInt64BE(value: bigint, offset?: number): number;
|
|
260
|
+
writeBigInt64LE(value: bigint, offset?: number): number;
|
|
261
|
+
writeBigUInt64BE(value: bigint, offset?: number): number;
|
|
262
|
+
writeBigUInt64LE(value: bigint, offset?: number): number;
|
|
255
263
|
}
|
|
256
264
|
|
|
257
265
|
/**
|
|
@@ -755,6 +763,7 @@ declare namespace NodeJS {
|
|
|
755
763
|
|
|
756
764
|
interface HRTime {
|
|
757
765
|
(time?: [number, number]): [number, number];
|
|
766
|
+
bigint(): bigint;
|
|
758
767
|
}
|
|
759
768
|
|
|
760
769
|
interface ProcessReport {
|
|
@@ -1180,11 +1189,4 @@ declare namespace NodeJS {
|
|
|
1180
1189
|
|
|
1181
1190
|
type TypedArray = Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array | Int8Array | Int16Array | Int32Array | Float32Array | Float64Array;
|
|
1182
1191
|
type ArrayBufferView = TypedArray | DataView;
|
|
1183
|
-
|
|
1184
|
-
// TODO: The value type here is a version of `unknown` with an acceptably lossy amount of accuracy.
|
|
1185
|
-
// Now that TypeScript's DT support is 3.0+, we can look into replacing this with `unknown`.
|
|
1186
|
-
type UnknownFacade = {} | null | undefined;
|
|
1187
|
-
|
|
1188
|
-
/** @deprecated - Use `UnknownFacade` instead. It is a better classifier for the type */
|
|
1189
|
-
type PoorMansUnknown = UnknownFacade;
|
|
1190
1192
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
node v12.12/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "12.12.
|
|
3
|
+
"version": "12.12.62",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -213,11 +213,6 @@
|
|
|
213
213
|
"main": "",
|
|
214
214
|
"types": "index.d.ts",
|
|
215
215
|
"typesVersions": {
|
|
216
|
-
"<=3.1": {
|
|
217
|
-
"*": [
|
|
218
|
-
"ts3.1/*"
|
|
219
|
-
]
|
|
220
|
-
},
|
|
221
216
|
"<=3.3": {
|
|
222
217
|
"*": [
|
|
223
218
|
"ts3.3/*"
|
|
@@ -236,6 +231,6 @@
|
|
|
236
231
|
},
|
|
237
232
|
"scripts": {},
|
|
238
233
|
"dependencies": {},
|
|
239
|
-
"typesPublisherContentHash": "
|
|
240
|
-
"typeScriptVersion": "3.
|
|
234
|
+
"typesPublisherContentHash": "872c2e50f957190b658ba87e71464f01ee125836a9d8033b19f4920ee6334c97",
|
|
235
|
+
"typeScriptVersion": "3.2"
|
|
241
236
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
node v12.12/ts3.3/base.d.ts
CHANGED
|
@@ -13,10 +13,42 @@
|
|
|
13
13
|
/// <reference lib="esnext.bigint" />
|
|
14
14
|
|
|
15
15
|
// Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
|
|
16
|
-
|
|
17
|
-
/// <reference path="../
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
/// <reference path="
|
|
21
|
-
/// <reference path="
|
|
22
|
-
/// <reference path="
|
|
16
|
+
/// <reference path="../globals.d.ts" />
|
|
17
|
+
/// <reference path="../async_hooks.d.ts" />
|
|
18
|
+
/// <reference path="../buffer.d.ts" />
|
|
19
|
+
/// <reference path="../child_process.d.ts" />
|
|
20
|
+
/// <reference path="../cluster.d.ts" />
|
|
21
|
+
/// <reference path="../console.d.ts" />
|
|
22
|
+
/// <reference path="../constants.d.ts" />
|
|
23
|
+
/// <reference path="../crypto.d.ts" />
|
|
24
|
+
/// <reference path="../dgram.d.ts" />
|
|
25
|
+
/// <reference path="../dns.d.ts" />
|
|
26
|
+
/// <reference path="../domain.d.ts" />
|
|
27
|
+
/// <reference path="../events.d.ts" />
|
|
28
|
+
/// <reference path="../fs.d.ts" />
|
|
29
|
+
/// <reference path="../http.d.ts" />
|
|
30
|
+
/// <reference path="../http2.d.ts" />
|
|
31
|
+
/// <reference path="../https.d.ts" />
|
|
32
|
+
/// <reference path="../inspector.d.ts" />
|
|
33
|
+
/// <reference path="../module.d.ts" />
|
|
34
|
+
/// <reference path="../net.d.ts" />
|
|
35
|
+
/// <reference path="../os.d.ts" />
|
|
36
|
+
/// <reference path="../path.d.ts" />
|
|
37
|
+
/// <reference path="../perf_hooks.d.ts" />
|
|
38
|
+
/// <reference path="../process.d.ts" />
|
|
39
|
+
/// <reference path="../punycode.d.ts" />
|
|
40
|
+
/// <reference path="../querystring.d.ts" />
|
|
41
|
+
/// <reference path="../readline.d.ts" />
|
|
42
|
+
/// <reference path="../repl.d.ts" />
|
|
43
|
+
/// <reference path="../stream.d.ts" />
|
|
44
|
+
/// <reference path="../string_decoder.d.ts" />
|
|
45
|
+
/// <reference path="../timers.d.ts" />
|
|
46
|
+
/// <reference path="../tls.d.ts" />
|
|
47
|
+
/// <reference path="../trace_events.d.ts" />
|
|
48
|
+
/// <reference path="../tty.d.ts" />
|
|
49
|
+
/// <reference path="../url.d.ts" />
|
|
50
|
+
/// <reference path="../util.d.ts" />
|
|
51
|
+
/// <reference path="../v8.d.ts" />
|
|
52
|
+
/// <reference path="../vm.d.ts" />
|
|
53
|
+
/// <reference path="../worker_threads.d.ts" />
|
|
54
|
+
/// <reference path="../zlib.d.ts" />
|
|
File without changes
|
node v12.12/ts3.3/index.d.ts
CHANGED
|
@@ -4,9 +4,5 @@
|
|
|
4
4
|
// Typically type modifiations should be made in base.d.ts instead of here
|
|
5
5
|
|
|
6
6
|
/// <reference path="base.d.ts" />
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/// <reference path="../ts3.1/assert.d.ts" />
|
|
10
|
-
|
|
11
|
-
// tslint:disable-next-line:no-bad-reference
|
|
12
|
-
/// <reference path="../ts3.1/globals.global.d.ts" />
|
|
7
|
+
/// <reference path="assert.d.ts" />
|
|
8
|
+
/// <reference path="globals.global.d.ts" />
|
node v12.12/ts3.6/base.d.ts
CHANGED
node v12.12/ts3.6/index.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
@@ -7,6 +7,7 @@ declare module "util" {
|
|
|
7
7
|
function inspect(object: any, showHidden?: boolean, depth?: number | null, color?: boolean): string;
|
|
8
8
|
function inspect(object: any, options: InspectOptions): string;
|
|
9
9
|
namespace inspect {
|
|
10
|
+
const custom: unique symbol;
|
|
10
11
|
let colors: {
|
|
11
12
|
[color: string]: [number, number] | undefined
|
|
12
13
|
};
|
|
@@ -105,6 +106,9 @@ declare module "util" {
|
|
|
105
106
|
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err?: any) => void) => void,
|
|
106
107
|
): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<void>;
|
|
107
108
|
function promisify(fn: Function): Function;
|
|
109
|
+
namespace promisify {
|
|
110
|
+
const custom: unique symbol;
|
|
111
|
+
}
|
|
108
112
|
|
|
109
113
|
namespace types {
|
|
110
114
|
function isAnyArrayBuffer(object: any): boolean;
|
|
@@ -112,6 +116,8 @@ declare module "util" {
|
|
|
112
116
|
function isArrayBuffer(object: any): object is ArrayBuffer;
|
|
113
117
|
function isArrayBufferView(object: any): object is ArrayBufferView;
|
|
114
118
|
function isAsyncFunction(object: any): boolean;
|
|
119
|
+
function isBigInt64Array(value: any): value is BigInt64Array;
|
|
120
|
+
function isBigUint64Array(value: any): value is BigUint64Array;
|
|
115
121
|
function isBooleanObject(object: any): object is Boolean;
|
|
116
122
|
function isBoxedPrimitive(object: any): object is (Number | Boolean | String | Symbol /* | Object(BigInt) | Object(Symbol) */);
|
|
117
123
|
function isDataView(object: any): object is DataView;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
node v12.12/ts3.1/base.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
// base definitions for all NodeJS modules that are not specific to any version of TypeScript
|
|
2
|
-
/// <reference path="globals.d.ts" />
|
|
3
|
-
/// <reference path="async_hooks.d.ts" />
|
|
4
|
-
/// <reference path="buffer.d.ts" />
|
|
5
|
-
/// <reference path="child_process.d.ts" />
|
|
6
|
-
/// <reference path="cluster.d.ts" />
|
|
7
|
-
/// <reference path="console.d.ts" />
|
|
8
|
-
/// <reference path="constants.d.ts" />
|
|
9
|
-
/// <reference path="crypto.d.ts" />
|
|
10
|
-
/// <reference path="dgram.d.ts" />
|
|
11
|
-
/// <reference path="dns.d.ts" />
|
|
12
|
-
/// <reference path="domain.d.ts" />
|
|
13
|
-
/// <reference path="events.d.ts" />
|
|
14
|
-
/// <reference path="fs.d.ts" />
|
|
15
|
-
/// <reference path="http.d.ts" />
|
|
16
|
-
/// <reference path="http2.d.ts" />
|
|
17
|
-
/// <reference path="https.d.ts" />
|
|
18
|
-
/// <reference path="inspector.d.ts" />
|
|
19
|
-
/// <reference path="module.d.ts" />
|
|
20
|
-
/// <reference path="net.d.ts" />
|
|
21
|
-
/// <reference path="os.d.ts" />
|
|
22
|
-
/// <reference path="path.d.ts" />
|
|
23
|
-
/// <reference path="perf_hooks.d.ts" />
|
|
24
|
-
/// <reference path="process.d.ts" />
|
|
25
|
-
/// <reference path="punycode.d.ts" />
|
|
26
|
-
/// <reference path="querystring.d.ts" />
|
|
27
|
-
/// <reference path="readline.d.ts" />
|
|
28
|
-
/// <reference path="repl.d.ts" />
|
|
29
|
-
/// <reference path="stream.d.ts" />
|
|
30
|
-
/// <reference path="string_decoder.d.ts" />
|
|
31
|
-
/// <reference path="timers.d.ts" />
|
|
32
|
-
/// <reference path="tls.d.ts" />
|
|
33
|
-
/// <reference path="trace_events.d.ts" />
|
|
34
|
-
/// <reference path="tty.d.ts" />
|
|
35
|
-
/// <reference path="url.d.ts" />
|
|
36
|
-
/// <reference path="util.d.ts" />
|
|
37
|
-
/// <reference path="v8.d.ts" />
|
|
38
|
-
/// <reference path="vm.d.ts" />
|
|
39
|
-
/// <reference path="worker_threads.d.ts" />
|
|
40
|
-
/// <reference path="zlib.d.ts" />
|
node v12.12/ts3.1/index.d.ts
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
// NOTE: These definitions support NodeJS and TypeScript 3.2.
|
|
2
|
-
|
|
3
|
-
// NOTE: TypeScript version-specific augmentations can be found in the following paths:
|
|
4
|
-
// - ~/base.d.ts - Shared definitions common to all TypeScript versions
|
|
5
|
-
// - ~/index.d.ts - Definitions specific to TypeScript 2.1
|
|
6
|
-
// - ~/ts3.2/index.d.ts - Definitions specific to TypeScript 3.2
|
|
7
|
-
|
|
8
|
-
// NOTE: Augmentations for TypeScript 3.2 and later should use individual files for overrides
|
|
9
|
-
// within the respective ~/ts3.2 (or later) folder. However, this is disallowed for versions
|
|
10
|
-
// prior to TypeScript 3.2, so the older definitions will be found here.
|
|
11
|
-
|
|
12
|
-
// Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
|
|
13
|
-
/// <reference path="base.d.ts" />
|
|
14
|
-
|
|
15
|
-
// We can't include globals.global.d.ts in globals.d.ts, as it'll cause duplication errors in TypeScript 3.4+
|
|
16
|
-
/// <reference path="globals.global.d.ts" />
|
|
17
|
-
|
|
18
|
-
// We can't include assert.d.ts in base.d.ts, as it'll cause duplication errors in TypeScript 3.7+
|
|
19
|
-
/// <reference path="assert.d.ts" />
|
|
20
|
-
|
|
21
|
-
// TypeScript 2.1-specific augmentations:
|
|
22
|
-
|
|
23
|
-
// Forward-declarations for needed types from es2015 and later (in case users are using `--lib es5`)
|
|
24
|
-
// Empty interfaces are used here which merge fine with the real declarations in the lib XXX files
|
|
25
|
-
// just to ensure the names are known and node typings can be used without importing these libs.
|
|
26
|
-
// if someone really needs these types the libs need to be added via --lib or in tsconfig.json
|
|
27
|
-
interface MapConstructor { }
|
|
28
|
-
interface WeakMapConstructor { }
|
|
29
|
-
interface SetConstructor { }
|
|
30
|
-
interface WeakSetConstructor { }
|
|
31
|
-
interface Set<T> {}
|
|
32
|
-
interface Map<K, V> {}
|
|
33
|
-
interface ReadonlySet<T> {}
|
|
34
|
-
interface Iterable<T> { }
|
|
35
|
-
interface IteratorResult<T> { }
|
|
36
|
-
interface AsyncIterable<T> { }
|
|
37
|
-
interface Iterator<T> {
|
|
38
|
-
next(value?: any): IteratorResult<T>;
|
|
39
|
-
}
|
|
40
|
-
interface IterableIterator<T> { }
|
|
41
|
-
interface AsyncIterableIterator<T> {}
|
|
42
|
-
interface SymbolConstructor {
|
|
43
|
-
readonly iterator: symbol;
|
|
44
|
-
readonly asyncIterator: symbol;
|
|
45
|
-
}
|
|
46
|
-
declare var Symbol: SymbolConstructor;
|
|
47
|
-
// even this is just a forward declaration some properties are added otherwise
|
|
48
|
-
// it would be allowed to pass anything to e.g. Buffer.from()
|
|
49
|
-
interface SharedArrayBuffer {
|
|
50
|
-
readonly byteLength: number;
|
|
51
|
-
slice(begin?: number, end?: number): SharedArrayBuffer;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
declare module "util" {
|
|
55
|
-
namespace inspect {
|
|
56
|
-
const custom: symbol;
|
|
57
|
-
}
|
|
58
|
-
namespace promisify {
|
|
59
|
-
const custom: symbol;
|
|
60
|
-
}
|
|
61
|
-
namespace types {
|
|
62
|
-
function isBigInt64Array(value: any): boolean;
|
|
63
|
-
function isBigUint64Array(value: any): boolean;
|
|
64
|
-
}
|
|
65
|
-
}
|
node v12.12/ts3.3/fs.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// tslint:disable-next-line:no-bad-reference
|
|
2
|
-
/// <reference path="../ts3.1/fs.d.ts" />
|
|
3
|
-
|
|
4
|
-
declare module 'fs' {
|
|
5
|
-
interface BigIntStats extends StatsBase<bigint> {
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
class BigIntStats {
|
|
9
|
-
atimeNs: bigint;
|
|
10
|
-
mtimeNs: bigint;
|
|
11
|
-
ctimeNs: bigint;
|
|
12
|
-
birthtimeNs: bigint;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
interface BigIntOptions {
|
|
16
|
-
bigint: true;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
interface StatOptions {
|
|
20
|
-
bigint: boolean;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
function stat(path: PathLike, options: BigIntOptions, callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void): void;
|
|
24
|
-
function stat(path: PathLike, options: StatOptions, callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void): void;
|
|
25
|
-
|
|
26
|
-
namespace stat {
|
|
27
|
-
function __promisify__(path: PathLike, options: BigIntOptions): Promise<BigIntStats>;
|
|
28
|
-
function __promisify__(path: PathLike, options: StatOptions): Promise<Stats | BigIntStats>;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
function statSync(path: PathLike, options: BigIntOptions): BigIntStats;
|
|
32
|
-
function statSync(path: PathLike, options: StatOptions): Stats | BigIntStats;
|
|
33
|
-
}
|
node v12.12/ts3.3/globals.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// tslint:disable-next-line:no-bad-reference
|
|
2
|
-
/// <reference path="../ts3.1/globals.d.ts" />
|
|
3
|
-
|
|
4
|
-
declare namespace NodeJS {
|
|
5
|
-
interface HRTime {
|
|
6
|
-
bigint(): bigint;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
interface Buffer extends Uint8Array {
|
|
11
|
-
readBigUInt64BE(offset?: number): bigint;
|
|
12
|
-
readBigUInt64LE(offset?: number): bigint;
|
|
13
|
-
readBigInt64BE(offset?: number): bigint;
|
|
14
|
-
readBigInt64LE(offset?: number): bigint;
|
|
15
|
-
writeBigInt64BE(value: bigint, offset?: number): number;
|
|
16
|
-
writeBigInt64LE(value: bigint, offset?: number): number;
|
|
17
|
-
writeBigUInt64BE(value: bigint, offset?: number): number;
|
|
18
|
-
writeBigUInt64LE(value: bigint, offset?: number): number;
|
|
19
|
-
}
|
node v12.12/ts3.3/util.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// tslint:disable-next-line:no-bad-reference
|
|
2
|
-
/// <reference path="../ts3.1/util.d.ts" />
|
|
3
|
-
|
|
4
|
-
declare module "util" {
|
|
5
|
-
namespace inspect {
|
|
6
|
-
const custom: unique symbol;
|
|
7
|
-
}
|
|
8
|
-
namespace promisify {
|
|
9
|
-
const custom: unique symbol;
|
|
10
|
-
}
|
|
11
|
-
namespace types {
|
|
12
|
-
function isBigInt64Array(value: any): value is BigInt64Array;
|
|
13
|
-
function isBigUint64Array(value: any): value is BigUint64Array;
|
|
14
|
-
}
|
|
15
|
-
}
|