@types/node 20.15.0 → 20.16.0
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 v20.15 → node v20.16}/README.md +1 -1
- {node v20.15 → node v20.16}/buffer.d.ts +12 -0
- {node v20.15 → node v20.16}/package.json +3 -3
- {node v20.15 → node v20.16}/process.d.ts +123 -2
- {node v20.15 → node v20.16}/test.d.ts +5 -0
- {node v20.15 → node v20.16}/util.d.ts +6 -0
- {node v20.15 → node v20.16}/LICENSE +0 -0
- {node v20.15 → node v20.16}/assert/strict.d.ts +0 -0
- {node v20.15 → node v20.16}/assert.d.ts +0 -0
- {node v20.15 → node v20.16}/async_hooks.d.ts +0 -0
- {node v20.15 → node v20.16}/child_process.d.ts +0 -0
- {node v20.15 → node v20.16}/cluster.d.ts +0 -0
- {node v20.15 → node v20.16}/console.d.ts +0 -0
- {node v20.15 → node v20.16}/constants.d.ts +0 -0
- {node v20.15 → node v20.16}/crypto.d.ts +0 -0
- {node v20.15 → node v20.16}/dgram.d.ts +0 -0
- {node v20.15 → node v20.16}/diagnostics_channel.d.ts +0 -0
- {node v20.15 → node v20.16}/dns/promises.d.ts +0 -0
- {node v20.15 → node v20.16}/dns.d.ts +0 -0
- {node v20.15 → node v20.16}/dom-events.d.ts +0 -0
- {node v20.15 → node v20.16}/domain.d.ts +0 -0
- {node v20.15 → node v20.16}/events.d.ts +0 -0
- {node v20.15 → node v20.16}/fs/promises.d.ts +0 -0
- {node v20.15 → node v20.16}/fs.d.ts +0 -0
- {node v20.15 → node v20.16}/globals.d.ts +0 -0
- {node v20.15 → node v20.16}/globals.global.d.ts +0 -0
- {node v20.15 → node v20.16}/http.d.ts +0 -0
- {node v20.15 → node v20.16}/http2.d.ts +0 -0
- {node v20.15 → node v20.16}/https.d.ts +0 -0
- {node v20.15 → node v20.16}/index.d.ts +0 -0
- {node v20.15 → node v20.16}/inspector.d.ts +0 -0
- {node v20.15 → node v20.16}/module.d.ts +0 -0
- {node v20.15 → node v20.16}/net.d.ts +0 -0
- {node v20.15 → node v20.16}/os.d.ts +0 -0
- {node v20.15 → node v20.16}/path.d.ts +0 -0
- {node v20.15 → node v20.16}/perf_hooks.d.ts +0 -0
- {node v20.15 → node v20.16}/punycode.d.ts +0 -0
- {node v20.15 → node v20.16}/querystring.d.ts +0 -0
- {node v20.15 → node v20.16}/readline/promises.d.ts +0 -0
- {node v20.15 → node v20.16}/readline.d.ts +0 -0
- {node v20.15 → node v20.16}/repl.d.ts +0 -0
- {node v20.15 → node v20.16}/sea.d.ts +0 -0
- {node v20.15 → node v20.16}/stream/consumers.d.ts +0 -0
- {node v20.15 → node v20.16}/stream/promises.d.ts +0 -0
- {node v20.15 → node v20.16}/stream/web.d.ts +0 -0
- {node v20.15 → node v20.16}/stream.d.ts +0 -0
- {node v20.15 → node v20.16}/string_decoder.d.ts +0 -0
- {node v20.15 → node v20.16}/timers/promises.d.ts +0 -0
- {node v20.15 → node v20.16}/timers.d.ts +0 -0
- {node v20.15 → node v20.16}/tls.d.ts +0 -0
- {node v20.15 → node v20.16}/trace_events.d.ts +0 -0
- {node v20.15 → node v20.16}/tty.d.ts +0 -0
- {node v20.15 → node v20.16}/url.d.ts +0 -0
- {node v20.15 → node v20.16}/v8.d.ts +0 -0
- {node v20.15 → node v20.16}/vm.d.ts +0 -0
- {node v20.15 → node v20.16}/wasi.d.ts +0 -0
- {node v20.15 → node v20.16}/worker_threads.d.ts +0 -0
- {node v20.15 → node v20.16}/zlib.d.ts +0 -0
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v20.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated:
|
11
|
+
* Last updated: Sun, 18 Aug 2024 09:07:58 GMT
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
13
13
|
|
14
14
|
# Credits
|
@@ -170,6 +170,18 @@ declare module "buffer" {
|
|
170
170
|
* @since v15.7.0, v14.18.0
|
171
171
|
*/
|
172
172
|
arrayBuffer(): Promise<ArrayBuffer>;
|
173
|
+
/**
|
174
|
+
* The `blob.bytes()` method returns the byte of the `Blob` object as a `Promise<Uint8Array>`.
|
175
|
+
*
|
176
|
+
* ```js
|
177
|
+
* const blob = new Blob(['hello']);
|
178
|
+
* blob.bytes().then((bytes) => {
|
179
|
+
* console.log(bytes); // Outputs: Uint8Array(5) [ 104, 101, 108, 108, 111 ]
|
180
|
+
* });
|
181
|
+
* ```
|
182
|
+
* @since v20.16.0
|
183
|
+
*/
|
184
|
+
bytes(): Promise<Uint8Array>;
|
173
185
|
/**
|
174
186
|
* Creates and returns a new `Blob` containing a subset of this `Blob` objects
|
175
187
|
* data. The original `Blob` is not altered.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/node",
|
3
|
-
"version": "20.
|
3
|
+
"version": "20.16.0",
|
4
4
|
"description": "TypeScript definitions for node",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
6
6
|
"license": "MIT",
|
@@ -210,8 +210,8 @@
|
|
210
210
|
},
|
211
211
|
"scripts": {},
|
212
212
|
"dependencies": {
|
213
|
-
"undici-types": "~6.
|
213
|
+
"undici-types": "~6.19.2"
|
214
214
|
},
|
215
|
-
"typesPublisherContentHash": "
|
215
|
+
"typesPublisherContentHash": "ec5293eb52c87d6b8fbd3eaa5df2b64ce6e26111fc4e85e9eea24132add60f9e",
|
216
216
|
"typeScriptVersion": "4.8"
|
217
217
|
}
|
@@ -1,8 +1,122 @@
|
|
1
1
|
declare module "process" {
|
2
|
-
import * as net from "node:net";
|
3
|
-
import * as os from "node:os";
|
4
2
|
import * as tty from "node:tty";
|
5
3
|
import { Worker } from "node:worker_threads";
|
4
|
+
|
5
|
+
interface BuiltInModule {
|
6
|
+
"assert": typeof import("assert");
|
7
|
+
"node:assert": typeof import("node:assert");
|
8
|
+
"assert/strict": typeof import("assert/strict");
|
9
|
+
"node:assert/strict": typeof import("node:assert/strict");
|
10
|
+
"async_hooks": typeof import("async_hooks");
|
11
|
+
"node:async_hooks": typeof import("node:async_hooks");
|
12
|
+
"buffer": typeof import("buffer");
|
13
|
+
"node:buffer": typeof import("node:buffer");
|
14
|
+
"child_process": typeof import("child_process");
|
15
|
+
"node:child_process": typeof import("node:child_process");
|
16
|
+
"cluster": typeof import("cluster");
|
17
|
+
"node:cluster": typeof import("node:cluster");
|
18
|
+
"console": typeof import("console");
|
19
|
+
"node:console": typeof import("node:console");
|
20
|
+
"constants": typeof import("constants");
|
21
|
+
"node:constants": typeof import("node:constants");
|
22
|
+
"crypto": typeof import("crypto");
|
23
|
+
"node:crypto": typeof import("node:crypto");
|
24
|
+
"dgram": typeof import("dgram");
|
25
|
+
"node:dgram": typeof import("node:dgram");
|
26
|
+
"diagnostics_channel": typeof import("diagnostics_channel");
|
27
|
+
"node:diagnostics_channel": typeof import("node:diagnostics_channel");
|
28
|
+
"dns": typeof import("dns");
|
29
|
+
"node:dns": typeof import("node:dns");
|
30
|
+
"dns/promises": typeof import("dns/promises");
|
31
|
+
"node:dns/promises": typeof import("node:dns/promises");
|
32
|
+
"domain": typeof import("domain");
|
33
|
+
"node:domain": typeof import("node:domain");
|
34
|
+
"events": typeof import("events");
|
35
|
+
"node:events": typeof import("node:events");
|
36
|
+
"fs": typeof import("fs");
|
37
|
+
"node:fs": typeof import("node:fs");
|
38
|
+
"fs/promises": typeof import("fs/promises");
|
39
|
+
"node:fs/promises": typeof import("node:fs/promises");
|
40
|
+
"http": typeof import("http");
|
41
|
+
"node:http": typeof import("node:http");
|
42
|
+
"http2": typeof import("http2");
|
43
|
+
"node:http2": typeof import("node:http2");
|
44
|
+
"https": typeof import("https");
|
45
|
+
"node:https": typeof import("node:https");
|
46
|
+
"inspector": typeof import("inspector");
|
47
|
+
"node:inspector": typeof import("node:inspector");
|
48
|
+
// FIXME: module is missed
|
49
|
+
// "inspector/promises": typeof import("inspector/promises");
|
50
|
+
// "node:inspector/promises": typeof import("node:inspector/promises");
|
51
|
+
"module": typeof import("module");
|
52
|
+
"node:module": typeof import("node:module");
|
53
|
+
"net": typeof import("net");
|
54
|
+
"node:net": typeof import("node:net");
|
55
|
+
"os": typeof import("os");
|
56
|
+
"node:os": typeof import("node:os");
|
57
|
+
"path": typeof import("path");
|
58
|
+
"node:path": typeof import("node:path");
|
59
|
+
"path/posix": typeof import("path/posix");
|
60
|
+
"node:path/posix": typeof import("node:path/posix");
|
61
|
+
"path/win32": typeof import("path/win32");
|
62
|
+
"node:path/win32": typeof import("node:path/win32");
|
63
|
+
"perf_hooks": typeof import("perf_hooks");
|
64
|
+
"node:perf_hooks": typeof import("node:perf_hooks");
|
65
|
+
"process": typeof import("process");
|
66
|
+
"node:process": typeof import("node:process");
|
67
|
+
"punycode": typeof import("punycode");
|
68
|
+
"node:punycode": typeof import("node:punycode");
|
69
|
+
"querystring": typeof import("querystring");
|
70
|
+
"node:querystring": typeof import("node:querystring");
|
71
|
+
"readline": typeof import("readline");
|
72
|
+
"node:readline": typeof import("node:readline");
|
73
|
+
"readline/promises": typeof import("readline/promises");
|
74
|
+
"node:readline/promises": typeof import("node:readline/promises");
|
75
|
+
"repl": typeof import("repl");
|
76
|
+
"node:repl": typeof import("node:repl");
|
77
|
+
"node:sea": typeof import("node:sea");
|
78
|
+
"stream": typeof import("stream");
|
79
|
+
"node:stream": typeof import("node:stream");
|
80
|
+
"stream/consumers": typeof import("stream/consumers");
|
81
|
+
"node:stream/consumers": typeof import("node:stream/consumers");
|
82
|
+
"stream/promises": typeof import("stream/promises");
|
83
|
+
"node:stream/promises": typeof import("node:stream/promises");
|
84
|
+
"stream/web": typeof import("stream/web");
|
85
|
+
"node:stream/web": typeof import("node:stream/web");
|
86
|
+
"string_decoder": typeof import("string_decoder");
|
87
|
+
"node:string_decoder": typeof import("node:string_decoder");
|
88
|
+
"node:test": typeof import("node:test");
|
89
|
+
"node:test/reporters": typeof import("node:test/reporters");
|
90
|
+
"timers": typeof import("timers");
|
91
|
+
"node:timers": typeof import("node:timers");
|
92
|
+
"timers/promises": typeof import("timers/promises");
|
93
|
+
"node:timers/promises": typeof import("node:timers/promises");
|
94
|
+
"tls": typeof import("tls");
|
95
|
+
"node:tls": typeof import("node:tls");
|
96
|
+
"trace_events": typeof import("trace_events");
|
97
|
+
"node:trace_events": typeof import("node:trace_events");
|
98
|
+
"tty": typeof import("tty");
|
99
|
+
"node:tty": typeof import("node:tty");
|
100
|
+
"url": typeof import("url");
|
101
|
+
"node:url": typeof import("node:url");
|
102
|
+
"util": typeof import("util");
|
103
|
+
"node:util": typeof import("node:util");
|
104
|
+
"sys": typeof import("util");
|
105
|
+
"node:sys": typeof import("node:util");
|
106
|
+
"util/types": typeof import("util/types");
|
107
|
+
"node:util/types": typeof import("node:util/types");
|
108
|
+
"v8": typeof import("v8");
|
109
|
+
"node:v8": typeof import("node:v8");
|
110
|
+
"vm": typeof import("vm");
|
111
|
+
"node:vm": typeof import("node:vm");
|
112
|
+
"wasi": typeof import("wasi");
|
113
|
+
"node:wasi": typeof import("node:wasi");
|
114
|
+
"worker_threads": typeof import("worker_threads");
|
115
|
+
"node:worker_threads": typeof import("node:worker_threads");
|
116
|
+
"zlib": typeof import("zlib");
|
117
|
+
"node:zlib": typeof import("node:zlib");
|
118
|
+
}
|
119
|
+
|
6
120
|
global {
|
7
121
|
var process: NodeJS.Process;
|
8
122
|
namespace NodeJS {
|
@@ -793,6 +907,13 @@ declare module "process" {
|
|
793
907
|
* @since v17.3.0, v16.14.0
|
794
908
|
*/
|
795
909
|
getActiveResourcesInfo(): string[];
|
910
|
+
/**
|
911
|
+
* Provides a way to load built-in modules in a globally available function.
|
912
|
+
* @param id ID of the built-in module being requested.
|
913
|
+
* @since v20.16.0
|
914
|
+
*/
|
915
|
+
getBuiltinModule<ID extends keyof BuiltInModule>(id: ID): BuiltInModule[ID];
|
916
|
+
getBuiltinModule(id: string): object | undefined;
|
796
917
|
/**
|
797
918
|
* The `process.getgid()` method returns the numerical group identity of the
|
798
919
|
* process. (See [`getgid(2)`](http://man7.org/linux/man-pages/man2/getgid.2.html).)
|
@@ -500,6 +500,11 @@ declare module "node:test" {
|
|
500
500
|
* @param message Message to be reported.
|
501
501
|
*/
|
502
502
|
diagnostic(message: string): void;
|
503
|
+
/**
|
504
|
+
* The name of the test and each of its ancestors, separated by `>`.
|
505
|
+
* @since v20.16.0
|
506
|
+
*/
|
507
|
+
readonly fullName: string;
|
503
508
|
/**
|
504
509
|
* The name of the test.
|
505
510
|
* @since v18.8.0, v16.18.0
|
@@ -1480,6 +1480,12 @@ declare module "util" {
|
|
1480
1480
|
* Whether this command accepts positional arguments.
|
1481
1481
|
*/
|
1482
1482
|
allowPositionals?: boolean | undefined;
|
1483
|
+
/**
|
1484
|
+
* If `true`, allows explicitly setting boolean options to `false` by prefixing the option name with `--no-`.
|
1485
|
+
* @default false
|
1486
|
+
* @since v20.16.0
|
1487
|
+
*/
|
1488
|
+
allowNegative?: boolean | undefined;
|
1483
1489
|
/**
|
1484
1490
|
* Return the parsed tokens. This is useful for extending the built-in behavior,
|
1485
1491
|
* from adding additional checks through to reprocessing the tokens in different ways.
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|