@types/node 22.15.33 → 24.10.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 v24.10/README.md +15 -0
- node v24.10/assert/strict.d.ts +111 -0
- {node v22.15 → node v24.10}/assert.d.ts +162 -101
- {node v22.15 → node v24.10}/async_hooks.d.ts +26 -6
- {node v22.15 → node v24.10}/buffer.buffer.d.ts +9 -0
- {node v22.15 → node v24.10}/buffer.d.ts +15 -7
- {node v22.15 → node v24.10}/child_process.d.ts +91 -164
- {node v22.15 → node v24.10}/cluster.d.ts +19 -20
- {node v22.15 → node v24.10}/compatibility/iterators.d.ts +1 -0
- {node v22.15 → node v24.10}/console.d.ts +19 -18
- {node v22.15 → node v24.10}/crypto.d.ts +1264 -356
- {node v22.15 → node v24.10}/dgram.d.ts +10 -9
- {node v22.15 → node v24.10}/diagnostics_channel.d.ts +1 -3
- {node v22.15 → node v24.10}/dns/promises.d.ts +12 -11
- {node v22.15 → node v24.10}/dns.d.ts +41 -37
- {node v22.15 → node v24.10}/domain.d.ts +1 -1
- {node v22.15 → node v24.10}/events.d.ts +81 -36
- {node v22.15 → node v24.10}/fs/promises.d.ts +101 -57
- {node v22.15 → node v24.10}/fs.d.ts +413 -136
- node v24.10/globals.d.ts +170 -0
- node v24.10/globals.typedarray.d.ts +41 -0
- {node v22.15 → node v24.10}/http.d.ts +187 -37
- {node v22.15 → node v24.10}/http2.d.ts +197 -66
- {node v22.15 → node v24.10}/https.d.ts +97 -63
- {node v22.15 → node v24.10}/index.d.ts +16 -7
- node v24.10/inspector.d.ts +277 -0
- node v22.15/inspector.d.ts → node v24.10/inspector.generated.d.ts +1059 -828
- {node v22.15 → node v24.10}/module.d.ts +90 -30
- {node v22.15 → node v24.10}/net.d.ts +35 -16
- {node v22.15 → node v24.10}/os.d.ts +22 -10
- {node v22.15 → node v24.10}/package.json +14 -84
- {node v22.15 → node v24.10}/path.d.ts +2 -2
- {node v22.15 → node v24.10}/perf_hooks.d.ts +28 -16
- {node v22.15 → node v24.10}/process.d.ts +40 -34
- {node v22.15 → node v24.10}/punycode.d.ts +1 -1
- {node v22.15 → node v24.10}/querystring.d.ts +1 -1
- {node v22.15 → node v24.10}/readline/promises.d.ts +1 -2
- {node v22.15 → node v24.10}/readline.d.ts +13 -13
- {node v22.15 → node v24.10}/repl.d.ts +25 -17
- {node v22.15 → node v24.10}/sea.d.ts +10 -1
- {node v22.15 → node v24.10}/sqlite.d.ts +438 -9
- {node v22.15 → node v24.10}/stream/consumers.d.ts +2 -2
- {node v22.15 → node v24.10}/stream/web.d.ts +13 -54
- {node v22.15 → node v24.10}/stream.d.ts +63 -48
- {node v22.15 → node v24.10}/string_decoder.d.ts +3 -3
- node v24.10/test.d.ts +2339 -0
- {node v22.15 → node v24.10}/timers/promises.d.ts +1 -1
- {node v22.15 → node v24.10}/timers.d.ts +1 -3
- {node v22.15 → node v24.10}/tls.d.ts +124 -114
- {node v22.15 → node v24.10}/trace_events.d.ts +6 -6
- {node v22.15 → node v24.10}/ts5.6/buffer.buffer.d.ts +10 -2
- node v24.10/ts5.6/compatibility/float16array.d.ts +71 -0
- node v24.10/ts5.6/globals.typedarray.d.ts +36 -0
- {node v22.15 → node v24.10}/ts5.6/index.d.ts +18 -7
- node v24.10/ts5.7/compatibility/float16array.d.ts +72 -0
- node v24.10/ts5.7/index.d.ts +103 -0
- {node v22.15 → node v24.10}/tty.d.ts +1 -1
- {node v22.15 → node v24.10}/url.d.ts +119 -34
- {node v22.15 → node v24.10}/util.d.ts +45 -304
- {node v22.15 → node v24.10}/v8.d.ts +68 -38
- {node v22.15 → node v24.10}/vm.d.ts +258 -107
- {node v22.15 → node v24.10}/wasi.d.ts +23 -2
- node v24.10/web-globals/abortcontroller.d.ts +34 -0
- node v24.10/web-globals/crypto.d.ts +32 -0
- node v24.10/web-globals/domexception.d.ts +68 -0
- node v22.15/dom-events.d.ts → node v24.10/web-globals/events.d.ts +49 -51
- node v24.10/web-globals/fetch.d.ts +50 -0
- node v24.10/web-globals/navigator.d.ts +25 -0
- node v24.10/web-globals/storage.d.ts +24 -0
- node v24.10/web-globals/streams.d.ts +22 -0
- {node v22.15 → node v24.10}/worker_threads.d.ts +206 -68
- {node v22.15 → node v24.10}/zlib.d.ts +44 -33
- node v22.15/README.md +0 -15
- node v22.15/assert/strict.d.ts +0 -8
- node v22.15/compatibility/disposable.d.ts +0 -14
- node v22.15/compatibility/index.d.ts +0 -9
- node v22.15/compatibility/indexable.d.ts +0 -20
- node v22.15/globals.d.ts +0 -364
- node v22.15/globals.typedarray.d.ts +0 -21
- node v22.15/test.d.ts +0 -2278
- node v22.15/ts5.6/globals.typedarray.d.ts +0 -19
- {node v22.15 → node v24.10}/LICENSE +0 -0
- {node v22.15 → node v24.10}/constants.d.ts +0 -0
- {node v22.15 → node v24.10}/stream/promises.d.ts +0 -0
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* ```js
|
|
7
7
|
* import repl from 'node:repl';
|
|
8
8
|
* ```
|
|
9
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
9
|
+
* @see [source](https://github.com/nodejs/node/blob/v24.x/lib/repl.js)
|
|
10
10
|
*/
|
|
11
11
|
declare module "repl" {
|
|
12
12
|
import { AsyncCompleter, Completer, Interface } from "node:readline";
|
|
@@ -37,12 +37,10 @@ declare module "repl" {
|
|
|
37
37
|
terminal?: boolean | undefined;
|
|
38
38
|
/**
|
|
39
39
|
* The function to be used when evaluating each given line of input.
|
|
40
|
-
* Default
|
|
40
|
+
* **Default:** an async wrapper for the JavaScript `eval()` function. An `eval` function can
|
|
41
41
|
* error with `repl.Recoverable` to indicate the input was incomplete and prompt for
|
|
42
|
-
* additional lines.
|
|
43
|
-
*
|
|
44
|
-
* @see https://nodejs.org/dist/latest-v22.x/docs/api/repl.html#repl_default_evaluation
|
|
45
|
-
* @see https://nodejs.org/dist/latest-v22.x/docs/api/repl.html#repl_custom_evaluation_functions
|
|
42
|
+
* additional lines. See the [custom evaluation functions](https://nodejs.org/dist/latest-v24.x/docs/api/repl.html#custom-evaluation-functions)
|
|
43
|
+
* section for more details.
|
|
46
44
|
*/
|
|
47
45
|
eval?: REPLEval | undefined;
|
|
48
46
|
/**
|
|
@@ -74,13 +72,13 @@ declare module "repl" {
|
|
|
74
72
|
* The function to invoke to format the output of each command before writing to `output`.
|
|
75
73
|
* @default a wrapper for `util.inspect`
|
|
76
74
|
*
|
|
77
|
-
* @see https://nodejs.org/dist/latest-
|
|
75
|
+
* @see https://nodejs.org/dist/latest-v24.x/docs/api/repl.html#repl_customizing_repl_output
|
|
78
76
|
*/
|
|
79
77
|
writer?: REPLWriter | undefined;
|
|
80
78
|
/**
|
|
81
79
|
* An optional function used for custom Tab auto completion.
|
|
82
80
|
*
|
|
83
|
-
* @see https://nodejs.org/dist/latest-
|
|
81
|
+
* @see https://nodejs.org/dist/latest-v24.x/docs/api/readline.html#readline_use_of_the_completer_function
|
|
84
82
|
*/
|
|
85
83
|
completer?: Completer | AsyncCompleter | undefined;
|
|
86
84
|
/**
|
|
@@ -125,6 +123,12 @@ declare module "repl" {
|
|
|
125
123
|
*/
|
|
126
124
|
action: REPLCommandAction;
|
|
127
125
|
}
|
|
126
|
+
interface REPLServerSetupHistoryOptions {
|
|
127
|
+
filePath?: string | undefined;
|
|
128
|
+
size?: number | undefined;
|
|
129
|
+
removeHistoryDuplicates?: boolean | undefined;
|
|
130
|
+
onHistoryFileLoaded?: ((err: Error | null, repl: REPLServer) => void) | undefined;
|
|
131
|
+
}
|
|
128
132
|
/**
|
|
129
133
|
* Instances of `repl.REPLServer` are created using the {@link start} method
|
|
130
134
|
* or directly using the JavaScript `new` keyword.
|
|
@@ -168,33 +172,33 @@ declare module "repl" {
|
|
|
168
172
|
/**
|
|
169
173
|
* A value indicating whether the REPL is currently in "editor mode".
|
|
170
174
|
*
|
|
171
|
-
* @see https://nodejs.org/dist/latest-
|
|
175
|
+
* @see https://nodejs.org/dist/latest-v24.x/docs/api/repl.html#repl_commands_and_special_keys
|
|
172
176
|
*/
|
|
173
177
|
readonly editorMode: boolean;
|
|
174
178
|
/**
|
|
175
179
|
* A value indicating whether the `_` variable has been assigned.
|
|
176
180
|
*
|
|
177
|
-
* @see https://nodejs.org/dist/latest-
|
|
181
|
+
* @see https://nodejs.org/dist/latest-v24.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable
|
|
178
182
|
*/
|
|
179
183
|
readonly underscoreAssigned: boolean;
|
|
180
184
|
/**
|
|
181
185
|
* The last evaluation result from the REPL (assigned to the `_` variable inside of the REPL).
|
|
182
186
|
*
|
|
183
|
-
* @see https://nodejs.org/dist/latest-
|
|
187
|
+
* @see https://nodejs.org/dist/latest-v24.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable
|
|
184
188
|
*/
|
|
185
189
|
readonly last: any;
|
|
186
190
|
/**
|
|
187
191
|
* A value indicating whether the `_error` variable has been assigned.
|
|
188
192
|
*
|
|
189
193
|
* @since v9.8.0
|
|
190
|
-
* @see https://nodejs.org/dist/latest-
|
|
194
|
+
* @see https://nodejs.org/dist/latest-v24.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable
|
|
191
195
|
*/
|
|
192
196
|
readonly underscoreErrAssigned: boolean;
|
|
193
197
|
/**
|
|
194
198
|
* The last error raised inside the REPL (assigned to the `_error` variable inside of the REPL).
|
|
195
199
|
*
|
|
196
200
|
* @since v9.8.0
|
|
197
|
-
* @see https://nodejs.org/dist/latest-
|
|
201
|
+
* @see https://nodejs.org/dist/latest-v24.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable
|
|
198
202
|
*/
|
|
199
203
|
readonly lastError: any;
|
|
200
204
|
/**
|
|
@@ -246,7 +250,7 @@ declare module "repl" {
|
|
|
246
250
|
*
|
|
247
251
|
* `REPLServer` cannot be subclassed due to implementation specifics in NodeJS.
|
|
248
252
|
*
|
|
249
|
-
* @see https://nodejs.org/dist/latest-
|
|
253
|
+
* @see https://nodejs.org/dist/latest-v24.x/docs/api/repl.html#repl_class_replserver
|
|
250
254
|
*/
|
|
251
255
|
private constructor();
|
|
252
256
|
/**
|
|
@@ -291,7 +295,7 @@ declare module "repl" {
|
|
|
291
295
|
* The `replServer.displayPrompt()` method readies the REPL instance for input
|
|
292
296
|
* from the user, printing the configured `prompt` to a new line in the `output` and resuming the `input` to accept new input.
|
|
293
297
|
*
|
|
294
|
-
* When multi-line input is being entered,
|
|
298
|
+
* When multi-line input is being entered, a pipe `'|'` is printed rather than the
|
|
295
299
|
* 'prompt'.
|
|
296
300
|
*
|
|
297
301
|
* When `preserveCursor` is `true`, the cursor placement will not be reset to `0`.
|
|
@@ -318,7 +322,11 @@ declare module "repl" {
|
|
|
318
322
|
* @param historyPath the path to the history file
|
|
319
323
|
* @param callback called when history writes are ready or upon error
|
|
320
324
|
*/
|
|
321
|
-
setupHistory(
|
|
325
|
+
setupHistory(historyPath: string, callback: (err: Error | null, repl: this) => void): void;
|
|
326
|
+
setupHistory(
|
|
327
|
+
historyConfig?: REPLServerSetupHistoryOptions,
|
|
328
|
+
callback?: (err: Error | null, repl: this) => void,
|
|
329
|
+
): void;
|
|
322
330
|
/**
|
|
323
331
|
* events.EventEmitter
|
|
324
332
|
* 1. close - inherited from `readline.Interface`
|
|
@@ -418,7 +426,7 @@ declare module "repl" {
|
|
|
418
426
|
/**
|
|
419
427
|
* Indicates a recoverable error that a `REPLServer` can use to support multi-line input.
|
|
420
428
|
*
|
|
421
|
-
* @see https://nodejs.org/dist/latest-
|
|
429
|
+
* @see https://nodejs.org/dist/latest-v24.x/docs/api/repl.html#repl_recoverable_errors
|
|
422
430
|
*/
|
|
423
431
|
class Recoverable extends SyntaxError {
|
|
424
432
|
err: Error;
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
* ```
|
|
112
112
|
* @since v19.7.0, v18.16.0
|
|
113
113
|
* @experimental
|
|
114
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
114
|
+
* @see [source](https://github.com/nodejs/node/blob/v24.x/src/node_sea.cc)
|
|
115
115
|
*/
|
|
116
116
|
declare module "node:sea" {
|
|
117
117
|
type AssetKey = string;
|
|
@@ -150,4 +150,13 @@ declare module "node:sea" {
|
|
|
150
150
|
* @since v20.12.0
|
|
151
151
|
*/
|
|
152
152
|
function getRawAsset(key: AssetKey): ArrayBuffer;
|
|
153
|
+
/**
|
|
154
|
+
* This method can be used to retrieve an array of all the keys of assets
|
|
155
|
+
* embedded into the single-executable application.
|
|
156
|
+
* An error is thrown when not running inside a single-executable application.
|
|
157
|
+
* @since v24.8.0
|
|
158
|
+
* @returns An array containing all the keys of the assets
|
|
159
|
+
* embedded in the executable. If no assets are embedded, returns an empty array.
|
|
160
|
+
*/
|
|
161
|
+
function getAssetKeys(): string[];
|
|
153
162
|
}
|