@types/node 14.10.1 → 14.11.1
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 +3 -3
- node/{ts3.1/async_hooks.d.ts → async_hooks.d.ts} +0 -0
- node/{ts3.1/buffer.d.ts → buffer.d.ts} +0 -0
- node/{ts3.1/child_process.d.ts → child_process.d.ts} +1 -1
- node/{ts3.1/cluster.d.ts → cluster.d.ts} +0 -0
- node/{ts3.1/console.d.ts → console.d.ts} +0 -0
- node/{ts3.1/constants.d.ts → constants.d.ts} +0 -0
- node/{ts3.1/crypto.d.ts → crypto.d.ts} +20 -12
- node/{ts3.1/dgram.d.ts → dgram.d.ts} +0 -0
- node/{ts3.1/dns.d.ts → dns.d.ts} +0 -0
- node/{ts3.1/domain.d.ts → domain.d.ts} +0 -0
- node/{ts3.1/events.d.ts → events.d.ts} +0 -0
- node/{ts3.1/fs → fs}/promises.d.ts +0 -0
- node/{ts3.1/fs.d.ts → fs.d.ts} +24 -0
- node/{ts3.1/globals.d.ts → globals.d.ts} +8 -0
- node/{ts3.6/globals.global.d.ts → globals.global.d.ts} +0 -0
- node/{ts3.1/http.d.ts → http.d.ts} +6 -0
- node/{ts3.1/http2.d.ts → http2.d.ts} +0 -0
- node/{ts3.1/https.d.ts → https.d.ts} +0 -0
- node/index.d.ts +2 -1
- node/{ts3.1/inspector.d.ts → inspector.d.ts} +0 -0
- node/{ts3.1/module.d.ts → module.d.ts} +0 -0
- node/{ts3.1/net.d.ts → net.d.ts} +0 -0
- node/{ts3.1/os.d.ts → os.d.ts} +0 -0
- node/package.json +8 -8
- node/{ts3.1/path.d.ts → path.d.ts} +0 -0
- node/{ts3.1/perf_hooks.d.ts → perf_hooks.d.ts} +0 -0
- node/{ts3.1/process.d.ts → process.d.ts} +1 -0
- node/{ts3.1/punycode.d.ts → punycode.d.ts} +0 -0
- node/{ts3.1/querystring.d.ts → querystring.d.ts} +0 -0
- node/{ts3.1/readline.d.ts → readline.d.ts} +0 -0
- node/{ts3.1/repl.d.ts → repl.d.ts} +0 -0
- node/{ts3.1/stream.d.ts → stream.d.ts} +0 -0
- node/{ts3.1/string_decoder.d.ts → string_decoder.d.ts} +0 -0
- node/{ts3.1/timers.d.ts → timers.d.ts} +0 -0
- node/{ts3.1/tls.d.ts → tls.d.ts} +0 -0
- node/{ts3.1/trace_events.d.ts → trace_events.d.ts} +0 -0
- node/{ts3.1 → ts3.4}/assert.d.ts +0 -0
- node/ts3.4/base.d.ts +40 -7
- node/{ts3.1 → ts3.4}/globals.global.d.ts +0 -0
- node/ts3.4/index.d.ts +2 -6
- node/ts3.6/base.d.ts +2 -2
- node/ts3.6/index.d.ts +1 -1
- node/{ts3.1/tty.d.ts → tty.d.ts} +0 -0
- node/{ts3.1/url.d.ts → url.d.ts} +0 -0
- node/{ts3.1/util.d.ts → util.d.ts} +2 -0
- node/{ts3.1/v8.d.ts → v8.d.ts} +0 -0
- node/{ts3.1/vm.d.ts → vm.d.ts} +0 -0
- node/{ts3.6/wasi.d.ts → wasi.d.ts} +0 -0
- node/{ts3.1/worker_threads.d.ts → worker_threads.d.ts} +0 -0
- node/{ts3.1/zlib.d.ts → zlib.d.ts} +0 -0
- node/ts3.1/base.d.ts +0 -42
- node/ts3.1/index.d.ts +0 -44
- node/ts3.4/fs.d.ts +0 -33
- node/ts3.4/globals.d.ts +0 -13
- node/ts3.4/process.d.ts +0 -12
- node/ts3.4/util.d.ts +0 -9
node/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.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Thu, 17 Sep 2020 18:22:23 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: `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
|
14
14
|
|
|
15
15
|
# Credits
|
|
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), [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), [Surasak Chaisurin](https://github.com/Ryan-Willpower), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax),
|
|
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), [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), [Surasak Chaisurin](https://github.com/Ryan-Willpower), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Jason Kwok](https://github.com/JasonHK), and [Victor Perin](https://github.com/victorperin).
|
|
File without changes
|
|
File without changes
|
|
@@ -23,7 +23,7 @@ declare module "child_process" {
|
|
|
23
23
|
readonly pid: number;
|
|
24
24
|
readonly connected: boolean;
|
|
25
25
|
readonly exitCode: number | null;
|
|
26
|
-
readonly signalCode:
|
|
26
|
+
readonly signalCode: NodeJS.Signals | null;
|
|
27
27
|
readonly spawnargs: string[];
|
|
28
28
|
readonly spawnfile: string;
|
|
29
29
|
kill(signal?: NodeJS.Signals | number): boolean;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -211,14 +211,14 @@ declare module "crypto" {
|
|
|
211
211
|
final(output_encoding: BufferEncoding): string;
|
|
212
212
|
setAutoPadding(auto_padding?: boolean): this;
|
|
213
213
|
// getAuthTag(): Buffer;
|
|
214
|
-
// setAAD(buffer:
|
|
214
|
+
// setAAD(buffer: NodeJS.ArrayBufferView): this;
|
|
215
215
|
}
|
|
216
216
|
interface CipherCCM extends Cipher {
|
|
217
|
-
setAAD(buffer:
|
|
217
|
+
setAAD(buffer: NodeJS.ArrayBufferView, options: { plaintextLength: number }): this;
|
|
218
218
|
getAuthTag(): Buffer;
|
|
219
219
|
}
|
|
220
220
|
interface CipherGCM extends Cipher {
|
|
221
|
-
setAAD(buffer:
|
|
221
|
+
setAAD(buffer: NodeJS.ArrayBufferView, options?: { plaintextLength: number }): this;
|
|
222
222
|
getAuthTag(): Buffer;
|
|
223
223
|
}
|
|
224
224
|
/** @deprecated since v10.0.0 use `createDecipheriv()` */
|
|
@@ -282,16 +282,27 @@ declare module "crypto" {
|
|
|
282
282
|
|
|
283
283
|
function createSign(algorithm: string, options?: stream.WritableOptions): Signer;
|
|
284
284
|
|
|
285
|
+
type DSAEncoding = 'der' | 'ieee-p1363';
|
|
286
|
+
|
|
285
287
|
interface SigningOptions {
|
|
286
288
|
/**
|
|
287
289
|
* @See crypto.constants.RSA_PKCS1_PADDING
|
|
288
290
|
*/
|
|
289
291
|
padding?: number;
|
|
290
292
|
saltLength?: number;
|
|
293
|
+
dsaEncoding?: DSAEncoding;
|
|
291
294
|
}
|
|
292
295
|
|
|
293
296
|
interface SignPrivateKeyInput extends PrivateKeyInput, SigningOptions {
|
|
294
297
|
}
|
|
298
|
+
interface SignKeyObjectInput extends SigningOptions {
|
|
299
|
+
key: KeyObject;
|
|
300
|
+
}
|
|
301
|
+
interface VerifyPublicKeyInput extends PublicKeyInput, SigningOptions {
|
|
302
|
+
}
|
|
303
|
+
interface VerifyKeyObjectInput extends SigningOptions {
|
|
304
|
+
key: KeyObject;
|
|
305
|
+
}
|
|
295
306
|
|
|
296
307
|
type KeyLike = string | Buffer | KeyObject;
|
|
297
308
|
|
|
@@ -300,8 +311,8 @@ declare module "crypto" {
|
|
|
300
311
|
|
|
301
312
|
update(data: BinaryLike): Signer;
|
|
302
313
|
update(data: string, input_encoding: Utf8AsciiLatin1Encoding): Signer;
|
|
303
|
-
sign(private_key:
|
|
304
|
-
sign(private_key:
|
|
314
|
+
sign(private_key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput): Buffer;
|
|
315
|
+
sign(private_key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput, output_format: HexBase64Latin1Encoding): string;
|
|
305
316
|
}
|
|
306
317
|
|
|
307
318
|
function createVerify(algorithm: string, options?: stream.WritableOptions): Verify;
|
|
@@ -310,8 +321,8 @@ declare module "crypto" {
|
|
|
310
321
|
|
|
311
322
|
update(data: BinaryLike): Verify;
|
|
312
323
|
update(data: string, input_encoding: Utf8AsciiLatin1Encoding): Verify;
|
|
313
|
-
verify(object:
|
|
314
|
-
verify(object:
|
|
324
|
+
verify(object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: NodeJS.ArrayBufferView): boolean;
|
|
325
|
+
verify(object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: string, signature_format?: HexBase64Latin1Encoding): boolean;
|
|
315
326
|
// https://nodejs.org/api/crypto.html#crypto_verifier_verify_object_signature_signature_format
|
|
316
327
|
// The signature field accepts a TypedArray type, but it is only available starting ES2017
|
|
317
328
|
}
|
|
@@ -672,10 +683,7 @@ declare module "crypto" {
|
|
|
672
683
|
* If `key` is not a [`KeyObject`][], this function behaves as if `key` had been
|
|
673
684
|
* passed to [`crypto.createPrivateKey()`][].
|
|
674
685
|
*/
|
|
675
|
-
function sign(algorithm: string | null | undefined, data: NodeJS.ArrayBufferView, key: KeyLike | SignPrivateKeyInput): Buffer;
|
|
676
|
-
|
|
677
|
-
interface VerifyKeyWithOptions extends KeyObject, SigningOptions {
|
|
678
|
-
}
|
|
686
|
+
function sign(algorithm: string | null | undefined, data: NodeJS.ArrayBufferView, key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput): Buffer;
|
|
679
687
|
|
|
680
688
|
/**
|
|
681
689
|
* Calculates and returns the signature for `data` using the given private key and
|
|
@@ -685,7 +693,7 @@ declare module "crypto" {
|
|
|
685
693
|
* If `key` is not a [`KeyObject`][], this function behaves as if `key` had been
|
|
686
694
|
* passed to [`crypto.createPublicKey()`][].
|
|
687
695
|
*/
|
|
688
|
-
function verify(algorithm: string | null | undefined, data: NodeJS.ArrayBufferView, key: KeyLike |
|
|
696
|
+
function verify(algorithm: string | null | undefined, data: NodeJS.ArrayBufferView, key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: NodeJS.ArrayBufferView): boolean;
|
|
689
697
|
|
|
690
698
|
/**
|
|
691
699
|
* Computes the Diffie-Hellman secret based on a privateKey and a publicKey.
|
|
File without changes
|
node/{ts3.1/dns.d.ts → dns.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
node/{ts3.1/fs.d.ts → fs.d.ts}
RENAMED
|
@@ -503,6 +503,8 @@ declare module "fs" {
|
|
|
503
503
|
* Asynchronous stat(2) - Get file status.
|
|
504
504
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
505
505
|
*/
|
|
506
|
+
export function stat(path: PathLike, options: BigIntOptions, callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void): void;
|
|
507
|
+
export function stat(path: PathLike, options: StatOptions, callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void): void;
|
|
506
508
|
export function stat(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void;
|
|
507
509
|
|
|
508
510
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
@@ -511,6 +513,8 @@ declare module "fs" {
|
|
|
511
513
|
* Asynchronous stat(2) - Get file status.
|
|
512
514
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
513
515
|
*/
|
|
516
|
+
function __promisify__(path: PathLike, options: BigIntOptions): Promise<BigIntStats>;
|
|
517
|
+
function __promisify__(path: PathLike, options: StatOptions): Promise<Stats | BigIntStats>;
|
|
514
518
|
function __promisify__(path: PathLike): Promise<Stats>;
|
|
515
519
|
}
|
|
516
520
|
|
|
@@ -518,6 +522,8 @@ declare module "fs" {
|
|
|
518
522
|
* Synchronous stat(2) - Get file status.
|
|
519
523
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
520
524
|
*/
|
|
525
|
+
export function statSync(path: PathLike, options: BigIntOptions): BigIntStats;
|
|
526
|
+
export function statSync(path: PathLike, options: StatOptions): Stats | BigIntStats;
|
|
521
527
|
export function statSync(path: PathLike): Stats;
|
|
522
528
|
|
|
523
529
|
/**
|
|
@@ -2129,4 +2135,22 @@ declare module "fs" {
|
|
|
2129
2135
|
export namespace opendir {
|
|
2130
2136
|
function __promisify__(path: string, options?: OpenDirOptions): Promise<Dir>;
|
|
2131
2137
|
}
|
|
2138
|
+
|
|
2139
|
+
export interface BigIntStats extends StatsBase<bigint> {
|
|
2140
|
+
}
|
|
2141
|
+
|
|
2142
|
+
export class BigIntStats {
|
|
2143
|
+
atimeNs: bigint;
|
|
2144
|
+
mtimeNs: bigint;
|
|
2145
|
+
ctimeNs: bigint;
|
|
2146
|
+
birthtimeNs: bigint;
|
|
2147
|
+
}
|
|
2148
|
+
|
|
2149
|
+
export interface BigIntOptions {
|
|
2150
|
+
bigint: true;
|
|
2151
|
+
}
|
|
2152
|
+
|
|
2153
|
+
export interface StatOptions {
|
|
2154
|
+
bigint: boolean;
|
|
2155
|
+
}
|
|
2132
2156
|
}
|
|
@@ -256,10 +256,18 @@ declare class Buffer extends Uint8Array {
|
|
|
256
256
|
* @param end Where the new `Buffer` will end (not inclusive). Default: `buf.length`.
|
|
257
257
|
*/
|
|
258
258
|
subarray(begin?: number, end?: number): Buffer;
|
|
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;
|
|
259
263
|
writeUIntLE(value: number, offset: number, byteLength: number): number;
|
|
260
264
|
writeUIntBE(value: number, offset: number, byteLength: number): number;
|
|
261
265
|
writeIntLE(value: number, offset: number, byteLength: number): number;
|
|
262
266
|
writeIntBE(value: number, offset: number, byteLength: number): number;
|
|
267
|
+
readBigUInt64BE(offset?: number): bigint;
|
|
268
|
+
readBigUInt64LE(offset?: number): bigint;
|
|
269
|
+
readBigInt64BE(offset?: number): bigint;
|
|
270
|
+
readBigInt64LE(offset?: number): bigint;
|
|
263
271
|
readUIntLE(offset: number, byteLength: number): number;
|
|
264
272
|
readUIntBE(offset: number, byteLength: number): number;
|
|
265
273
|
readIntLE(offset: number, byteLength: number): number;
|
|
File without changes
|
|
@@ -131,6 +131,12 @@ declare module "http" {
|
|
|
131
131
|
*/
|
|
132
132
|
headersTimeout: number;
|
|
133
133
|
keepAliveTimeout: number;
|
|
134
|
+
/**
|
|
135
|
+
* Sets the timeout value in milliseconds for receiving the entire request from the client.
|
|
136
|
+
* @default 0
|
|
137
|
+
* {@link https://nodejs.org/api/http.html#http_server_requesttimeout}
|
|
138
|
+
*/
|
|
139
|
+
requestTimeout: number;
|
|
134
140
|
}
|
|
135
141
|
|
|
136
142
|
interface Server extends HttpBase {}
|
|
File without changes
|
|
File without changes
|
node/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for non-npm package Node.js 14.
|
|
1
|
+
// Type definitions for non-npm package Node.js 14.11
|
|
2
2
|
// Project: http://nodejs.org/
|
|
3
3
|
// Definitions by: Microsoft TypeScript <https://github.com/Microsoft>
|
|
4
4
|
// DefinitelyTyped <https://github.com/DefinitelyTyped>
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
// Piotr Błażejewicz <https://github.com/peterblazejewicz>
|
|
44
44
|
// Anna Henningsen <https://github.com/addaleax>
|
|
45
45
|
// Jason Kwok <https://github.com/JasonHK>
|
|
46
|
+
// Victor Perin <https://github.com/victorperin>
|
|
46
47
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
47
48
|
|
|
48
49
|
// NOTE: These definitions support NodeJS and TypeScript 3.7.
|
|
File without changes
|
|
File without changes
|
node/{ts3.1/net.d.ts → net.d.ts}
RENAMED
|
File without changes
|
node/{ts3.1/os.d.ts → os.d.ts}
RENAMED
|
File without changes
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.11.1",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -218,16 +218,16 @@
|
|
|
218
218
|
"name": "Jason Kwok",
|
|
219
219
|
"url": "https://github.com/JasonHK",
|
|
220
220
|
"githubUsername": "JasonHK"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"name": "Victor Perin",
|
|
224
|
+
"url": "https://github.com/victorperin",
|
|
225
|
+
"githubUsername": "victorperin"
|
|
221
226
|
}
|
|
222
227
|
],
|
|
223
228
|
"main": "",
|
|
224
229
|
"types": "index.d.ts",
|
|
225
230
|
"typesVersions": {
|
|
226
|
-
"<=3.1": {
|
|
227
|
-
"*": [
|
|
228
|
-
"ts3.1/*"
|
|
229
|
-
]
|
|
230
|
-
},
|
|
231
231
|
"<=3.4": {
|
|
232
232
|
"*": [
|
|
233
233
|
"ts3.4/*"
|
|
@@ -246,6 +246,6 @@
|
|
|
246
246
|
},
|
|
247
247
|
"scripts": {},
|
|
248
248
|
"dependencies": {},
|
|
249
|
-
"typesPublisherContentHash": "
|
|
250
|
-
"typeScriptVersion": "3.
|
|
249
|
+
"typesPublisherContentHash": "9c70727f96ff4b42df35727bea7b55df2239ce097878ea3e75322ca3d8403616",
|
|
250
|
+
"typeScriptVersion": "3.2"
|
|
251
251
|
}
|
|
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/{ts3.1/tls.d.ts → tls.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
node/{ts3.1 → ts3.4}/assert.d.ts
RENAMED
|
File without changes
|
node/ts3.4/base.d.ts
CHANGED
|
@@ -13,11 +13,44 @@
|
|
|
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
|
-
// tslint:disable-next-line:no-bad-reference
|
|
17
|
-
/// <reference path="../ts3.1/base.d.ts" />
|
|
18
16
|
|
|
19
|
-
|
|
20
|
-
/// <reference path="
|
|
21
|
-
/// <reference path="
|
|
22
|
-
/// <reference path="
|
|
23
|
-
/// <reference path="
|
|
17
|
+
/// <reference path="../globals.d.ts" />
|
|
18
|
+
/// <reference path="../async_hooks.d.ts" />
|
|
19
|
+
/// <reference path="../buffer.d.ts" />
|
|
20
|
+
/// <reference path="../child_process.d.ts" />
|
|
21
|
+
/// <reference path="../cluster.d.ts" />
|
|
22
|
+
/// <reference path="../console.d.ts" />
|
|
23
|
+
/// <reference path="../constants.d.ts" />
|
|
24
|
+
/// <reference path="../crypto.d.ts" />
|
|
25
|
+
/// <reference path="../dgram.d.ts" />
|
|
26
|
+
/// <reference path="../dns.d.ts" />
|
|
27
|
+
/// <reference path="../domain.d.ts" />
|
|
28
|
+
/// <reference path="../events.d.ts" />
|
|
29
|
+
/// <reference path="../fs.d.ts" />
|
|
30
|
+
/// <reference path="../fs/promises.d.ts" />
|
|
31
|
+
/// <reference path="../http.d.ts" />
|
|
32
|
+
/// <reference path="../http2.d.ts" />
|
|
33
|
+
/// <reference path="../https.d.ts" />
|
|
34
|
+
/// <reference path="../inspector.d.ts" />
|
|
35
|
+
/// <reference path="../module.d.ts" />
|
|
36
|
+
/// <reference path="../net.d.ts" />
|
|
37
|
+
/// <reference path="../os.d.ts" />
|
|
38
|
+
/// <reference path="../path.d.ts" />
|
|
39
|
+
/// <reference path="../perf_hooks.d.ts" />
|
|
40
|
+
/// <reference path="../process.d.ts" />
|
|
41
|
+
/// <reference path="../punycode.d.ts" />
|
|
42
|
+
/// <reference path="../querystring.d.ts" />
|
|
43
|
+
/// <reference path="../readline.d.ts" />
|
|
44
|
+
/// <reference path="../repl.d.ts" />
|
|
45
|
+
/// <reference path="../stream.d.ts" />
|
|
46
|
+
/// <reference path="../string_decoder.d.ts" />
|
|
47
|
+
/// <reference path="../timers.d.ts" />
|
|
48
|
+
/// <reference path="../tls.d.ts" />
|
|
49
|
+
/// <reference path="../trace_events.d.ts" />
|
|
50
|
+
/// <reference path="../tty.d.ts" />
|
|
51
|
+
/// <reference path="../url.d.ts" />
|
|
52
|
+
/// <reference path="../util.d.ts" />
|
|
53
|
+
/// <reference path="../v8.d.ts" />
|
|
54
|
+
/// <reference path="../vm.d.ts" />
|
|
55
|
+
/// <reference path="../worker_threads.d.ts" />
|
|
56
|
+
/// <reference path="../zlib.d.ts" />
|
|
File without changes
|
node/ts3.4/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/ts3.6/base.d.ts
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
/// <reference path="../ts3.4/base.d.ts" />
|
|
18
18
|
|
|
19
19
|
// TypeScript 3.5-specific augmentations:
|
|
20
|
-
/// <reference path="globals.global.d.ts" />
|
|
20
|
+
/// <reference path="../globals.global.d.ts" />
|
|
21
21
|
|
|
22
22
|
// TypeScript 3.5-specific augmentations:
|
|
23
|
-
/// <reference path="wasi.d.ts" />
|
|
23
|
+
/// <reference path="../wasi.d.ts" />
|
node/ts3.6/index.d.ts
CHANGED
node/{ts3.1/tty.d.ts → tty.d.ts}
RENAMED
|
File without changes
|
node/{ts3.1/url.d.ts → url.d.ts}
RENAMED
|
File without changes
|
|
@@ -125,6 +125,8 @@ declare module "util" {
|
|
|
125
125
|
function isArrayBuffer(object: any): object is ArrayBuffer;
|
|
126
126
|
function isArrayBufferView(object: any): object is ArrayBufferView;
|
|
127
127
|
function isAsyncFunction(object: any): boolean;
|
|
128
|
+
function isBigInt64Array(value: any): value is BigInt64Array;
|
|
129
|
+
function isBigUint64Array(value: any): value is BigUint64Array;
|
|
128
130
|
function isBooleanObject(object: any): object is Boolean;
|
|
129
131
|
function isBoxedPrimitive(object: any): object is (Number | Boolean | String | Symbol /* | Object(BigInt) | Object(Symbol) */);
|
|
130
132
|
function isDataView(object: any): object is DataView;
|
node/{ts3.1/v8.d.ts → v8.d.ts}
RENAMED
|
File without changes
|
node/{ts3.1/vm.d.ts → vm.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
node/ts3.1/base.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
// base definitions for all NodeJS modules that are not specific to any version of TypeScript
|
|
2
|
-
|
|
3
|
-
/// <reference path="globals.d.ts" />
|
|
4
|
-
/// <reference path="async_hooks.d.ts" />
|
|
5
|
-
/// <reference path="buffer.d.ts" />
|
|
6
|
-
/// <reference path="child_process.d.ts" />
|
|
7
|
-
/// <reference path="cluster.d.ts" />
|
|
8
|
-
/// <reference path="console.d.ts" />
|
|
9
|
-
/// <reference path="constants.d.ts" />
|
|
10
|
-
/// <reference path="crypto.d.ts" />
|
|
11
|
-
/// <reference path="dgram.d.ts" />
|
|
12
|
-
/// <reference path="dns.d.ts" />
|
|
13
|
-
/// <reference path="domain.d.ts" />
|
|
14
|
-
/// <reference path="events.d.ts" />
|
|
15
|
-
/// <reference path="fs.d.ts" />
|
|
16
|
-
/// <reference path="fs/promises.d.ts" />
|
|
17
|
-
/// <reference path="http.d.ts" />
|
|
18
|
-
/// <reference path="http2.d.ts" />
|
|
19
|
-
/// <reference path="https.d.ts" />
|
|
20
|
-
/// <reference path="inspector.d.ts" />
|
|
21
|
-
/// <reference path="module.d.ts" />
|
|
22
|
-
/// <reference path="net.d.ts" />
|
|
23
|
-
/// <reference path="os.d.ts" />
|
|
24
|
-
/// <reference path="path.d.ts" />
|
|
25
|
-
/// <reference path="perf_hooks.d.ts" />
|
|
26
|
-
/// <reference path="process.d.ts" />
|
|
27
|
-
/// <reference path="punycode.d.ts" />
|
|
28
|
-
/// <reference path="querystring.d.ts" />
|
|
29
|
-
/// <reference path="readline.d.ts" />
|
|
30
|
-
/// <reference path="repl.d.ts" />
|
|
31
|
-
/// <reference path="stream.d.ts" />
|
|
32
|
-
/// <reference path="string_decoder.d.ts" />
|
|
33
|
-
/// <reference path="timers.d.ts" />
|
|
34
|
-
/// <reference path="tls.d.ts" />
|
|
35
|
-
/// <reference path="trace_events.d.ts" />
|
|
36
|
-
/// <reference path="tty.d.ts" />
|
|
37
|
-
/// <reference path="url.d.ts" />
|
|
38
|
-
/// <reference path="util.d.ts" />
|
|
39
|
-
/// <reference path="v8.d.ts" />
|
|
40
|
-
/// <reference path="vm.d.ts" />
|
|
41
|
-
/// <reference path="worker_threads.d.ts" />
|
|
42
|
-
/// <reference path="zlib.d.ts" />
|
node/ts3.1/index.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
// NOTE: These definitions support NodeJS and TypeScript 3.1.
|
|
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.8
|
|
6
|
-
// - ~/ts3.5/index.d.ts - Definitions specific to TypeScript 3.5
|
|
7
|
-
|
|
8
|
-
// NOTE: Augmentations for TypeScript 3.5 and later should use individual files for overrides
|
|
9
|
-
// within the respective ~/ts3.5 (or later) folder. However, this is disallowed for versions
|
|
10
|
-
// prior to TypeScript 3.5, 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.5+
|
|
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
|
-
// Forward-declarations for needed types from es2015 and later (in case users are using `--lib es5`)
|
|
22
|
-
// Empty interfaces are used here which merge fine with the real declarations in the lib XXX files
|
|
23
|
-
// just to ensure the names are known and node typings can be used without importing these libs.
|
|
24
|
-
// if someone really needs these types the libs need to be added via --lib or in tsconfig.json
|
|
25
|
-
interface AsyncIterable<T> { }
|
|
26
|
-
interface IterableIterator<T> { }
|
|
27
|
-
interface AsyncIterableIterator<T> {}
|
|
28
|
-
interface SymbolConstructor {
|
|
29
|
-
readonly asyncIterator: symbol;
|
|
30
|
-
}
|
|
31
|
-
declare var Symbol: SymbolConstructor;
|
|
32
|
-
// even this is just a forward declaration some properties are added otherwise
|
|
33
|
-
// it would be allowed to pass anything to e.g. Buffer.from()
|
|
34
|
-
interface SharedArrayBuffer {
|
|
35
|
-
readonly byteLength: number;
|
|
36
|
-
slice(begin?: number, end?: number): SharedArrayBuffer;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
declare module "util" {
|
|
40
|
-
namespace types {
|
|
41
|
-
function isBigInt64Array(value: any): boolean;
|
|
42
|
-
function isBigUint64Array(value: any): boolean;
|
|
43
|
-
}
|
|
44
|
-
}
|
node/ts3.4/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/ts3.4/globals.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// tslint:disable-next-line:no-bad-reference
|
|
2
|
-
/// <reference path="../ts3.1/globals.d.ts" />
|
|
3
|
-
|
|
4
|
-
interface Buffer extends Uint8Array {
|
|
5
|
-
readBigUInt64BE(offset?: number): bigint;
|
|
6
|
-
readBigUInt64LE(offset?: number): bigint;
|
|
7
|
-
readBigInt64BE(offset?: number): bigint;
|
|
8
|
-
readBigInt64LE(offset?: number): bigint;
|
|
9
|
-
writeBigInt64BE(value: bigint, offset?: number): number;
|
|
10
|
-
writeBigInt64LE(value: bigint, offset?: number): number;
|
|
11
|
-
writeBigUInt64BE(value: bigint, offset?: number): number;
|
|
12
|
-
writeBigUInt64LE(value: bigint, offset?: number): number;
|
|
13
|
-
}
|
node/ts3.4/process.d.ts
DELETED
node/ts3.4/util.d.ts
DELETED
|
@@ -1,9 +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 types {
|
|
6
|
-
function isBigInt64Array(value: any): value is BigInt64Array;
|
|
7
|
-
function isBigUint64Array(value: any): value is BigUint64Array;
|
|
8
|
-
}
|
|
9
|
-
}
|