@types/node 12.19.14 → 12.20.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 v12.19 → node v12.20}/LICENSE +0 -0
- node v12.20/README.md +16 -0
- {node v12.19 → node v12.20}/assert.d.ts +5 -0
- {node v12.19 → node v12.20}/async_hooks.d.ts +8 -1
- {node v12.19 → node v12.20}/base.d.ts +0 -0
- {node v12.19 → node v12.20}/buffer.d.ts +5 -1
- {node v12.19 → node v12.20}/child_process.d.ts +8 -4
- {node v12.19 → node v12.20}/cluster.d.ts +10 -6
- node v12.20/console.d.ts +7 -0
- {node v12.19 → node v12.20}/constants.d.ts +6 -1
- {node v12.19 → node v12.20}/crypto.d.ts +5 -1
- {node v12.19 → node v12.20}/dgram.d.ts +9 -5
- {node v12.19 → node v12.20}/dns.d.ts +11 -1
- {node v12.19 → node v12.20}/domain.d.ts +5 -1
- {node v12.19 → node v12.20}/events.d.ts +5 -0
- {node v12.19 → node v12.20}/fs.d.ts +9 -5
- {node v12.19 → node v12.20}/globals.d.ts +0 -0
- {node v12.19 → node v12.20}/globals.global.d.ts +0 -0
- {node v12.19 → node v12.20}/http.d.ts +8 -5
- {node v12.19 → node v12.20}/http2.d.ts +19 -10
- {node v12.19 → node v12.20}/https.d.ts +8 -5
- {node v12.19 → node v12.20}/index.d.ts +1 -2
- {node v12.19 → node v12.20}/inspector.d.ts +9 -2
- node v12.20/module.d.ts +7 -0
- {node v12.19 → node v12.20}/net.d.ts +14 -6
- {node v12.19 → node v12.20}/os.d.ts +5 -1
- {node v12.19 → node v12.20}/package.json +7 -7
- {node v12.19 → node v12.20}/path.d.ts +6 -1
- {node v12.19 → node v12.20}/perf_hooks.d.ts +6 -2
- {node v12.19 → node v12.20}/process.d.ts +6 -2
- {node v12.19 → node v12.20}/punycode.d.ts +19 -1
- {node v12.19 → node v12.20}/querystring.d.ts +5 -1
- {node v12.19 → node v12.20}/readline.d.ts +7 -4
- {node v12.19 → node v12.20}/repl.d.ts +8 -4
- {node v12.19 → node v12.20}/stream.d.ts +6 -1
- {node v12.19 → node v12.20}/string_decoder.d.ts +5 -1
- {node v12.19 → node v12.20}/timers.d.ts +5 -1
- {node v12.19 → node v12.20}/tls.d.ts +6 -5
- {node v12.19 → node v12.20}/trace_events.d.ts +5 -1
- {node v12.19/ts3.6 → node v12.20/ts3.4}/assert.d.ts +5 -0
- {node v12.19/ts3.6 → node v12.20/ts3.4}/base.d.ts +3 -7
- node v12.20/ts3.4/globals.global.d.ts +1 -0
- node v12.20/ts3.4/index.d.ts +8 -0
- node v12.20/ts3.6/base.d.ts +20 -0
- {node v12.19 → node v12.20}/ts3.6/index.d.ts +2 -1
- {node v12.19 → node v12.20}/tty.d.ts +6 -2
- {node v12.19 → node v12.20}/url.d.ts +6 -2
- {node v12.19 → node v12.20}/util.d.ts +5 -1
- {node v12.19 → node v12.20}/v8.d.ts +6 -2
- {node v12.19 → node v12.20}/vm.d.ts +5 -1
- {node v12.19 → node v12.20}/wasi.d.ts +4 -0
- {node v12.19 → node v12.20}/worker_threads.d.ts +9 -5
- {node v12.19 → node v12.20}/zlib.d.ts +6 -2
- node v12.19/README.md +0 -16
- node v12.19/console.d.ts +0 -3
- node v12.19/module.d.ts +0 -3
|
File without changes
|
node v12.20/README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Installation
|
|
2
|
+
> `npm install --save @types/node`
|
|
3
|
+
|
|
4
|
+
# Summary
|
|
5
|
+
This package contains type definitions for Node.js (http://nodejs.org/).
|
|
6
|
+
|
|
7
|
+
# Details
|
|
8
|
+
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v12.
|
|
9
|
+
|
|
10
|
+
### Additional Details
|
|
11
|
+
* Last updated: Sun, 14 Feb 2021 19:29:51 GMT
|
|
12
|
+
* Dependencies: none
|
|
13
|
+
* Global values: `Buffer`, `NodeJS`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
|
14
|
+
|
|
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), [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).
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Async Hooks module: https://nodejs.org/api/async_hooks.html
|
|
3
3
|
*/
|
|
4
|
-
declare module
|
|
4
|
+
declare module 'node:async_hooks' {
|
|
5
|
+
export * from 'async_hooks';
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Async Hooks module: https://nodejs.org/api/async_hooks.html
|
|
10
|
+
*/
|
|
11
|
+
declare module 'async_hooks' {
|
|
5
12
|
/**
|
|
6
13
|
* Returns the asyncId of the current execution context.
|
|
7
14
|
*/
|
|
File without changes
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
declare module
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
declare module 'node:child_process' {
|
|
2
|
+
export * from 'child_process';
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
declare module 'child_process' {
|
|
6
|
+
import * as events from 'node:events';
|
|
7
|
+
import * as net from 'node:net';
|
|
8
|
+
import { Writable, Readable, Stream, Pipe } from 'node:stream';
|
|
5
9
|
|
|
6
10
|
interface ChildProcess extends events.EventEmitter {
|
|
7
11
|
stdin: Writable | null;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
declare module
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
declare module 'node:cluster' {
|
|
2
|
+
export * from 'cluster';
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
declare module 'cluster' {
|
|
6
|
+
import * as child from 'node:child_process';
|
|
7
|
+
import EventEmitter = require('node:events');
|
|
8
|
+
import * as net from 'node:net';
|
|
5
9
|
|
|
6
10
|
// interfaces
|
|
7
11
|
interface ClusterSettings {
|
|
@@ -21,7 +25,7 @@ declare module "cluster" {
|
|
|
21
25
|
addressType: number | "udp4" | "udp6"; // 4, 6, -1, "udp4", "udp6"
|
|
22
26
|
}
|
|
23
27
|
|
|
24
|
-
class Worker extends
|
|
28
|
+
class Worker extends EventEmitter {
|
|
25
29
|
id: number;
|
|
26
30
|
process: child.ChildProcess;
|
|
27
31
|
send(message: any, sendHandle?: any, callback?: (error: Error | null) => void): boolean;
|
|
@@ -90,7 +94,7 @@ declare module "cluster" {
|
|
|
90
94
|
prependOnceListener(event: "online", listener: () => void): this;
|
|
91
95
|
}
|
|
92
96
|
|
|
93
|
-
interface Cluster extends
|
|
97
|
+
interface Cluster extends EventEmitter {
|
|
94
98
|
Worker: Worker;
|
|
95
99
|
disconnect(callback?: () => void): void;
|
|
96
100
|
fork(env?: any): Worker;
|
node v12.20/console.d.ts
ADDED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
/** @deprecated since v6.3.0 - use constants property exposed by the relevant module instead. */
|
|
2
|
-
declare module
|
|
2
|
+
declare module 'node:constants' {
|
|
3
|
+
export * from 'constants';
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
/** @deprecated since v6.3.0 - use constants property exposed by the relevant module instead. */
|
|
7
|
+
declare module 'constants' {
|
|
3
8
|
/** @deprecated since v6.3.0 - use `os.constants.errno.E2BIG` instead. */
|
|
4
9
|
const E2BIG: number;
|
|
5
10
|
/** @deprecated since v6.3.0 - use `os.constants.errno.EACCES` instead. */
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
declare module
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
declare module 'dgram' {
|
|
2
|
+
export * from 'node:dgram';
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
declare module 'node:dgram' {
|
|
6
|
+
import { AddressInfo } from 'node:net';
|
|
7
|
+
import * as dns from 'node:dns';
|
|
8
|
+
import EventEmitter = require('node:events');
|
|
5
9
|
|
|
6
10
|
interface RemoteInfo {
|
|
7
11
|
address: string;
|
|
@@ -34,7 +38,7 @@ declare module "dgram" {
|
|
|
34
38
|
function createSocket(type: SocketType, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket;
|
|
35
39
|
function createSocket(options: SocketOptions, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket;
|
|
36
40
|
|
|
37
|
-
class Socket extends
|
|
41
|
+
class Socket extends EventEmitter {
|
|
38
42
|
addMembership(multicastAddress: string, multicastInterface?: string): void;
|
|
39
43
|
address(): AddressInfo;
|
|
40
44
|
bind(port?: number, address?: string, callback?: () => void): void;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
declare module
|
|
1
|
+
declare module 'node:dns' {
|
|
2
|
+
export * from 'dns';
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
declare module 'dns' {
|
|
2
6
|
// Supported getaddrinfo flags.
|
|
3
7
|
const ADDRCONFIG: number;
|
|
4
8
|
const V4MAPPED: number;
|
|
@@ -271,7 +275,12 @@ declare module "dns" {
|
|
|
271
275
|
const ADDRGETNETWORKPARAMS: string;
|
|
272
276
|
const CANCELLED: string;
|
|
273
277
|
|
|
278
|
+
interface ResolverOptions {
|
|
279
|
+
timeout?: number;
|
|
280
|
+
}
|
|
281
|
+
|
|
274
282
|
class Resolver {
|
|
283
|
+
constructor(options?: ResolverOptions);
|
|
275
284
|
getServers: typeof getServers;
|
|
276
285
|
setServers: typeof setServers;
|
|
277
286
|
resolve: typeof resolve;
|
|
@@ -346,6 +355,7 @@ declare module "dns" {
|
|
|
346
355
|
function setServers(servers: ReadonlyArray<string>): void;
|
|
347
356
|
|
|
348
357
|
class Resolver {
|
|
358
|
+
constructor(options?: ResolverOptions);
|
|
349
359
|
getServers: typeof getServers;
|
|
350
360
|
resolve: typeof resolve;
|
|
351
361
|
resolve4: typeof resolve4;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
declare module 'node:domain' {
|
|
2
|
+
export * from 'domain';
|
|
3
|
+
}
|
|
4
|
+
|
|
1
5
|
declare module 'domain' {
|
|
2
|
-
import EventEmitter = require('events');
|
|
6
|
+
import EventEmitter = require('node:events');
|
|
3
7
|
|
|
4
8
|
class Domain extends EventEmitter implements NodeJS.Domain {
|
|
5
9
|
run<T>(fn: (...args: any[]) => T, ...args: any[]): T;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
declare module
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
declare module 'node:fs' {
|
|
2
|
+
export * from 'fs';
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
declare module 'fs' {
|
|
6
|
+
import * as stream from 'node:stream';
|
|
7
|
+
import EventEmitter = require('node:events');
|
|
8
|
+
import { URL } from 'node:url';
|
|
5
9
|
|
|
6
10
|
/**
|
|
7
11
|
* Valid types for path values in "fs".
|
|
@@ -96,7 +100,7 @@ declare module "fs" {
|
|
|
96
100
|
readSync(): Dirent;
|
|
97
101
|
}
|
|
98
102
|
|
|
99
|
-
interface FSWatcher extends
|
|
103
|
+
interface FSWatcher extends EventEmitter {
|
|
100
104
|
close(): void;
|
|
101
105
|
|
|
102
106
|
/**
|
|
File without changes
|
|
File without changes
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
declare module
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
declare module 'node:http' {
|
|
2
|
+
export * from 'http';
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
declare module 'http' {
|
|
6
|
+
import * as stream from 'node:stream';
|
|
7
|
+
import { URL } from 'node:url';
|
|
8
|
+
import { Socket, Server as NetServer } from 'node:net';
|
|
6
9
|
|
|
7
10
|
// incoming headers will never contain number
|
|
8
11
|
interface IncomingHttpHeaders {
|
|
@@ -1,13 +1,22 @@
|
|
|
1
|
-
declare module
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import * as net from "net";
|
|
5
|
-
import * as stream from "stream";
|
|
6
|
-
import * as tls from "tls";
|
|
7
|
-
import * as url from "url";
|
|
1
|
+
declare module 'node:http2' {
|
|
2
|
+
export * from 'http2';
|
|
3
|
+
}
|
|
8
4
|
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
declare module 'http2' {
|
|
6
|
+
import EventEmitter = require('node:events');
|
|
7
|
+
import * as fs from 'node:fs';
|
|
8
|
+
import * as net from 'node:net';
|
|
9
|
+
import * as stream from 'node:stream';
|
|
10
|
+
import * as tls from 'node:tls';
|
|
11
|
+
import * as url from 'node:url';
|
|
12
|
+
|
|
13
|
+
import {
|
|
14
|
+
IncomingHttpHeaders as Http1IncomingHttpHeaders,
|
|
15
|
+
OutgoingHttpHeaders,
|
|
16
|
+
IncomingMessage,
|
|
17
|
+
ServerResponse,
|
|
18
|
+
} from 'node:http';
|
|
19
|
+
export { OutgoingHttpHeaders } from 'node:http';
|
|
11
20
|
|
|
12
21
|
export interface IncomingHttpStatusHeader {
|
|
13
22
|
":status"?: number;
|
|
@@ -261,7 +270,7 @@ declare module "http2" {
|
|
|
261
270
|
inflateDynamicTableSize?: number;
|
|
262
271
|
}
|
|
263
272
|
|
|
264
|
-
export interface Http2Session extends
|
|
273
|
+
export interface Http2Session extends EventEmitter {
|
|
265
274
|
readonly alpnProtocol?: string;
|
|
266
275
|
readonly closed: boolean;
|
|
267
276
|
readonly connecting: boolean;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
declare module
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
declare module 'node:https' {
|
|
2
|
+
export * from 'https';
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
declare module 'https' {
|
|
6
|
+
import * as tls from 'node:tls';
|
|
7
|
+
import * as http from 'node:http';
|
|
8
|
+
import { URL } from 'node:url';
|
|
6
9
|
|
|
7
10
|
type ServerOptions = tls.SecureContextOptions & tls.TlsOptions & http.ServerOptions;
|
|
8
11
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for non-npm package Node.js 12.
|
|
1
|
+
// Type definitions for non-npm package Node.js 12.20
|
|
2
2
|
// Project: http://nodejs.org/
|
|
3
3
|
// Definitions by: Microsoft TypeScript <https://github.com/Microsoft>
|
|
4
4
|
// DefinitelyTyped <https://github.com/DefinitelyTyped>
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
// David Junger <https://github.com/touffy>
|
|
13
13
|
// Deividas Bakanas <https://github.com/DeividasBakanas>
|
|
14
14
|
// Eugene Y. Q. Shen <https://github.com/eyqs>
|
|
15
|
-
// Flarna <https://github.com/Flarna>
|
|
16
15
|
// Hannes Magnusson <https://github.com/Hannes-Magnusson-CK>
|
|
17
16
|
// Hoàng Văn Khải <https://github.com/KSXGitHub>
|
|
18
17
|
// Huw <https://github.com/hoo29>
|
|
@@ -10,8 +10,15 @@
|
|
|
10
10
|
/**
|
|
11
11
|
* The inspector module provides an API for interacting with the V8 inspector.
|
|
12
12
|
*/
|
|
13
|
-
declare module
|
|
14
|
-
|
|
13
|
+
declare module 'node:inspector' {
|
|
14
|
+
export * from 'inspector';
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* The inspector module provides an API for interacting with the V8 inspector.
|
|
19
|
+
*/
|
|
20
|
+
declare module 'inspector' {
|
|
21
|
+
import EventEmitter = require('node:events');
|
|
15
22
|
|
|
16
23
|
interface InspectorNotification<T> {
|
|
17
24
|
method: string;
|
node v12.20/module.d.ts
ADDED
|
@@ -1,9 +1,17 @@
|
|
|
1
|
-
declare module
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
declare module 'node:net' {
|
|
2
|
+
export * from 'net';
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
declare module 'net' {
|
|
6
|
+
import * as stream from 'node:stream';
|
|
7
|
+
import EventEmitter = require('node:events');
|
|
8
|
+
import * as dns from 'node:dns';
|
|
5
9
|
|
|
6
|
-
type LookupFunction = (
|
|
10
|
+
type LookupFunction = (
|
|
11
|
+
hostname: string,
|
|
12
|
+
options: dns.LookupOneOptions,
|
|
13
|
+
callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void,
|
|
14
|
+
) => void;
|
|
7
15
|
|
|
8
16
|
interface AddressInfo {
|
|
9
17
|
address: string;
|
|
@@ -178,7 +186,7 @@ declare module "net" {
|
|
|
178
186
|
}
|
|
179
187
|
|
|
180
188
|
// https://github.com/nodejs/node/blob/master/lib/net.js
|
|
181
|
-
class Server extends
|
|
189
|
+
class Server extends EventEmitter {
|
|
182
190
|
constructor(connectionListener?: (socket: Socket) => void);
|
|
183
191
|
constructor(options?: { allowHalfOpen?: boolean, pauseOnConnect?: boolean }, connectionListener?: (socket: Socket) => void);
|
|
184
192
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.20.1",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -64,11 +64,6 @@
|
|
|
64
64
|
"url": "https://github.com/eyqs",
|
|
65
65
|
"githubUsername": "eyqs"
|
|
66
66
|
},
|
|
67
|
-
{
|
|
68
|
-
"name": "Flarna",
|
|
69
|
-
"url": "https://github.com/Flarna",
|
|
70
|
-
"githubUsername": "Flarna"
|
|
71
|
-
},
|
|
72
67
|
{
|
|
73
68
|
"name": "Hannes Magnusson",
|
|
74
69
|
"url": "https://github.com/Hannes-Magnusson-CK",
|
|
@@ -213,6 +208,11 @@
|
|
|
213
208
|
"main": "",
|
|
214
209
|
"types": "index.d.ts",
|
|
215
210
|
"typesVersions": {
|
|
211
|
+
"<=3.4": {
|
|
212
|
+
"*": [
|
|
213
|
+
"ts3.4/*"
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
216
|
"<=3.6": {
|
|
217
217
|
"*": [
|
|
218
218
|
"ts3.6/*"
|
|
@@ -226,6 +226,6 @@
|
|
|
226
226
|
},
|
|
227
227
|
"scripts": {},
|
|
228
228
|
"dependencies": {},
|
|
229
|
-
"typesPublisherContentHash": "
|
|
229
|
+
"typesPublisherContentHash": "a0b128eb4bc9239e3ec1573e0bf73e2957d65d8a9fbeef733214646c39ced873",
|
|
230
230
|
"typeScriptVersion": "3.4"
|
|
231
231
|
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
declare module
|
|
2
|
-
|
|
1
|
+
declare module 'node:perf_hooks' {
|
|
2
|
+
export * from 'perf_hooks';
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
declare module 'perf_hooks' {
|
|
6
|
+
import { AsyncResource } from 'node:async_hooks';
|
|
3
7
|
|
|
4
8
|
interface PerformanceEntry {
|
|
5
9
|
/**
|
|
@@ -1,4 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated since v7.0.0
|
|
3
|
+
* The version of the punycode module bundled in Node.js is being deprecated.
|
|
4
|
+
* In a future major version of Node.js this module will be removed.
|
|
5
|
+
* Users currently depending on the punycode module should switch to using
|
|
6
|
+
* the userland-provided Punycode.js module instead.
|
|
7
|
+
*/
|
|
8
|
+
declare module 'node:punycode' {
|
|
9
|
+
export * from 'punycode';
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated since v7.0.0
|
|
14
|
+
* The version of the punycode module bundled in Node.js is being deprecated.
|
|
15
|
+
* In a future major version of Node.js this module will be removed.
|
|
16
|
+
* Users currently depending on the punycode module should switch to using
|
|
17
|
+
* the userland-provided Punycode.js module instead.
|
|
18
|
+
*/
|
|
19
|
+
declare module 'punycode' {
|
|
2
20
|
/**
|
|
3
21
|
* @deprecated since v7.0.0
|
|
4
22
|
* The version of the punycode module bundled in Node.js is being deprecated.
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
declare module
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
declare module 'node:readline' {
|
|
2
|
+
export * from 'readline';
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
declare module 'readline' {
|
|
6
|
+
import EventEmitter = require('node:events');
|
|
4
7
|
|
|
5
8
|
interface Key {
|
|
6
9
|
sequence?: string;
|
|
@@ -10,7 +13,7 @@ declare module "readline" {
|
|
|
10
13
|
shift?: boolean;
|
|
11
14
|
}
|
|
12
15
|
|
|
13
|
-
class Interface extends
|
|
16
|
+
class Interface extends EventEmitter {
|
|
14
17
|
readonly terminal: boolean;
|
|
15
18
|
|
|
16
19
|
// Need direct access to line/cursor data, for use in external processes
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
declare module
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
declare module 'node:repl' {
|
|
2
|
+
export * from 'repl';
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
declare module 'repl' {
|
|
6
|
+
import { Interface, Completer, AsyncCompleter } from 'node:readline';
|
|
7
|
+
import { Context } from 'node:vm';
|
|
8
|
+
import { InspectOptions } from 'node:util';
|
|
5
9
|
|
|
6
10
|
interface ReplOptions {
|
|
7
11
|
/**
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
declare module 'node:stream' {
|
|
2
|
+
import Stream = require('stream');
|
|
3
|
+
export = Stream;
|
|
4
|
+
}
|
|
5
|
+
|
|
1
6
|
declare module 'stream' {
|
|
2
|
-
import EventEmitter = require('events');
|
|
7
|
+
import EventEmitter = require('node:events');
|
|
3
8
|
|
|
4
9
|
class internal extends EventEmitter {
|
|
5
10
|
pipe<T extends NodeJS.WritableStream>(destination: T, options?: { end?: boolean; }): T;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
declare module
|
|
1
|
+
declare module 'node:timers' {
|
|
2
|
+
export * from 'timers';
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
declare module 'timers' {
|
|
2
6
|
function setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timeout;
|
|
3
7
|
namespace setTimeout {
|
|
4
8
|
function __promisify__(ms: number): Promise<void>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
declare module
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
declare module 'node:tls' {
|
|
2
|
+
export * from 'tls';
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
declare module 'tls' {
|
|
6
|
+
import * as net from 'node:net';
|
|
6
7
|
|
|
7
8
|
const CLIENT_RENEG_LIMIT: number;
|
|
8
9
|
const CLIENT_RENEG_WINDOW: number;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
declare module
|
|
1
|
+
declare module 'node:trace_events' {
|
|
2
|
+
export * from 'trace_events';
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
declare module 'trace_events' {
|
|
2
6
|
/**
|
|
3
7
|
* The `Tracing` object is used to enable or disable tracing for sets of
|
|
4
8
|
* categories. Instances are created using the
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
// NOTE: These definitions support NodeJS and TypeScript 3.
|
|
1
|
+
// NOTE: These definitions support NodeJS and TypeScript 3.2.
|
|
2
2
|
|
|
3
3
|
// NOTE: TypeScript version-specific augmentations can be found in the following paths:
|
|
4
4
|
// - ~/base.d.ts - Shared definitions common to all TypeScript versions
|
|
5
5
|
// - ~/index.d.ts - Definitions specific to TypeScript 2.1
|
|
6
|
-
// - ~/ts3.
|
|
7
|
-
// - ~/ts3.
|
|
6
|
+
// - ~/ts3.2/base.d.ts - Definitions specific to TypeScript 3.2
|
|
7
|
+
// - ~/ts3.2/index.d.ts - Definitions specific to TypeScript 3.2 with global and assert pulled in
|
|
8
8
|
|
|
9
9
|
// Reference required types from the default lib:
|
|
10
10
|
/// <reference lib="es2018" />
|
|
@@ -52,7 +52,3 @@
|
|
|
52
52
|
/// <reference path="../vm.d.ts" />
|
|
53
53
|
/// <reference path="../worker_threads.d.ts" />
|
|
54
54
|
/// <reference path="../zlib.d.ts" />
|
|
55
|
-
|
|
56
|
-
// TypeScript 3.5-specific augmentations:
|
|
57
|
-
/// <reference path="../globals.global.d.ts" />
|
|
58
|
-
/// <reference path="../wasi.d.ts" />
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare var global: NodeJS.Global;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// NOTE: These definitions support NodeJS and TypeScript 3.2.
|
|
2
|
+
// This is requried to enable globalThis support for global in ts3.4 without causing errors
|
|
3
|
+
// This is requried to enable typing assert in ts3.7 without causing errors
|
|
4
|
+
// Typically type modifiations should be made in base.d.ts instead of here
|
|
5
|
+
|
|
6
|
+
/// <reference path="base.d.ts" />
|
|
7
|
+
/// <reference path="assert.d.ts" />
|
|
8
|
+
/// <reference path="globals.global.d.ts" />
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// NOTE: These definitions support NodeJS and TypeScript 3.4.
|
|
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.4/base.d.ts - Definitions specific to TypeScript 3.4
|
|
7
|
+
// - ~/ts3.4/index.d.ts - Definitions specific to TypeScript 3.4 with assert pulled in
|
|
8
|
+
|
|
9
|
+
// Reference required types from the default lib:
|
|
10
|
+
/// <reference lib="es2018" />
|
|
11
|
+
/// <reference lib="esnext.asynciterable" />
|
|
12
|
+
/// <reference lib="esnext.intl" />
|
|
13
|
+
/// <reference lib="esnext.bigint" />
|
|
14
|
+
|
|
15
|
+
// Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
|
|
16
|
+
/// <reference path="../ts3.4/base.d.ts" />
|
|
17
|
+
|
|
18
|
+
// TypeScript 3.5-specific augmentations:
|
|
19
|
+
/// <reference path="../globals.global.d.ts" />
|
|
20
|
+
/// <reference path="../wasi.d.ts" />
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
declare module
|
|
2
|
-
|
|
1
|
+
declare module 'node:url' {
|
|
2
|
+
export * from 'url';
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
declare module 'url' {
|
|
6
|
+
import { ParsedUrlQuery, ParsedUrlQueryInput } from 'node:querystring';
|
|
3
7
|
|
|
4
8
|
// Input to `url.format`
|
|
5
9
|
interface UrlObject {
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
declare module
|
|
1
|
+
declare module 'node:util' {
|
|
2
|
+
export * from 'util';
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
declare module 'util' {
|
|
2
6
|
interface InspectOptions extends NodeJS.InspectOptions { }
|
|
3
7
|
function format(format?: any, ...param: any[]): string;
|
|
4
8
|
function formatWithOptions(inspectOptions: InspectOptions, format?: any, ...param: any[]): string;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
declare module
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
declare module 'node:worker_threads' {
|
|
2
|
+
export * from 'worker_threads';
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
declare module 'worker_threads' {
|
|
6
|
+
import { Context } from 'node:vm';
|
|
7
|
+
import EventEmitter = require('node:events');
|
|
8
|
+
import { Readable, Writable } from 'node:stream';
|
|
9
|
+
import { promises } from 'node:fs';
|
|
6
10
|
|
|
7
11
|
const isMainThread: boolean;
|
|
8
12
|
const parentPort: null | MessagePort;
|
node v12.19/README.md
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# Installation
|
|
2
|
-
> `npm install --save @types/node`
|
|
3
|
-
|
|
4
|
-
# Summary
|
|
5
|
-
This package contains type definitions for Node.js (http://nodejs.org/).
|
|
6
|
-
|
|
7
|
-
# Details
|
|
8
|
-
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v12.
|
|
9
|
-
|
|
10
|
-
### Additional Details
|
|
11
|
-
* Last updated: Thu, 14 Jan 2021 21:29:49 GMT
|
|
12
|
-
* Dependencies: none
|
|
13
|
-
* Global values: `Buffer`, `NodeJS`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
|
14
|
-
|
|
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), [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).
|
node v12.19/console.d.ts
DELETED
node v12.19/module.d.ts
DELETED