@types/node 17.0.44 → 17.0.45
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 v17.0}/LICENSE +0 -0
- node/README.md → node v17.0/README.md +3 -3
- {node → node v17.0}/assert/strict.d.ts +0 -0
- {node → node v17.0}/assert.d.ts +0 -0
- {node → node v17.0}/async_hooks.d.ts +0 -0
- {node → node v17.0}/buffer.d.ts +0 -0
- {node → node v17.0}/child_process.d.ts +0 -0
- {node → node v17.0}/cluster.d.ts +0 -0
- {node → node v17.0}/console.d.ts +0 -0
- {node → node v17.0}/constants.d.ts +0 -0
- {node → node v17.0}/crypto.d.ts +0 -0
- {node → node v17.0}/dgram.d.ts +0 -0
- {node → node v17.0}/diagnostics_channel.d.ts +0 -0
- {node → node v17.0}/dns/promises.d.ts +0 -0
- {node → node v17.0}/dns.d.ts +0 -0
- node/domain.d.ts → node v17.0/domain.d.ts +1 -2
- {node → node v17.0}/events.d.ts +0 -0
- node/fs/promises.d.ts → node v17.0/fs/promises.d.ts +1 -25
- node/fs.d.ts → node v17.0/fs.d.ts +2 -9
- {node → node v17.0}/globals.d.ts +0 -0
- {node → node v17.0}/globals.global.d.ts +0 -0
- {node → node v17.0}/http.d.ts +0 -0
- {node → node v17.0}/http2.d.ts +0 -0
- {node → node v17.0}/https.d.ts +0 -0
- node/index.d.ts → node v17.0/index.d.ts +0 -1
- {node → node v17.0}/inspector.d.ts +0 -0
- {node → node v17.0}/module.d.ts +0 -0
- node/net.d.ts → node v17.0/net.d.ts +0 -5
- {node → node v17.0}/os.d.ts +0 -0
- node/package.json → node v17.0/package.json +2 -7
- {node → node v17.0}/path.d.ts +0 -0
- {node → node v17.0}/perf_hooks.d.ts +0 -0
- node/process.d.ts → node v17.0/process.d.ts +11 -12
- {node → node v17.0}/punycode.d.ts +0 -0
- {node → node v17.0}/querystring.d.ts +0 -0
- {node → node v17.0}/readline.d.ts +0 -0
- {node → node v17.0}/repl.d.ts +0 -0
- {node → node v17.0}/stream/consumers.d.ts +0 -0
- {node → node v17.0}/stream/promises.d.ts +0 -0
- {node → node v17.0}/stream/web.d.ts +0 -0
- node/stream.d.ts → node v17.0/stream.d.ts +0 -26
- {node → node v17.0}/string_decoder.d.ts +0 -0
- {node → node v17.0}/timers/promises.d.ts +0 -0
- node/timers.d.ts → node v17.0/timers.d.ts +2 -2
- node/tls.d.ts → node v17.0/tls.d.ts +1 -1
- {node → node v17.0}/trace_events.d.ts +0 -0
- {node → node v17.0}/tty.d.ts +0 -0
- node/url.d.ts → node v17.0/url.d.ts +1 -5
- {node → node v17.0}/util.d.ts +0 -0
- {node → node v17.0}/v8.d.ts +0 -0
- {node → node v17.0}/vm.d.ts +0 -0
- {node → node v17.0}/wasi.d.ts +0 -0
- {node → node v17.0}/worker_threads.d.ts +0 -0
- {node → node v17.0}/zlib.d.ts +0 -0
{node → node v17.0}/LICENSE
RENAMED
|
File without changes
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
This package contains type definitions for Node.js (https://nodejs.org/).
|
|
6
6
|
|
|
7
7
|
# Details
|
|
8
|
-
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
8
|
+
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v17.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated: Wed, 15 Jun 2022
|
|
11
|
+
* Last updated: Wed, 15 Jun 2022 23:01:35 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
|
|
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), [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), [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), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), [wafuwafu13](https://github.com/wafuwafu13)
|
|
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), [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), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), and [wafuwafu13](https://github.com/wafuwafu13).
|
|
File without changes
|
{node → node v17.0}/assert.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
{node → node v17.0}/buffer.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
{node → node v17.0}/cluster.d.ts
RENAMED
|
File without changes
|
{node → node v17.0}/console.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
{node → node v17.0}/crypto.d.ts
RENAMED
|
File without changes
|
{node → node v17.0}/dgram.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{node → node v17.0}/dns.d.ts
RENAMED
|
File without changes
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* **This module is pending deprecation.** Once a replacement API has been
|
|
3
|
-
* finalized, this module will be fully deprecated. Most developers should
|
|
4
|
-
* **not** have cause to use this module. Users who absolutely must have
|
|
3
|
+
* finalized, this module will be fully deprecated. Most developers should**not** have cause to use this module. Users who absolutely must have
|
|
5
4
|
* the functionality that domains provide may rely on it for the time being
|
|
6
5
|
* but should expect to have to migrate to a different solution
|
|
7
6
|
* in the future.
|
{node → node v17.0}/events.d.ts
RENAMED
|
File without changes
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
declare module 'fs/promises' {
|
|
12
12
|
import { Abortable } from 'node:events';
|
|
13
13
|
import { Stream } from 'node:stream';
|
|
14
|
-
import { ReadableStream } from 'node:stream/web';
|
|
15
14
|
import {
|
|
16
15
|
Stats,
|
|
17
16
|
BigIntStats,
|
|
@@ -210,29 +209,6 @@ declare module 'fs/promises' {
|
|
|
210
209
|
*/
|
|
211
210
|
read<T extends NodeJS.ArrayBufferView>(buffer: T, offset?: number | null, length?: number | null, position?: number | null): Promise<FileReadResult<T>>;
|
|
212
211
|
read<T extends NodeJS.ArrayBufferView = Buffer>(options?: FileReadOptions<T>): Promise<FileReadResult<T>>;
|
|
213
|
-
/**
|
|
214
|
-
* Returns a `ReadableStream` that may be used to read the files data.
|
|
215
|
-
*
|
|
216
|
-
* An error will be thrown if this method is called more than once or is called after the `FileHandle` is closed
|
|
217
|
-
* or closing.
|
|
218
|
-
*
|
|
219
|
-
* ```js
|
|
220
|
-
* import { open } from 'node:fs/promises';
|
|
221
|
-
*
|
|
222
|
-
* const file = await open('./some/file/to/read');
|
|
223
|
-
*
|
|
224
|
-
* for await (const chunk of file.readableWebStream())
|
|
225
|
-
* console.log(chunk);
|
|
226
|
-
*
|
|
227
|
-
* await file.close();
|
|
228
|
-
* ```
|
|
229
|
-
*
|
|
230
|
-
* While the `ReadableStream` will read the file to completion, it will not close the `FileHandle` automatically. User code must still call the `fileHandle.close()` method.
|
|
231
|
-
*
|
|
232
|
-
* @since v17.0.0
|
|
233
|
-
* @experimental
|
|
234
|
-
*/
|
|
235
|
-
readableWebStream(): ReadableStream;
|
|
236
212
|
/**
|
|
237
213
|
* Asynchronously reads the entire contents of a file.
|
|
238
214
|
*
|
|
@@ -511,7 +487,7 @@ declare module 'fs/promises' {
|
|
|
511
487
|
* @param [mode=0o666] Sets the file mode (permission and sticky bits) if the file is created.
|
|
512
488
|
* @return Fulfills with a {FileHandle} object.
|
|
513
489
|
*/
|
|
514
|
-
function open(path: PathLike, flags
|
|
490
|
+
function open(path: PathLike, flags: string | number, mode?: Mode): Promise<FileHandle>;
|
|
515
491
|
/**
|
|
516
492
|
* Renames `oldPath` to `newPath`.
|
|
517
493
|
* @since v10.0.0
|
|
@@ -1998,19 +1998,12 @@ declare module 'fs' {
|
|
|
1998
1998
|
* @param [flags='r'] See `support of file system `flags``.
|
|
1999
1999
|
* @param [mode=0o666]
|
|
2000
2000
|
*/
|
|
2001
|
-
export function open(path: PathLike, flags: OpenMode
|
|
2002
|
-
/**
|
|
2003
|
-
* Asynchronous open(2) - open and possibly create a file. If the file is created, its mode will be `0o666`.
|
|
2004
|
-
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
2005
|
-
* @param [flags='r'] See `support of file system `flags``.
|
|
2006
|
-
*/
|
|
2007
|
-
export function open(path: PathLike, flags: OpenMode | undefined, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void;
|
|
2001
|
+
export function open(path: PathLike, flags: OpenMode, mode: Mode | undefined | null, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void;
|
|
2008
2002
|
/**
|
|
2009
2003
|
* Asynchronous open(2) - open and possibly create a file. If the file is created, its mode will be `0o666`.
|
|
2010
2004
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
2011
2005
|
*/
|
|
2012
|
-
export function open(path: PathLike, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void;
|
|
2013
|
-
|
|
2006
|
+
export function open(path: PathLike, flags: OpenMode, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void;
|
|
2014
2007
|
export namespace open {
|
|
2015
2008
|
/**
|
|
2016
2009
|
* Asynchronous open(2) - open and possibly create a file.
|
{node → node v17.0}/globals.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
{node → node v17.0}/http.d.ts
RENAMED
|
File without changes
|
{node → node v17.0}/http2.d.ts
RENAMED
|
File without changes
|
{node → node v17.0}/https.d.ts
RENAMED
|
File without changes
|
|
@@ -40,7 +40,6 @@
|
|
|
40
40
|
// NodeJS Contributors <https://github.com/NodeJS>
|
|
41
41
|
// Linus Unnebäck <https://github.com/LinusU>
|
|
42
42
|
// wafuwafu13 <https://github.com/wafuwafu13>
|
|
43
|
-
// Matteo Collina <https://github.com/mcollina>
|
|
44
43
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
45
44
|
|
|
46
45
|
/**
|
|
File without changes
|
{node → node v17.0}/module.d.ts
RENAMED
|
File without changes
|
|
@@ -285,11 +285,6 @@ declare module 'net' {
|
|
|
285
285
|
* @since v0.5.10
|
|
286
286
|
*/
|
|
287
287
|
readonly remotePort?: number | undefined;
|
|
288
|
-
/**
|
|
289
|
-
* The socket timeout in milliseconds as set by socket.setTimeout(). It is undefined if a timeout has not been set.
|
|
290
|
-
* @since v10.7.0
|
|
291
|
-
*/
|
|
292
|
-
readonly timeout?: number | undefined;
|
|
293
288
|
/**
|
|
294
289
|
* Half-closes the socket. i.e., it sends a FIN packet. It is possible the
|
|
295
290
|
* server will still send some data.
|
{node → node v17.0}/os.d.ts
RENAMED
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.45",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -204,11 +204,6 @@
|
|
|
204
204
|
"name": "wafuwafu13",
|
|
205
205
|
"url": "https://github.com/wafuwafu13",
|
|
206
206
|
"githubUsername": "wafuwafu13"
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
"name": "Matteo Collina",
|
|
210
|
-
"url": "https://github.com/mcollina",
|
|
211
|
-
"githubUsername": "mcollina"
|
|
212
207
|
}
|
|
213
208
|
],
|
|
214
209
|
"main": "",
|
|
@@ -220,6 +215,6 @@
|
|
|
220
215
|
},
|
|
221
216
|
"scripts": {},
|
|
222
217
|
"dependencies": {},
|
|
223
|
-
"typesPublisherContentHash": "
|
|
218
|
+
"typesPublisherContentHash": "af50fb21a4ee56ffd08ac1a41afbed06689aa44fec9f855368376b13ef1742b6",
|
|
224
219
|
"typeScriptVersion": "4.0"
|
|
225
220
|
}
|
{node → node v17.0}/path.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
@@ -49,7 +49,6 @@ declare module 'process' {
|
|
|
49
49
|
openssl: string;
|
|
50
50
|
}
|
|
51
51
|
type Platform = 'aix' | 'android' | 'darwin' | 'freebsd' | 'haiku' | 'linux' | 'openbsd' | 'sunos' | 'win32' | 'cygwin' | 'netbsd';
|
|
52
|
-
type Architecture = 'arm' | 'arm64' | 'ia32' | 'mips' | 'mipsel' | 'ppc' | 'ppc64' | 's390' | 's390x' | 'x64';
|
|
53
52
|
type Signals =
|
|
54
53
|
| 'SIGABRT'
|
|
55
54
|
| 'SIGALRM'
|
|
@@ -642,7 +641,7 @@ declare module 'process' {
|
|
|
642
641
|
* Android).
|
|
643
642
|
* @since v0.1.31
|
|
644
643
|
*/
|
|
645
|
-
getgid
|
|
644
|
+
getgid(): number;
|
|
646
645
|
/**
|
|
647
646
|
* The `process.setgid()` method sets the group identity of the process. (See [`setgid(2)`](http://man7.org/linux/man-pages/man2/setgid.2.html).) The `id` can be passed as either a
|
|
648
647
|
* numeric ID or a group name
|
|
@@ -669,7 +668,7 @@ declare module 'process' {
|
|
|
669
668
|
* @since v0.1.31
|
|
670
669
|
* @param id The group name or ID
|
|
671
670
|
*/
|
|
672
|
-
setgid
|
|
671
|
+
setgid(id: number | string): void;
|
|
673
672
|
/**
|
|
674
673
|
* The `process.getuid()` method returns the numeric user identity of the process.
|
|
675
674
|
* (See [`getuid(2)`](http://man7.org/linux/man-pages/man2/getuid.2.html).)
|
|
@@ -686,7 +685,7 @@ declare module 'process' {
|
|
|
686
685
|
* Android).
|
|
687
686
|
* @since v0.1.28
|
|
688
687
|
*/
|
|
689
|
-
getuid
|
|
688
|
+
getuid(): number;
|
|
690
689
|
/**
|
|
691
690
|
* The `process.setuid(id)` method sets the user identity of the process. (See [`setuid(2)`](http://man7.org/linux/man-pages/man2/setuid.2.html).) The `id` can be passed as either a
|
|
692
691
|
* numeric ID or a username string.
|
|
@@ -712,7 +711,7 @@ declare module 'process' {
|
|
|
712
711
|
* This feature is not available in `Worker` threads.
|
|
713
712
|
* @since v0.1.28
|
|
714
713
|
*/
|
|
715
|
-
setuid
|
|
714
|
+
setuid(id: number | string): void;
|
|
716
715
|
/**
|
|
717
716
|
* The `process.geteuid()` method returns the numerical effective user identity of
|
|
718
717
|
* the process. (See [`geteuid(2)`](http://man7.org/linux/man-pages/man2/geteuid.2.html).)
|
|
@@ -729,7 +728,7 @@ declare module 'process' {
|
|
|
729
728
|
* Android).
|
|
730
729
|
* @since v2.0.0
|
|
731
730
|
*/
|
|
732
|
-
geteuid
|
|
731
|
+
geteuid(): number;
|
|
733
732
|
/**
|
|
734
733
|
* The `process.seteuid()` method sets the effective user identity of the process.
|
|
735
734
|
* (See [`seteuid(2)`](http://man7.org/linux/man-pages/man2/seteuid.2.html).) The `id` can be passed as either a numeric ID or a username
|
|
@@ -756,7 +755,7 @@ declare module 'process' {
|
|
|
756
755
|
* @since v2.0.0
|
|
757
756
|
* @param id A user name or ID
|
|
758
757
|
*/
|
|
759
|
-
seteuid
|
|
758
|
+
seteuid(id: number | string): void;
|
|
760
759
|
/**
|
|
761
760
|
* The `process.getegid()` method returns the numerical effective group identity
|
|
762
761
|
* of the Node.js process. (See [`getegid(2)`](http://man7.org/linux/man-pages/man2/getegid.2.html).)
|
|
@@ -773,7 +772,7 @@ declare module 'process' {
|
|
|
773
772
|
* Android).
|
|
774
773
|
* @since v2.0.0
|
|
775
774
|
*/
|
|
776
|
-
getegid
|
|
775
|
+
getegid(): number;
|
|
777
776
|
/**
|
|
778
777
|
* The `process.setegid()` method sets the effective group identity of the process.
|
|
779
778
|
* (See [`setegid(2)`](http://man7.org/linux/man-pages/man2/setegid.2.html).) The `id` can be passed as either a numeric ID or a group
|
|
@@ -800,7 +799,7 @@ declare module 'process' {
|
|
|
800
799
|
* @since v2.0.0
|
|
801
800
|
* @param id A group name or ID
|
|
802
801
|
*/
|
|
803
|
-
setegid
|
|
802
|
+
setegid(id: number | string): void;
|
|
804
803
|
/**
|
|
805
804
|
* The `process.getgroups()` method returns an array with the supplementary group
|
|
806
805
|
* IDs. POSIX leaves it unspecified if the effective group ID is included but
|
|
@@ -818,7 +817,7 @@ declare module 'process' {
|
|
|
818
817
|
* Android).
|
|
819
818
|
* @since v0.9.4
|
|
820
819
|
*/
|
|
821
|
-
getgroups
|
|
820
|
+
getgroups(): number[];
|
|
822
821
|
/**
|
|
823
822
|
* The `process.setgroups()` method sets the supplementary group IDs for the
|
|
824
823
|
* Node.js process. This is a privileged operation that requires the Node.js
|
|
@@ -844,7 +843,7 @@ declare module 'process' {
|
|
|
844
843
|
* This feature is not available in `Worker` threads.
|
|
845
844
|
* @since v0.9.4
|
|
846
845
|
*/
|
|
847
|
-
setgroups
|
|
846
|
+
setgroups(groups: ReadonlyArray<string | number>): void;
|
|
848
847
|
/**
|
|
849
848
|
* The `process.setUncaughtExceptionCaptureCallback()` function sets a function
|
|
850
849
|
* that will be invoked when an uncaught exception occurs, which will receive the
|
|
@@ -1050,7 +1049,7 @@ declare module 'process' {
|
|
|
1050
1049
|
* ```
|
|
1051
1050
|
* @since v0.5.0
|
|
1052
1051
|
*/
|
|
1053
|
-
readonly arch:
|
|
1052
|
+
readonly arch: string;
|
|
1054
1053
|
/**
|
|
1055
1054
|
* The `process.platform` property returns a string identifying the operating
|
|
1056
1055
|
* system platform on which the Node.js process is running.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{node → node v17.0}/repl.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -20,7 +20,6 @@ declare module 'stream' {
|
|
|
20
20
|
import { EventEmitter, Abortable } from 'node:events';
|
|
21
21
|
import * as streamPromises from 'node:stream/promises';
|
|
22
22
|
import * as streamConsumers from 'node:stream/consumers';
|
|
23
|
-
import * as streamWeb from 'node:stream/web';
|
|
24
23
|
class internal extends EventEmitter {
|
|
25
24
|
pipe<T extends NodeJS.WritableStream>(
|
|
26
25
|
destination: T,
|
|
@@ -53,23 +52,11 @@ declare module 'stream' {
|
|
|
53
52
|
* A utility method for creating Readable Streams out of iterators.
|
|
54
53
|
*/
|
|
55
54
|
static from(iterable: Iterable<any> | AsyncIterable<any>, options?: ReadableOptions): Readable;
|
|
56
|
-
/**
|
|
57
|
-
* A utility method for creating a `Readable` from a web `ReadableStream`.
|
|
58
|
-
* @since v17.0.0
|
|
59
|
-
* @experimental
|
|
60
|
-
*/
|
|
61
|
-
static fromWeb(readableStream: streamWeb.ReadableStream, options?: Pick<ReadableOptions, 'encoding' | 'highWaterMark' | 'objectMode' | 'signal'>): Readable;
|
|
62
55
|
/**
|
|
63
56
|
* Returns whether the stream has been read from or cancelled.
|
|
64
57
|
* @since v16.8.0
|
|
65
58
|
*/
|
|
66
59
|
static isDisturbed(stream: Readable | NodeJS.ReadableStream): boolean;
|
|
67
|
-
/**
|
|
68
|
-
* A utility method for creating a web `ReadableStream` from a `Readable`.
|
|
69
|
-
* @since v17.0.0
|
|
70
|
-
* @experimental
|
|
71
|
-
*/
|
|
72
|
-
static toWeb(streamReadable: Readable): streamWeb.ReadableStream;
|
|
73
60
|
/**
|
|
74
61
|
* Returns whether the stream was destroyed or errored before emitting `'end'`.
|
|
75
62
|
* @since v16.8.0
|
|
@@ -1251,19 +1238,6 @@ declare module 'stream' {
|
|
|
1251
1238
|
ref(): void;
|
|
1252
1239
|
unref(): void;
|
|
1253
1240
|
}
|
|
1254
|
-
|
|
1255
|
-
/**
|
|
1256
|
-
* Returns whether the stream has encountered an error.
|
|
1257
|
-
* @since v17.3.0
|
|
1258
|
-
*/
|
|
1259
|
-
function isErrored(stream: Readable | Writable | NodeJS.ReadableStream | NodeJS.WritableStream): boolean;
|
|
1260
|
-
|
|
1261
|
-
/**
|
|
1262
|
-
* Returns whether the stream is readable.
|
|
1263
|
-
* @since v17.4.0
|
|
1264
|
-
*/
|
|
1265
|
-
function isReadable(stream: Readable | NodeJS.ReadableStream): boolean;
|
|
1266
|
-
|
|
1267
1241
|
const promises: typeof streamPromises;
|
|
1268
1242
|
const consumers: typeof streamConsumers;
|
|
1269
1243
|
}
|
|
File without changes
|
|
File without changes
|
|
@@ -69,7 +69,7 @@ declare module 'timers' {
|
|
|
69
69
|
namespace setTimeout {
|
|
70
70
|
const __promisify__: typeof setTimeoutPromise;
|
|
71
71
|
}
|
|
72
|
-
function clearTimeout(timeoutId: NodeJS.Timeout |
|
|
72
|
+
function clearTimeout(timeoutId: NodeJS.Timeout | undefined): void;
|
|
73
73
|
function setInterval<TArgs extends any[]>(callback: (...args: TArgs) => void, ms?: number, ...args: TArgs): NodeJS.Timer;
|
|
74
74
|
// util.promisify no rest args compability
|
|
75
75
|
// tslint:disable-next-line void-return
|
|
@@ -77,7 +77,7 @@ declare module 'timers' {
|
|
|
77
77
|
namespace setInterval {
|
|
78
78
|
const __promisify__: typeof setIntervalPromise;
|
|
79
79
|
}
|
|
80
|
-
function clearInterval(intervalId: NodeJS.Timeout |
|
|
80
|
+
function clearInterval(intervalId: NodeJS.Timeout | undefined): void;
|
|
81
81
|
function setImmediate<TArgs extends any[]>(callback: (...args: TArgs) => void, ...args: TArgs): NodeJS.Immediate;
|
|
82
82
|
// util.promisify no rest args compability
|
|
83
83
|
// tslint:disable-next-line void-return
|
|
@@ -158,7 +158,7 @@ declare module 'tls' {
|
|
|
158
158
|
* Always returns `true`. This may be used to distinguish TLS sockets from regular`net.Socket` instances.
|
|
159
159
|
* @since v0.11.4
|
|
160
160
|
*/
|
|
161
|
-
encrypted:
|
|
161
|
+
encrypted: boolean;
|
|
162
162
|
/**
|
|
163
163
|
* String containing the selected ALPN protocol.
|
|
164
164
|
* Before a handshake has completed, this value is always null.
|
|
File without changes
|
{node → node v17.0}/tty.d.ts
RENAMED
|
File without changes
|
|
@@ -59,12 +59,8 @@ declare module 'url' {
|
|
|
59
59
|
* lenient, non-standard algorithm for parsing URL strings, security
|
|
60
60
|
* issues can be introduced. Specifically, issues with [host name spoofing](https://hackerone.com/reports/678487) and
|
|
61
61
|
* incorrect handling of usernames and passwords have been identified.
|
|
62
|
-
*
|
|
63
|
-
* Deprecation of this API has been shelved for now primarily due to the the
|
|
64
|
-
* inability of the [WHATWG API to parse relative URLs](https://github.com/nodejs/node/issues/12682#issuecomment-1154492373).
|
|
65
|
-
* [Discussions are ongoing](https://github.com/whatwg/url/issues/531) for the best way to resolve this.
|
|
66
|
-
*
|
|
67
62
|
* @since v0.1.25
|
|
63
|
+
* @deprecated Legacy: Use the WHATWG URL API instead.
|
|
68
64
|
* @param urlString The URL string to parse.
|
|
69
65
|
* @param [parseQueryString=false] If `true`, the `query` property will always be set to an object returned by the {@link querystring} module's `parse()` method. If `false`, the `query` property
|
|
70
66
|
* on the returned URL object will be an unparsed, undecoded string.
|
{node → node v17.0}/util.d.ts
RENAMED
|
File without changes
|
{node → node v17.0}/v8.d.ts
RENAMED
|
File without changes
|
{node → node v17.0}/vm.d.ts
RENAMED
|
File without changes
|
{node → node v17.0}/wasi.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
{node → node v17.0}/zlib.d.ts
RENAMED
|
File without changes
|