@types/node 20.2.1 → 20.2.3
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 +1 -1
- node/assert.d.ts +1 -1
- node/async_hooks.d.ts +1 -1
- node/buffer.d.ts +4 -1
- node/child_process.d.ts +1 -1
- node/cluster.d.ts +1 -1
- node/console.d.ts +1 -1
- node/crypto.d.ts +1 -1
- node/dgram.d.ts +1 -1
- node/diagnostics_channel.d.ts +1 -1
- node/dns.d.ts +1 -1
- node/domain.d.ts +1 -1
- node/events.d.ts +1 -1
- node/fs/promises.d.ts +2 -1
- node/fs.d.ts +3 -2
- node/http.d.ts +1 -1
- node/http2.d.ts +1 -1
- node/https.d.ts +1 -1
- node/inspector.d.ts +1 -1
- node/net.d.ts +1 -1
- node/os.d.ts +1 -1
- node/package.json +2 -2
- node/path.d.ts +1 -1
- node/perf_hooks.d.ts +1 -1
- node/punycode.d.ts +1 -1
- node/querystring.d.ts +1 -1
- node/readline.d.ts +1 -1
- node/repl.d.ts +1 -1
- node/stream.d.ts +758 -729
- node/string_decoder.d.ts +1 -1
- node/test.d.ts +7 -3
- node/timers.d.ts +1 -1
- node/tls.d.ts +1 -1
- node/trace_events.d.ts +1 -1
- node/ts4.8/assert.d.ts +1 -1
- node/ts4.8/async_hooks.d.ts +1 -1
- node/ts4.8/buffer.d.ts +4 -1
- node/ts4.8/child_process.d.ts +2 -2
- node/ts4.8/cluster.d.ts +1 -1
- node/ts4.8/console.d.ts +1 -1
- node/ts4.8/crypto.d.ts +1 -1
- node/ts4.8/dgram.d.ts +1 -1
- node/ts4.8/diagnostics_channel.d.ts +1 -1
- node/ts4.8/dns.d.ts +1 -1
- node/ts4.8/domain.d.ts +1 -1
- node/ts4.8/events.d.ts +1 -1
- node/ts4.8/fs.d.ts +3 -2
- node/ts4.8/http.d.ts +5 -4
- node/ts4.8/http2.d.ts +1 -1
- node/ts4.8/https.d.ts +1 -1
- node/ts4.8/inspector.d.ts +1 -1
- node/ts4.8/net.d.ts +1 -1
- node/ts4.8/os.d.ts +1 -1
- node/ts4.8/path.d.ts +1 -1
- node/ts4.8/perf_hooks.d.ts +1 -1
- node/ts4.8/punycode.d.ts +1 -1
- node/ts4.8/querystring.d.ts +1 -1
- node/ts4.8/readline.d.ts +1 -1
- node/ts4.8/repl.d.ts +1 -1
- node/ts4.8/stream.d.ts +1 -1
- node/ts4.8/string_decoder.d.ts +1 -1
- node/ts4.8/test.d.ts +7 -4
- node/ts4.8/timers.d.ts +1 -1
- node/ts4.8/tls.d.ts +1 -1
- node/ts4.8/trace_events.d.ts +1 -1
- node/ts4.8/tty.d.ts +1 -1
- node/ts4.8/url.d.ts +14 -5
- node/ts4.8/util.d.ts +11 -3
- node/ts4.8/v8.d.ts +1 -1
- node/ts4.8/vm.d.ts +1 -1
- node/ts4.8/wasi.d.ts +1 -1
- node/ts4.8/worker_threads.d.ts +1 -1
- node/ts4.8/zlib.d.ts +1 -1
- node/tty.d.ts +1 -1
- node/url.d.ts +14 -5
- node/util.d.ts +1 -1
- node/v8.d.ts +1 -1
- node/vm.d.ts +1 -1
- node/wasi.d.ts +1 -1
- node/worker_threads.d.ts +1 -1
- node/zlib.d.ts +1 -1
node/tty.d.ts
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
*
|
|
22
22
|
* In most cases, there should be little to no reason for an application to
|
|
23
23
|
* manually create instances of the `tty.ReadStream` and `tty.WriteStream`classes.
|
|
24
|
-
* @see [source](https://github.com/nodejs/node/blob/v20.
|
|
24
|
+
* @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/tty.js)
|
|
25
25
|
*/
|
|
26
26
|
declare module 'tty' {
|
|
27
27
|
import * as net from 'node:net';
|
node/url.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* ```js
|
|
6
6
|
* import url from 'node:url';
|
|
7
7
|
* ```
|
|
8
|
-
* @see [source](https://github.com/nodejs/node/blob/v20.
|
|
8
|
+
* @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/url.js)
|
|
9
9
|
*/
|
|
10
10
|
declare module 'url' {
|
|
11
11
|
import { Blob as NodeBlob } from 'node:buffer';
|
|
@@ -748,9 +748,12 @@ declare module 'url' {
|
|
|
748
748
|
*/
|
|
749
749
|
append(name: string, value: string): void;
|
|
750
750
|
/**
|
|
751
|
-
*
|
|
751
|
+
* If `value` is provided, removes all name-value pairs
|
|
752
|
+
* where name is `name` and value is `value`..
|
|
753
|
+
*
|
|
754
|
+
* If `value` is not provided, removes all name-value pairs whose name is `name`.
|
|
752
755
|
*/
|
|
753
|
-
delete(name: string): void;
|
|
756
|
+
delete(name: string, value?: string): void;
|
|
754
757
|
/**
|
|
755
758
|
* Returns an ES6 `Iterator` over each of the name-value pairs in the query.
|
|
756
759
|
* Each item of the iterator is a JavaScript `Array`. The first item of the `Array`is the `name`, the second item of the `Array` is the `value`.
|
|
@@ -786,9 +789,15 @@ declare module 'url' {
|
|
|
786
789
|
*/
|
|
787
790
|
getAll(name: string): string[];
|
|
788
791
|
/**
|
|
789
|
-
*
|
|
792
|
+
* Checks if the `URLSearchParams` object contains key-value pair(s) based on`name` and an optional `value` argument.
|
|
793
|
+
*
|
|
794
|
+
* If `value` is provided, returns `true` when name-value pair with
|
|
795
|
+
* same `name` and `value` exists.
|
|
796
|
+
*
|
|
797
|
+
* If `value` is not provided, returns `true` if there is at least one name-value
|
|
798
|
+
* pair whose name is `name`.
|
|
790
799
|
*/
|
|
791
|
-
has(name: string): boolean;
|
|
800
|
+
has(name: string, value?: string): boolean;
|
|
792
801
|
/**
|
|
793
802
|
* Returns an ES6 `Iterator` over the names of each name-value pair.
|
|
794
803
|
*
|
node/util.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* ```js
|
|
7
7
|
* const util = require('node:util');
|
|
8
8
|
* ```
|
|
9
|
-
* @see [source](https://github.com/nodejs/node/blob/v20.
|
|
9
|
+
* @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/util.js)
|
|
10
10
|
*/
|
|
11
11
|
declare module 'util' {
|
|
12
12
|
import * as types from 'node:util/types';
|
node/v8.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* ```js
|
|
5
5
|
* const v8 = require('node:v8');
|
|
6
6
|
* ```
|
|
7
|
-
* @see [source](https://github.com/nodejs/node/blob/v20.
|
|
7
|
+
* @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/v8.js)
|
|
8
8
|
*/
|
|
9
9
|
declare module 'v8' {
|
|
10
10
|
import { Readable } from 'node:stream';
|
node/vm.d.ts
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
*
|
|
35
35
|
* console.log(x); // 1; y is not defined.
|
|
36
36
|
* ```
|
|
37
|
-
* @see [source](https://github.com/nodejs/node/blob/v20.
|
|
37
|
+
* @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/vm.js)
|
|
38
38
|
*/
|
|
39
39
|
declare module 'vm' {
|
|
40
40
|
interface Context extends NodeJS.Dict<any> {}
|
node/wasi.d.ts
CHANGED
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
* $ wat2wasm demo.wat
|
|
63
63
|
* ```
|
|
64
64
|
* @experimental
|
|
65
|
-
* @see [source](https://github.com/nodejs/node/blob/v20.
|
|
65
|
+
* @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/wasi.js)
|
|
66
66
|
*/
|
|
67
67
|
declare module 'wasi' {
|
|
68
68
|
interface WASIOptions {
|
node/worker_threads.d.ts
CHANGED
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
*
|
|
50
50
|
* Worker threads inherit non-process-specific options by default. Refer to `Worker constructor options` to know how to customize worker thread options,
|
|
51
51
|
* specifically `argv` and `execArgv` options.
|
|
52
|
-
* @see [source](https://github.com/nodejs/node/blob/v20.
|
|
52
|
+
* @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/worker_threads.js)
|
|
53
53
|
*/
|
|
54
54
|
declare module 'worker_threads' {
|
|
55
55
|
import { Blob } from 'node:buffer';
|
node/zlib.d.ts
CHANGED
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
* });
|
|
89
89
|
* ```
|
|
90
90
|
* @since v0.5.8
|
|
91
|
-
* @see [source](https://github.com/nodejs/node/blob/v20.
|
|
91
|
+
* @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/zlib.js)
|
|
92
92
|
*/
|
|
93
93
|
declare module 'zlib' {
|
|
94
94
|
import * as stream from 'node:stream';
|