@types/node 14.14.40 → 14.14.44
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 → node v14.14}/LICENSE +0 -0
- node v14.14/README.md +16 -0
- node/assert.d.ts → node v14.14/assert.d.ts +0 -5
- node/async_hooks.d.ts → node v14.14/async_hooks.d.ts +0 -7
- {node → node v14.14}/base.d.ts +0 -0
- node/buffer.d.ts → node v14.14/buffer.d.ts +0 -4
- node/child_process.d.ts → node v14.14/child_process.d.ts +4 -8
- node/cluster.d.ts → node v14.14/cluster.d.ts +3 -7
- node/console.d.ts → node v14.14/console.d.ts +1 -5
- node v14.14/constants.d.ts +13 -0
- node/crypto.d.ts → node v14.14/crypto.d.ts +1 -5
- node/dgram.d.ts → node v14.14/dgram.d.ts +3 -7
- node/dns.d.ts → node v14.14/dns.d.ts +0 -4
- node/domain.d.ts → node v14.14/domain.d.ts +1 -5
- node/events.d.ts → node v14.14/events.d.ts +0 -5
- node/fs/promises.d.ts → node v14.14/fs/promises.d.ts +1 -5
- node/fs.d.ts → node v14.14/fs.d.ts +4 -8
- node/globals.d.ts → node v14.14/globals.d.ts +1 -1
- {node → node v14.14}/globals.global.d.ts +0 -0
- node/http.d.ts → node v14.14/http.d.ts +3 -7
- node/http2.d.ts → node v14.14/http2.d.ts +8 -12
- node/https.d.ts → node v14.14/https.d.ts +3 -7
- node/index.d.ts → node v14.14/index.d.ts +0 -1
- node/inspector.d.ts → node v14.14/inspector.d.ts +1 -8
- node/module.d.ts → node v14.14/module.d.ts +1 -6
- node/net.d.ts → node v14.14/net.d.ts +3 -7
- node/os.d.ts → node v14.14/os.d.ts +0 -4
- node/package.json → node v14.14/package.json +2 -7
- node/path.d.ts → node v14.14/path.d.ts +0 -5
- node/perf_hooks.d.ts → node v14.14/perf_hooks.d.ts +1 -5
- node/process.d.ts → node v14.14/process.d.ts +2 -47
- node/punycode.d.ts → node v14.14/punycode.d.ts +0 -11
- node/querystring.d.ts → node v14.14/querystring.d.ts +0 -4
- node/readline.d.ts → node v14.14/readline.d.ts +1 -5
- node/repl.d.ts → node v14.14/repl.d.ts +3 -7
- node/stream.d.ts → node v14.14/stream.d.ts +28 -122
- node/string_decoder.d.ts → node v14.14/string_decoder.d.ts +0 -4
- node/timers.d.ts → node v14.14/timers.d.ts +0 -4
- node/tls.d.ts → node v14.14/tls.d.ts +1 -5
- node/trace_events.d.ts → node v14.14/trace_events.d.ts +0 -4
- node/ts3.6/assert.d.ts → node v14.14/ts3.6/assert.d.ts +0 -5
- {node → node v14.14}/ts3.6/base.d.ts +0 -0
- {node → node v14.14}/ts3.6/index.d.ts +0 -0
- node/tty.d.ts → node v14.14/tty.d.ts +1 -5
- node/url.d.ts → node v14.14/url.d.ts +1 -5
- node/util.d.ts → node v14.14/util.d.ts +0 -4
- node/v8.d.ts → node v14.14/v8.d.ts +1 -5
- node/vm.d.ts → node v14.14/vm.d.ts +0 -4
- node/wasi.d.ts → node v14.14/wasi.d.ts +0 -4
- node/worker_threads.d.ts → node v14.14/worker_threads.d.ts +5 -9
- node/zlib.d.ts → node v14.14/zlib.d.ts +1 -5
- node/README.md +0 -16
- node/constants.d.ts +0 -19
{node → node v14.14}/LICENSE
RENAMED
|
File without changes
|
node v14.14/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/v14.
|
|
9
|
+
|
|
10
|
+
### Additional Details
|
|
11
|
+
* Last updated: Tue, 04 May 2021 23:03:14 GMT
|
|
12
|
+
* Dependencies: none
|
|
13
|
+
* Global values: `Buffer`, `__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), [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), [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), [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), [Victor Perin](https://github.com/victorperin), and [Yongsheng Zhang](https://github.com/ZYSzys).
|
{node → node v14.14}/base.d.ts
RENAMED
|
File without changes
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
declare module 'node:child_process' {
|
|
2
|
-
export * from 'child_process';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'child_process' {
|
|
6
|
-
import { BaseEncodingOptions } from '
|
|
7
|
-
import * as events from '
|
|
8
|
-
import * as net from '
|
|
9
|
-
import { Writable, Readable, Stream, Pipe } from '
|
|
2
|
+
import { BaseEncodingOptions } from 'fs';
|
|
3
|
+
import * as events from 'events';
|
|
4
|
+
import * as net from 'net';
|
|
5
|
+
import { Writable, Readable, Stream, Pipe } from 'stream';
|
|
10
6
|
|
|
11
7
|
type Serializable = string | object | number | boolean;
|
|
12
8
|
type SendHandle = net.Socket | net.Server;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
declare module 'node:cluster' {
|
|
2
|
-
export * from 'cluster';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'cluster' {
|
|
6
|
-
import * as child from '
|
|
7
|
-
import EventEmitter = require('
|
|
8
|
-
import * as net from '
|
|
2
|
+
import * as child from 'child_process';
|
|
3
|
+
import EventEmitter = require('events');
|
|
4
|
+
import * as net from 'net';
|
|
9
5
|
|
|
10
6
|
// interfaces
|
|
11
7
|
interface ClusterSettings {
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
declare module 'node:console' {
|
|
2
|
-
export = console;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'console' {
|
|
6
|
-
import { InspectOptions } from '
|
|
2
|
+
import { InspectOptions } from 'util';
|
|
7
3
|
|
|
8
4
|
global {
|
|
9
5
|
// This needs to be global to avoid TS2403 in case lib.dom.d.ts is present in the same build
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** @deprecated since v6.3.0 - use constants property exposed by the relevant module instead. */
|
|
2
|
+
declare module 'constants' {
|
|
3
|
+
import { constants as osConstants, SignalConstants } from 'os';
|
|
4
|
+
import { constants as cryptoConstants } from 'crypto';
|
|
5
|
+
import { constants as fsConstants } from 'fs';
|
|
6
|
+
|
|
7
|
+
const exp: typeof osConstants.errno &
|
|
8
|
+
typeof osConstants.priority &
|
|
9
|
+
SignalConstants &
|
|
10
|
+
typeof cryptoConstants &
|
|
11
|
+
typeof fsConstants;
|
|
12
|
+
export = exp;
|
|
13
|
+
}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
declare module 'node:dgram' {
|
|
2
|
-
export * from 'dgram';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'dgram' {
|
|
6
|
-
import { AddressInfo } from '
|
|
7
|
-
import * as dns from '
|
|
8
|
-
import EventEmitter = require('
|
|
2
|
+
import { AddressInfo } from 'net';
|
|
3
|
+
import * as dns from 'dns';
|
|
4
|
+
import EventEmitter = require('events');
|
|
9
5
|
|
|
10
6
|
interface RemoteInfo {
|
|
11
7
|
address: string;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
declare module 'fs/promises' {
|
|
2
|
-
export * from 'node:fs/promises';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
declare module 'node:fs/promises' {
|
|
6
2
|
import {
|
|
7
3
|
Stats,
|
|
8
4
|
BigIntStats,
|
|
@@ -20,7 +16,7 @@ declare module 'node:fs/promises' {
|
|
|
20
16
|
BufferEncodingOption,
|
|
21
17
|
OpenMode,
|
|
22
18
|
Mode,
|
|
23
|
-
} from '
|
|
19
|
+
} from 'fs';
|
|
24
20
|
|
|
25
21
|
interface FileHandle {
|
|
26
22
|
/**
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
declare module 'node:fs' {
|
|
2
|
-
export * from 'fs';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'fs' {
|
|
6
|
-
import * as stream from '
|
|
7
|
-
import EventEmitter = require('
|
|
8
|
-
import { URL } from '
|
|
9
|
-
import * as promises from '
|
|
2
|
+
import * as stream from 'stream';
|
|
3
|
+
import EventEmitter = require('events');
|
|
4
|
+
import { URL } from 'url';
|
|
5
|
+
import * as promises from 'fs/promises';
|
|
10
6
|
|
|
11
7
|
export { promises };
|
|
12
8
|
/**
|
|
@@ -71,7 +71,7 @@ declare var module: NodeModule;
|
|
|
71
71
|
declare var exports: any;
|
|
72
72
|
|
|
73
73
|
// Buffer class
|
|
74
|
-
type BufferEncoding = "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "
|
|
74
|
+
type BufferEncoding = "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex";
|
|
75
75
|
|
|
76
76
|
type WithImplicitCoercion<T> = T | { valueOf(): T };
|
|
77
77
|
|
|
File without changes
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
declare module 'node:http' {
|
|
2
|
-
export * from 'http';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'http' {
|
|
6
|
-
import * as stream from '
|
|
7
|
-
import { URL } from '
|
|
8
|
-
import { Socket, Server as NetServer } from '
|
|
2
|
+
import * as stream from 'stream';
|
|
3
|
+
import { URL } from 'url';
|
|
4
|
+
import { Socket, Server as NetServer } from 'net';
|
|
9
5
|
|
|
10
6
|
// incoming headers will never contain number
|
|
11
7
|
interface IncomingHttpHeaders extends NodeJS.Dict<string | string[]> {
|
|
@@ -1,22 +1,18 @@
|
|
|
1
|
-
declare module 'node:http2' {
|
|
2
|
-
export * from 'http2';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'http2' {
|
|
6
|
-
import EventEmitter = require('
|
|
7
|
-
import * as fs from '
|
|
8
|
-
import * as net from '
|
|
9
|
-
import * as stream from '
|
|
10
|
-
import * as tls from '
|
|
11
|
-
import * as url from '
|
|
2
|
+
import EventEmitter = require('events');
|
|
3
|
+
import * as fs from 'fs';
|
|
4
|
+
import * as net from 'net';
|
|
5
|
+
import * as stream from 'stream';
|
|
6
|
+
import * as tls from 'tls';
|
|
7
|
+
import * as url from 'url';
|
|
12
8
|
|
|
13
9
|
import {
|
|
14
10
|
IncomingHttpHeaders as Http1IncomingHttpHeaders,
|
|
15
11
|
OutgoingHttpHeaders,
|
|
16
12
|
IncomingMessage,
|
|
17
13
|
ServerResponse,
|
|
18
|
-
} from '
|
|
19
|
-
export { OutgoingHttpHeaders } from '
|
|
14
|
+
} from 'http';
|
|
15
|
+
export { OutgoingHttpHeaders } from 'http';
|
|
20
16
|
|
|
21
17
|
export interface IncomingHttpStatusHeader {
|
|
22
18
|
":status"?: number;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
declare module 'node:https' {
|
|
2
|
-
export * from 'https';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'https' {
|
|
6
|
-
import * as tls from '
|
|
7
|
-
import * as http from '
|
|
8
|
-
import { URL } from '
|
|
2
|
+
import * as tls from 'tls';
|
|
3
|
+
import * as http from 'http';
|
|
4
|
+
import { URL } from 'url';
|
|
9
5
|
|
|
10
6
|
type ServerOptions = tls.SecureContextOptions & tls.TlsOptions & http.ServerOptions;
|
|
11
7
|
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
// Alvis HT Tang <https://github.com/alvis>
|
|
7
7
|
// Andrew Makarov <https://github.com/r3nya>
|
|
8
8
|
// Benjamin Toueg <https://github.com/btoueg>
|
|
9
|
-
// Bruno Scheufler <https://github.com/brunoscheufler>
|
|
10
9
|
// Chigozirim C. <https://github.com/smac89>
|
|
11
10
|
// David Junger <https://github.com/touffy>
|
|
12
11
|
// Deividas Bakanas <https://github.com/DeividasBakanas>
|
|
@@ -7,18 +7,11 @@
|
|
|
7
7
|
|
|
8
8
|
// tslint:disable:max-line-length
|
|
9
9
|
|
|
10
|
-
/**
|
|
11
|
-
* The inspector module provides an API for interacting with the V8 inspector.
|
|
12
|
-
*/
|
|
13
|
-
declare module 'node:inspector' {
|
|
14
|
-
export * from 'inspector';
|
|
15
|
-
}
|
|
16
|
-
|
|
17
10
|
/**
|
|
18
11
|
* The inspector module provides an API for interacting with the V8 inspector.
|
|
19
12
|
*/
|
|
20
13
|
declare module 'inspector' {
|
|
21
|
-
import EventEmitter = require('
|
|
14
|
+
import EventEmitter = require('events');
|
|
22
15
|
|
|
23
16
|
interface InspectorNotification<T> {
|
|
24
17
|
method: string;
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
declare module 'node:module' {
|
|
2
|
-
import Module = require('module');
|
|
3
|
-
export = Module;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
1
|
declare module 'module' {
|
|
7
|
-
import { URL } from '
|
|
2
|
+
import { URL } from 'url';
|
|
8
3
|
namespace Module {
|
|
9
4
|
/**
|
|
10
5
|
* Updates all the live bindings for builtin ES Modules to match the properties of the CommonJS exports.
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
declare module 'node:net' {
|
|
2
|
-
export * from 'net';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'net' {
|
|
6
|
-
import * as stream from '
|
|
7
|
-
import EventEmitter = require('
|
|
8
|
-
import * as dns from '
|
|
2
|
+
import * as stream from 'stream';
|
|
3
|
+
import EventEmitter = require('events');
|
|
4
|
+
import * as dns from 'dns';
|
|
9
5
|
|
|
10
6
|
type LookupFunction = (
|
|
11
7
|
hostname: string,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "14.14.
|
|
3
|
+
"version": "14.14.44",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -34,11 +34,6 @@
|
|
|
34
34
|
"url": "https://github.com/btoueg",
|
|
35
35
|
"githubUsername": "btoueg"
|
|
36
36
|
},
|
|
37
|
-
{
|
|
38
|
-
"name": "Bruno Scheufler",
|
|
39
|
-
"url": "https://github.com/brunoscheufler",
|
|
40
|
-
"githubUsername": "brunoscheufler"
|
|
41
|
-
},
|
|
42
37
|
{
|
|
43
38
|
"name": "Chigozirim C.",
|
|
44
39
|
"url": "https://github.com/smac89",
|
|
@@ -231,6 +226,6 @@
|
|
|
231
226
|
},
|
|
232
227
|
"scripts": {},
|
|
233
228
|
"dependencies": {},
|
|
234
|
-
"typesPublisherContentHash": "
|
|
229
|
+
"typesPublisherContentHash": "d40ccad0be2f22b770d1f622ae3c11d32b22530d264b6d59c77ec48714255bca",
|
|
235
230
|
"typeScriptVersion": "3.5"
|
|
236
231
|
}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
declare module 'node:perf_hooks' {
|
|
2
|
-
export * from 'perf_hooks';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'perf_hooks' {
|
|
6
|
-
import { AsyncResource } from '
|
|
2
|
+
import { AsyncResource } from 'async_hooks';
|
|
7
3
|
|
|
8
4
|
type EntryType = 'node' | 'mark' | 'measure' | 'gc' | 'function' | 'http2' | 'http';
|
|
9
5
|
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
declare module 'node:process' {
|
|
2
|
-
export = process;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'process' {
|
|
6
|
-
import * as tty from '
|
|
2
|
+
import * as tty from 'tty';
|
|
7
3
|
|
|
8
4
|
global {
|
|
9
5
|
var process: NodeJS.Process;
|
|
@@ -175,32 +171,6 @@ declare module 'process' {
|
|
|
175
171
|
voluntaryContextSwitches: number;
|
|
176
172
|
}
|
|
177
173
|
|
|
178
|
-
interface EmitWarningOptions {
|
|
179
|
-
/**
|
|
180
|
-
* When `warning` is a `string`, `type` is the name to use for the _type_ of warning being emitted.
|
|
181
|
-
*
|
|
182
|
-
* @default 'Warning'
|
|
183
|
-
*/
|
|
184
|
-
type?: string;
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* A unique identifier for the warning instance being emitted.
|
|
188
|
-
*/
|
|
189
|
-
code?: string;
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* When `warning` is a `string`, `ctor` is an optional function used to limit the generated stack trace.
|
|
193
|
-
*
|
|
194
|
-
* @default process.emitWarning
|
|
195
|
-
*/
|
|
196
|
-
ctor?: Function;
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* Additional text to include with the error.
|
|
200
|
-
*/
|
|
201
|
-
detail?: string;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
174
|
interface Process extends EventEmitter {
|
|
205
175
|
/**
|
|
206
176
|
* Can also be a tty.WriteStream, not typed due to limitations.
|
|
@@ -226,22 +196,7 @@ declare module 'process' {
|
|
|
226
196
|
chdir(directory: string): void;
|
|
227
197
|
cwd(): string;
|
|
228
198
|
debugPort: number;
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* The `process.emitWarning()` method can be used to emit custom or application specific process warnings.
|
|
232
|
-
*
|
|
233
|
-
* These can be listened for by adding a handler to the `'warning'` event.
|
|
234
|
-
*
|
|
235
|
-
* @param warning The warning to emit.
|
|
236
|
-
* @param type When `warning` is a `string`, `type` is the name to use for the _type_ of warning being emitted. Default: `'Warning'`.
|
|
237
|
-
* @param code A unique identifier for the warning instance being emitted.
|
|
238
|
-
* @param ctor When `warning` is a `string`, `ctor` is an optional function used to limit the generated stack trace. Default: `process.emitWarning`.
|
|
239
|
-
*/
|
|
240
|
-
emitWarning(warning: string | Error, ctor?: Function): void;
|
|
241
|
-
emitWarning(warning: string | Error, type?: string, ctor?: Function): void;
|
|
242
|
-
emitWarning(warning: string | Error, type?: string, code?: string, ctor?: Function): void;
|
|
243
|
-
emitWarning(warning: string | Error, options?: EmitWarningOptions): void;
|
|
244
|
-
|
|
199
|
+
emitWarning(warning: string | Error, name?: string, ctor?: Function): void;
|
|
245
200
|
env: ProcessEnv;
|
|
246
201
|
exit(code?: number): never;
|
|
247
202
|
exitCode?: number;
|
|
@@ -1,14 +1,3 @@
|
|
|
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
1
|
/**
|
|
13
2
|
* @deprecated since v7.0.0
|
|
14
3
|
* The version of the punycode module bundled in Node.js is being deprecated.
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
declare module 'node:repl' {
|
|
2
|
-
export * from 'repl';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'repl' {
|
|
6
|
-
import { Interface, Completer, AsyncCompleter } from '
|
|
7
|
-
import { Context } from '
|
|
8
|
-
import { InspectOptions } from '
|
|
2
|
+
import { Interface, Completer, AsyncCompleter } from 'readline';
|
|
3
|
+
import { Context } from 'vm';
|
|
4
|
+
import { InspectOptions } from 'util';
|
|
9
5
|
|
|
10
6
|
interface ReplOptions {
|
|
11
7
|
/**
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
declare module 'node:stream' {
|
|
2
|
-
import Stream = require('stream');
|
|
3
|
-
export = Stream;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
1
|
declare module 'stream' {
|
|
7
|
-
import EventEmitter = require('
|
|
2
|
+
import EventEmitter = require('events');
|
|
8
3
|
|
|
9
4
|
class internal extends EventEmitter {
|
|
10
5
|
pipe<T extends NodeJS.WritableStream>(destination: T, options?: { end?: boolean; }): T;
|
|
@@ -302,76 +297,23 @@ declare module 'stream' {
|
|
|
302
297
|
function __promisify__(stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, options?: FinishedOptions): Promise<void>;
|
|
303
298
|
}
|
|
304
299
|
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
NodeJS.
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
type PipelinePromise<S extends PipelineDestination<any, any>> =
|
|
323
|
-
S extends PipelineDestinationPromiseFunction<any, infer P> ? Promise<P> : Promise<void>;
|
|
324
|
-
|
|
325
|
-
function pipeline<A extends PipelineSource<any>,
|
|
326
|
-
B extends PipelineDestination<A, any>>(
|
|
327
|
-
source: A,
|
|
328
|
-
destination: B,
|
|
329
|
-
callback?: PipelineCallback<B>
|
|
330
|
-
): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream;
|
|
331
|
-
function pipeline<A extends PipelineSource<any>,
|
|
332
|
-
T1 extends PipelineTransform<A, any>,
|
|
333
|
-
B extends PipelineDestination<T1, any>>(
|
|
334
|
-
source: A,
|
|
335
|
-
transform1: T1,
|
|
336
|
-
destination: B,
|
|
337
|
-
callback?: PipelineCallback<B>
|
|
338
|
-
): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream;
|
|
339
|
-
function pipeline<A extends PipelineSource<any>,
|
|
340
|
-
T1 extends PipelineTransform<A, any>,
|
|
341
|
-
T2 extends PipelineTransform<T1, any>,
|
|
342
|
-
B extends PipelineDestination<T2, any>>(
|
|
343
|
-
source: A,
|
|
344
|
-
transform1: T1,
|
|
345
|
-
transform2: T2,
|
|
346
|
-
destination: B,
|
|
347
|
-
callback?: PipelineCallback<B>
|
|
348
|
-
): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream;
|
|
349
|
-
function pipeline<A extends PipelineSource<any>,
|
|
350
|
-
T1 extends PipelineTransform<A, any>,
|
|
351
|
-
T2 extends PipelineTransform<T1, any>,
|
|
352
|
-
T3 extends PipelineTransform<T2, any>,
|
|
353
|
-
B extends PipelineDestination<T3, any>>(
|
|
354
|
-
source: A,
|
|
355
|
-
transform1: T1,
|
|
356
|
-
transform2: T2,
|
|
357
|
-
transform3: T3,
|
|
358
|
-
destination: B,
|
|
359
|
-
callback?: PipelineCallback<B>
|
|
360
|
-
): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream;
|
|
361
|
-
function pipeline<A extends PipelineSource<any>,
|
|
362
|
-
T1 extends PipelineTransform<A, any>,
|
|
363
|
-
T2 extends PipelineTransform<T1, any>,
|
|
364
|
-
T3 extends PipelineTransform<T2, any>,
|
|
365
|
-
T4 extends PipelineTransform<T3, any>,
|
|
366
|
-
B extends PipelineDestination<T4, any>>(
|
|
367
|
-
source: A,
|
|
368
|
-
transform1: T1,
|
|
369
|
-
transform2: T2,
|
|
370
|
-
transform3: T3,
|
|
371
|
-
transform4: T4,
|
|
372
|
-
destination: B,
|
|
373
|
-
callback?: PipelineCallback<B>
|
|
374
|
-
): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream;
|
|
300
|
+
function pipeline<T extends NodeJS.WritableStream>(stream1: NodeJS.ReadableStream, stream2: T, callback?: (err: NodeJS.ErrnoException | null) => void): T;
|
|
301
|
+
function pipeline<T extends NodeJS.WritableStream>(stream1: NodeJS.ReadableStream, stream2: NodeJS.ReadWriteStream, stream3: T, callback?: (err: NodeJS.ErrnoException | null) => void): T;
|
|
302
|
+
function pipeline<T extends NodeJS.WritableStream>(
|
|
303
|
+
stream1: NodeJS.ReadableStream,
|
|
304
|
+
stream2: NodeJS.ReadWriteStream,
|
|
305
|
+
stream3: NodeJS.ReadWriteStream,
|
|
306
|
+
stream4: T,
|
|
307
|
+
callback?: (err: NodeJS.ErrnoException | null) => void,
|
|
308
|
+
): T;
|
|
309
|
+
function pipeline<T extends NodeJS.WritableStream>(
|
|
310
|
+
stream1: NodeJS.ReadableStream,
|
|
311
|
+
stream2: NodeJS.ReadWriteStream,
|
|
312
|
+
stream3: NodeJS.ReadWriteStream,
|
|
313
|
+
stream4: NodeJS.ReadWriteStream,
|
|
314
|
+
stream5: T,
|
|
315
|
+
callback?: (err: NodeJS.ErrnoException | null) => void,
|
|
316
|
+
): T;
|
|
375
317
|
function pipeline(
|
|
376
318
|
streams: ReadonlyArray<NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream>,
|
|
377
319
|
callback?: (err: NodeJS.ErrnoException | null) => void,
|
|
@@ -382,52 +324,16 @@ declare module 'stream' {
|
|
|
382
324
|
...streams: Array<NodeJS.ReadWriteStream | NodeJS.WritableStream | ((err: NodeJS.ErrnoException | null) => void)>,
|
|
383
325
|
): NodeJS.WritableStream;
|
|
384
326
|
namespace pipeline {
|
|
385
|
-
function __promisify__
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
destination: B
|
|
396
|
-
): PipelinePromise<B>;
|
|
397
|
-
function __promisify__<A extends PipelineSource<any>,
|
|
398
|
-
T1 extends PipelineTransform<A, any>,
|
|
399
|
-
T2 extends PipelineTransform<T1, any>,
|
|
400
|
-
B extends PipelineDestination<T2, any>>(
|
|
401
|
-
source: A,
|
|
402
|
-
transform1: T1,
|
|
403
|
-
transform2: T2,
|
|
404
|
-
destination: B
|
|
405
|
-
): PipelinePromise<B>;
|
|
406
|
-
function __promisify__<A extends PipelineSource<any>,
|
|
407
|
-
T1 extends PipelineTransform<A, any>,
|
|
408
|
-
T2 extends PipelineTransform<T1, any>,
|
|
409
|
-
T3 extends PipelineTransform<T2, any>,
|
|
410
|
-
B extends PipelineDestination<T3, any>>(
|
|
411
|
-
source: A,
|
|
412
|
-
transform1: T1,
|
|
413
|
-
transform2: T2,
|
|
414
|
-
transform3: T3,
|
|
415
|
-
destination: B
|
|
416
|
-
): PipelinePromise<B>;
|
|
417
|
-
function __promisify__<A extends PipelineSource<any>,
|
|
418
|
-
T1 extends PipelineTransform<A, any>,
|
|
419
|
-
T2 extends PipelineTransform<T1, any>,
|
|
420
|
-
T3 extends PipelineTransform<T2, any>,
|
|
421
|
-
T4 extends PipelineTransform<T3, any>,
|
|
422
|
-
B extends PipelineDestination<T4, any>>(
|
|
423
|
-
source: A,
|
|
424
|
-
transform1: T1,
|
|
425
|
-
transform2: T2,
|
|
426
|
-
transform3: T3,
|
|
427
|
-
transform4: T4,
|
|
428
|
-
destination: B
|
|
429
|
-
): PipelinePromise<B>;
|
|
430
|
-
|
|
327
|
+
function __promisify__(stream1: NodeJS.ReadableStream, stream2: NodeJS.WritableStream): Promise<void>;
|
|
328
|
+
function __promisify__(stream1: NodeJS.ReadableStream, stream2: NodeJS.ReadWriteStream, stream3: NodeJS.WritableStream): Promise<void>;
|
|
329
|
+
function __promisify__(stream1: NodeJS.ReadableStream, stream2: NodeJS.ReadWriteStream, stream3: NodeJS.ReadWriteStream, stream4: NodeJS.WritableStream): Promise<void>;
|
|
330
|
+
function __promisify__(
|
|
331
|
+
stream1: NodeJS.ReadableStream,
|
|
332
|
+
stream2: NodeJS.ReadWriteStream,
|
|
333
|
+
stream3: NodeJS.ReadWriteStream,
|
|
334
|
+
stream4: NodeJS.ReadWriteStream,
|
|
335
|
+
stream5: NodeJS.WritableStream,
|
|
336
|
+
): Promise<void>;
|
|
431
337
|
function __promisify__(streams: ReadonlyArray<NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream>): Promise<void>;
|
|
432
338
|
function __promisify__(
|
|
433
339
|
stream1: NodeJS.ReadableStream,
|
|
File without changes
|
|
File without changes
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
declare module 'node:url' {
|
|
2
|
-
export * from 'url';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'url' {
|
|
6
|
-
import { ParsedUrlQuery, ParsedUrlQueryInput } from '
|
|
2
|
+
import { ParsedUrlQuery, ParsedUrlQueryInput } from 'querystring';
|
|
7
3
|
|
|
8
4
|
// Input to `url.format`
|
|
9
5
|
interface UrlObject {
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
declare module 'node:util' {
|
|
2
|
-
export * from 'util';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'util' {
|
|
6
2
|
interface InspectOptions extends NodeJS.InspectOptions { }
|
|
7
3
|
type Style = 'special' | 'number' | 'bigint' | 'boolean' | 'undefined' | 'null' | 'string' | 'symbol' | 'date' | 'regexp' | 'module';
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
declare module 'node:worker_threads' {
|
|
2
|
-
export * from 'worker_threads';
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
declare module 'worker_threads' {
|
|
6
|
-
import { Context } from '
|
|
7
|
-
import EventEmitter = require('
|
|
8
|
-
import { Readable, Writable } from '
|
|
9
|
-
import { URL } from '
|
|
10
|
-
import { FileHandle } from '
|
|
2
|
+
import { Context } from 'vm';
|
|
3
|
+
import EventEmitter = require('events');
|
|
4
|
+
import { Readable, Writable } from 'stream';
|
|
5
|
+
import { URL } from 'url';
|
|
6
|
+
import { FileHandle } from 'fs/promises';
|
|
11
7
|
|
|
12
8
|
const isMainThread: boolean;
|
|
13
9
|
const parentPort: null | MessagePort;
|
node/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.
|
|
9
|
-
|
|
10
|
-
### Additional Details
|
|
11
|
-
* Last updated: Thu, 15 Apr 2021 14:01:21 GMT
|
|
12
|
-
* Dependencies: none
|
|
13
|
-
* Global values: `Buffer`, `__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), [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), [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), [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), [Victor Perin](https://github.com/victorperin), and [Yongsheng Zhang](https://github.com/ZYSzys).
|
node/constants.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/** @deprecated since v6.3.0 - use constants property exposed by the relevant module instead. */
|
|
2
|
-
declare module 'node:constants' {
|
|
3
|
-
import exp = require('constants');
|
|
4
|
-
export = exp;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
/** @deprecated since v6.3.0 - use constants property exposed by the relevant module instead. */
|
|
8
|
-
declare module 'constants' {
|
|
9
|
-
import { constants as osConstants, SignalConstants } from 'node:os';
|
|
10
|
-
import { constants as cryptoConstants } from 'node:crypto';
|
|
11
|
-
import { constants as fsConstants } from 'node:fs';
|
|
12
|
-
|
|
13
|
-
const exp: typeof osConstants.errno &
|
|
14
|
-
typeof osConstants.priority &
|
|
15
|
-
SignalConstants &
|
|
16
|
-
typeof cryptoConstants &
|
|
17
|
-
typeof fsConstants;
|
|
18
|
-
export = exp;
|
|
19
|
-
}
|