@types/node 22.15.33 → 22.17.1
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 v22.17/README.md +15 -0
- {node v22.15 → node v22.17}/buffer.d.ts +5 -1
- {node v22.15 → node v22.17}/crypto.d.ts +17 -1
- {node v22.15 → node v22.17}/dns/promises.d.ts +11 -10
- {node v22.15 → node v22.17}/dns.d.ts +18 -19
- {node v22.15 → node v22.17}/events.d.ts +0 -1
- {node v22.15 → node v22.17}/fs/promises.d.ts +22 -11
- {node v22.15 → node v22.17}/fs.d.ts +41 -13
- {node v22.15 → node v22.17}/http.d.ts +63 -1
- {node v22.15 → node v22.17}/http2.d.ts +12 -1
- {node v22.15 → node v22.17}/inspector.d.ts +157 -4
- {node v22.15 → node v22.17}/module.d.ts +47 -14
- {node v22.15 → node v22.17}/package.json +3 -83
- {node v22.15 → node v22.17}/process.d.ts +0 -2
- {node v22.15 → node v22.17}/readline/promises.d.ts +0 -1
- {node v22.15 → node v22.17}/repl.d.ts +3 -5
- {node v22.15 → node v22.17}/sqlite.d.ts +172 -0
- {node v22.15 → node v22.17}/stream/web.d.ts +8 -0
- {node v22.15 → node v22.17}/stream.d.ts +0 -11
- node v22.17/test.d.ts +2183 -0
- {node v22.15 → node v22.17}/url.d.ts +1 -3
- {node v22.15 → node v22.17}/util.d.ts +19 -4
- {node v22.15 → node v22.17}/v8.d.ts +27 -30
- {node v22.15 → node v22.17}/worker_threads.d.ts +33 -17
- {node v22.15 → node v22.17}/zlib.d.ts +8 -2
- node v22.15/README.md +0 -15
- node v22.15/test.d.ts +0 -2278
- {node v22.15 → node v22.17}/LICENSE +0 -0
- {node v22.15 → node v22.17}/assert/strict.d.ts +0 -0
- {node v22.15 → node v22.17}/assert.d.ts +0 -0
- {node v22.15 → node v22.17}/async_hooks.d.ts +1 -1
- {node v22.15 → node v22.17}/buffer.buffer.d.ts +0 -0
- {node v22.15 → node v22.17}/child_process.d.ts +0 -0
- {node v22.15 → node v22.17}/cluster.d.ts +0 -0
- {node v22.15 → node v22.17}/compatibility/disposable.d.ts +0 -0
- {node v22.15 → node v22.17}/compatibility/index.d.ts +0 -0
- {node v22.15 → node v22.17}/compatibility/indexable.d.ts +0 -0
- {node v22.15 → node v22.17}/compatibility/iterators.d.ts +0 -0
- {node v22.15 → node v22.17}/console.d.ts +0 -0
- {node v22.15 → node v22.17}/constants.d.ts +0 -0
- {node v22.15 → node v22.17}/dgram.d.ts +0 -0
- {node v22.15 → node v22.17}/diagnostics_channel.d.ts +0 -0
- {node v22.15 → node v22.17}/dom-events.d.ts +0 -0
- {node v22.15 → node v22.17}/domain.d.ts +0 -0
- {node v22.15 → node v22.17}/globals.d.ts +0 -0
- {node v22.15 → node v22.17}/globals.typedarray.d.ts +0 -0
- {node v22.15 → node v22.17}/https.d.ts +0 -0
- {node v22.15 → node v22.17}/index.d.ts +0 -0
- {node v22.15 → node v22.17}/net.d.ts +0 -0
- {node v22.15 → node v22.17}/os.d.ts +0 -0
- {node v22.15 → node v22.17}/path.d.ts +0 -0
- {node v22.15 → node v22.17}/perf_hooks.d.ts +0 -0
- {node v22.15 → node v22.17}/punycode.d.ts +0 -0
- {node v22.15 → node v22.17}/querystring.d.ts +0 -0
- {node v22.15 → node v22.17}/readline.d.ts +0 -0
- {node v22.15 → node v22.17}/sea.d.ts +0 -0
- {node v22.15 → node v22.17}/stream/consumers.d.ts +0 -0
- {node v22.15 → node v22.17}/stream/promises.d.ts +0 -0
- {node v22.15 → node v22.17}/string_decoder.d.ts +0 -0
- {node v22.15 → node v22.17}/timers/promises.d.ts +0 -0
- {node v22.15 → node v22.17}/timers.d.ts +0 -0
- {node v22.15 → node v22.17}/tls.d.ts +0 -0
- {node v22.15 → node v22.17}/trace_events.d.ts +0 -0
- {node v22.15 → node v22.17}/ts5.6/buffer.buffer.d.ts +0 -0
- {node v22.15 → node v22.17}/ts5.6/globals.typedarray.d.ts +0 -0
- {node v22.15 → node v22.17}/ts5.6/index.d.ts +0 -0
- {node v22.15 → node v22.17}/tty.d.ts +0 -0
- {node v22.15 → node v22.17}/vm.d.ts +0 -0
- {node v22.15 → node v22.17}/wasi.d.ts +0 -0
|
@@ -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-v22.x/docs/api/repl.html#custom-evaluation-functions)
|
|
43
|
+
* section for more details.
|
|
46
44
|
*/
|
|
47
45
|
eval?: REPLEval | undefined;
|
|
48
46
|
/**
|
|
@@ -166,6 +166,31 @@ declare module "node:sqlite" {
|
|
|
166
166
|
*/
|
|
167
167
|
varargs?: boolean | undefined;
|
|
168
168
|
}
|
|
169
|
+
interface AggregateOptions<T extends SQLInputValue = SQLInputValue> extends FunctionOptions {
|
|
170
|
+
/**
|
|
171
|
+
* The identity value for the aggregation function. This value is used when the aggregation
|
|
172
|
+
* function is initialized. When a `Function` is passed the identity will be its return value.
|
|
173
|
+
*/
|
|
174
|
+
start: T | (() => T);
|
|
175
|
+
/**
|
|
176
|
+
* The function to call for each row in the aggregation. The
|
|
177
|
+
* function receives the current state and the row value. The return value of
|
|
178
|
+
* this function should be the new state.
|
|
179
|
+
*/
|
|
180
|
+
step: (accumulator: T, ...args: SQLOutputValue[]) => T;
|
|
181
|
+
/**
|
|
182
|
+
* The function to call to get the result of the
|
|
183
|
+
* aggregation. The function receives the final state and should return the
|
|
184
|
+
* result of the aggregation.
|
|
185
|
+
*/
|
|
186
|
+
result?: ((accumulator: T) => SQLInputValue) | undefined;
|
|
187
|
+
/**
|
|
188
|
+
* When this function is provided, the `aggregate` method will work as a window function.
|
|
189
|
+
* The function receives the current state and the dropped row value. The return value of this function should be the
|
|
190
|
+
* new state.
|
|
191
|
+
*/
|
|
192
|
+
inverse?: ((accumulator: T, ...args: SQLOutputValue[]) => T) | undefined;
|
|
193
|
+
}
|
|
169
194
|
/**
|
|
170
195
|
* This class represents a single [connection](https://www.sqlite.org/c3ref/sqlite3.html) to a SQLite database. All APIs
|
|
171
196
|
* exposed by this class execute synchronously.
|
|
@@ -181,6 +206,38 @@ declare module "node:sqlite" {
|
|
|
181
206
|
* @param options Configuration options for the database connection.
|
|
182
207
|
*/
|
|
183
208
|
constructor(path: string | Buffer | URL, options?: DatabaseSyncOptions);
|
|
209
|
+
/**
|
|
210
|
+
* Registers a new aggregate function with the SQLite database. This method is a wrapper around
|
|
211
|
+
* [`sqlite3_create_window_function()`](https://www.sqlite.org/c3ref/create_function.html).
|
|
212
|
+
*
|
|
213
|
+
* When used as a window function, the `result` function will be called multiple times.
|
|
214
|
+
*
|
|
215
|
+
* ```js
|
|
216
|
+
* import { DatabaseSync } from 'node:sqlite';
|
|
217
|
+
*
|
|
218
|
+
* const db = new DatabaseSync(':memory:');
|
|
219
|
+
* db.exec(`
|
|
220
|
+
* CREATE TABLE t3(x, y);
|
|
221
|
+
* INSERT INTO t3 VALUES ('a', 4),
|
|
222
|
+
* ('b', 5),
|
|
223
|
+
* ('c', 3),
|
|
224
|
+
* ('d', 8),
|
|
225
|
+
* ('e', 1);
|
|
226
|
+
* `);
|
|
227
|
+
*
|
|
228
|
+
* db.aggregate('sumint', {
|
|
229
|
+
* start: 0,
|
|
230
|
+
* step: (acc, value) => acc + value,
|
|
231
|
+
* });
|
|
232
|
+
*
|
|
233
|
+
* db.prepare('SELECT sumint(y) as total FROM t3').get(); // { total: 21 }
|
|
234
|
+
* ```
|
|
235
|
+
* @since v22.16.0
|
|
236
|
+
* @param name The name of the SQLite function to create.
|
|
237
|
+
* @param options Function configuration settings.
|
|
238
|
+
*/
|
|
239
|
+
aggregate(name: string, options: AggregateOptions): void;
|
|
240
|
+
aggregate<T extends SQLInputValue>(name: string, options: AggregateOptions<T>): void;
|
|
184
241
|
/**
|
|
185
242
|
* Closes the database connection. An exception is thrown if the database is not
|
|
186
243
|
* open. This method is a wrapper around [`sqlite3_close_v2()`](https://www.sqlite.org/c3ref/close.html).
|
|
@@ -203,6 +260,15 @@ declare module "node:sqlite" {
|
|
|
203
260
|
* @param allow Whether to allow loading extensions.
|
|
204
261
|
*/
|
|
205
262
|
enableLoadExtension(allow: boolean): void;
|
|
263
|
+
/**
|
|
264
|
+
* This method is a wrapper around [`sqlite3_db_filename()`](https://sqlite.org/c3ref/db_filename.html)
|
|
265
|
+
* @since v22.16.0
|
|
266
|
+
* @param dbName Name of the database. This can be `'main'` (the default primary database) or any other
|
|
267
|
+
* database that has been added with [`ATTACH DATABASE`](https://www.sqlite.org/lang_attach.html) **Default:** `'main'`.
|
|
268
|
+
* @returns The location of the database file. When using an in-memory database,
|
|
269
|
+
* this method returns null.
|
|
270
|
+
*/
|
|
271
|
+
location(dbName?: string): string | null;
|
|
206
272
|
/**
|
|
207
273
|
* This method allows one or more SQL statements to be executed without returning
|
|
208
274
|
* any results. This method is useful when executing SQL statements read from a
|
|
@@ -234,6 +300,12 @@ declare module "node:sqlite" {
|
|
|
234
300
|
* @since v22.15.0
|
|
235
301
|
*/
|
|
236
302
|
readonly isOpen: boolean;
|
|
303
|
+
/**
|
|
304
|
+
* Whether the database is currently within a transaction. This method
|
|
305
|
+
* is a wrapper around [`sqlite3_get_autocommit()`](https://sqlite.org/c3ref/get_autocommit.html).
|
|
306
|
+
* @since v22.16.0
|
|
307
|
+
*/
|
|
308
|
+
readonly isTransaction: boolean;
|
|
237
309
|
/**
|
|
238
310
|
* Opens the database specified in the `path` argument of the `DatabaseSync`constructor. This method should only be used when the database is not opened via
|
|
239
311
|
* the constructor. An exception is thrown if the database is already open.
|
|
@@ -322,6 +394,38 @@ declare module "node:sqlite" {
|
|
|
322
394
|
*/
|
|
323
395
|
close(): void;
|
|
324
396
|
}
|
|
397
|
+
interface StatementColumnMetadata {
|
|
398
|
+
/**
|
|
399
|
+
* The unaliased name of the column in the origin
|
|
400
|
+
* table, or `null` if the column is the result of an expression or subquery.
|
|
401
|
+
* This property is the result of [`sqlite3_column_origin_name()`](https://www.sqlite.org/c3ref/column_database_name.html).
|
|
402
|
+
*/
|
|
403
|
+
column: string | null;
|
|
404
|
+
/**
|
|
405
|
+
* The unaliased name of the origin database, or
|
|
406
|
+
* `null` if the column is the result of an expression or subquery. This
|
|
407
|
+
* property is the result of [`sqlite3_column_database_name()`](https://www.sqlite.org/c3ref/column_database_name.html).
|
|
408
|
+
*/
|
|
409
|
+
database: string | null;
|
|
410
|
+
/**
|
|
411
|
+
* The name assigned to the column in the result set of a
|
|
412
|
+
* `SELECT` statement. This property is the result of
|
|
413
|
+
* [`sqlite3_column_name()`](https://www.sqlite.org/c3ref/column_name.html).
|
|
414
|
+
*/
|
|
415
|
+
name: string;
|
|
416
|
+
/**
|
|
417
|
+
* The unaliased name of the origin table, or `null` if
|
|
418
|
+
* the column is the result of an expression or subquery. This property is the
|
|
419
|
+
* result of [`sqlite3_column_table_name()`](https://www.sqlite.org/c3ref/column_database_name.html).
|
|
420
|
+
*/
|
|
421
|
+
table: string | null;
|
|
422
|
+
/**
|
|
423
|
+
* The declared data type of the column, or `null` if the
|
|
424
|
+
* column is the result of an expression or subquery. This property is the
|
|
425
|
+
* result of [`sqlite3_column_decltype()`](https://www.sqlite.org/c3ref/column_decltype.html).
|
|
426
|
+
*/
|
|
427
|
+
type: string | null;
|
|
428
|
+
}
|
|
325
429
|
interface StatementResultingChanges {
|
|
326
430
|
/**
|
|
327
431
|
* The number of rows modified, inserted, or deleted by the most recently completed `INSERT`, `UPDATE`, or `DELETE` statement.
|
|
@@ -366,6 +470,14 @@ declare module "node:sqlite" {
|
|
|
366
470
|
namedParameters: Record<string, SQLInputValue>,
|
|
367
471
|
...anonymousParameters: SQLInputValue[]
|
|
368
472
|
): Record<string, SQLOutputValue>[];
|
|
473
|
+
/**
|
|
474
|
+
* This method is used to retrieve information about the columns returned by the
|
|
475
|
+
* prepared statement.
|
|
476
|
+
* @since v22.16.0
|
|
477
|
+
* @returns An array of objects. Each object corresponds to a column
|
|
478
|
+
* in the prepared statement, and contains the following properties:
|
|
479
|
+
*/
|
|
480
|
+
columns(): StatementColumnMetadata[];
|
|
369
481
|
/**
|
|
370
482
|
* The source SQL text of the prepared statement with parameter
|
|
371
483
|
* placeholders replaced by the values that were used during the most recent
|
|
@@ -465,6 +577,66 @@ declare module "node:sqlite" {
|
|
|
465
577
|
*/
|
|
466
578
|
readonly sourceSQL: string;
|
|
467
579
|
}
|
|
580
|
+
interface BackupOptions {
|
|
581
|
+
/**
|
|
582
|
+
* Name of the source database. This can be `'main'` (the default primary database) or any other
|
|
583
|
+
* database that have been added with [`ATTACH DATABASE`](https://www.sqlite.org/lang_attach.html)
|
|
584
|
+
* @default 'main'
|
|
585
|
+
*/
|
|
586
|
+
source?: string | undefined;
|
|
587
|
+
/**
|
|
588
|
+
* Name of the target database. This can be `'main'` (the default primary database) or any other
|
|
589
|
+
* database that have been added with [`ATTACH DATABASE`](https://www.sqlite.org/lang_attach.html)
|
|
590
|
+
* @default 'main'
|
|
591
|
+
*/
|
|
592
|
+
target?: string | undefined;
|
|
593
|
+
/**
|
|
594
|
+
* Number of pages to be transmitted in each batch of the backup.
|
|
595
|
+
* @default 100
|
|
596
|
+
*/
|
|
597
|
+
rate?: number | undefined;
|
|
598
|
+
/**
|
|
599
|
+
* Callback function that will be called with the number of pages copied and the total number of
|
|
600
|
+
* pages.
|
|
601
|
+
*/
|
|
602
|
+
progress?: ((progressInfo: BackupProgressInfo) => void) | undefined;
|
|
603
|
+
}
|
|
604
|
+
interface BackupProgressInfo {
|
|
605
|
+
totalPages: number;
|
|
606
|
+
remainingPages: number;
|
|
607
|
+
}
|
|
608
|
+
/**
|
|
609
|
+
* This method makes a database backup. This method abstracts the
|
|
610
|
+
* [`sqlite3_backup_init()`](https://www.sqlite.org/c3ref/backup_finish.html#sqlite3backupinit),
|
|
611
|
+
* [`sqlite3_backup_step()`](https://www.sqlite.org/c3ref/backup_finish.html#sqlite3backupstep)
|
|
612
|
+
* and [`sqlite3_backup_finish()`](https://www.sqlite.org/c3ref/backup_finish.html#sqlite3backupfinish) functions.
|
|
613
|
+
*
|
|
614
|
+
* The backed-up database can be used normally during the backup process. Mutations coming from the same connection - same
|
|
615
|
+
* `DatabaseSync` - object will be reflected in the backup right away. However, mutations from other connections will cause
|
|
616
|
+
* the backup process to restart.
|
|
617
|
+
*
|
|
618
|
+
* ```js
|
|
619
|
+
* import { backup, DatabaseSync } from 'node:sqlite';
|
|
620
|
+
*
|
|
621
|
+
* const sourceDb = new DatabaseSync('source.db');
|
|
622
|
+
* const totalPagesTransferred = await backup(sourceDb, 'backup.db', {
|
|
623
|
+
* rate: 1, // Copy one page at a time.
|
|
624
|
+
* progress: ({ totalPages, remainingPages }) => {
|
|
625
|
+
* console.log('Backup in progress', { totalPages, remainingPages });
|
|
626
|
+
* },
|
|
627
|
+
* });
|
|
628
|
+
*
|
|
629
|
+
* console.log('Backup completed', totalPagesTransferred);
|
|
630
|
+
* ```
|
|
631
|
+
* @since v22.16.0
|
|
632
|
+
* @param sourceDb The database to backup. The source database must be open.
|
|
633
|
+
* @param path The path where the backup will be created. If the file already exists,
|
|
634
|
+
* the contents will be overwritten.
|
|
635
|
+
* @param options Optional configuration for the backup. The
|
|
636
|
+
* following properties are supported:
|
|
637
|
+
* @returns A promise that resolves when the backup is completed and rejects if an error occurs.
|
|
638
|
+
*/
|
|
639
|
+
function backup(sourceDb: DatabaseSync, path: string | Buffer | URL, options?: BackupOptions): Promise<void>;
|
|
468
640
|
/**
|
|
469
641
|
* @since v22.13.0
|
|
470
642
|
*/
|
|
@@ -6,6 +6,8 @@ type _CountQueuingStrategy = typeof globalThis extends { onmessage: any } ? {}
|
|
|
6
6
|
: import("stream/web").CountQueuingStrategy;
|
|
7
7
|
type _DecompressionStream = typeof globalThis extends { onmessage: any; ReportingObserver: any } ? {}
|
|
8
8
|
: import("stream/web").DecompressionStream;
|
|
9
|
+
type _QueuingStrategy<T = any> = typeof globalThis extends { onmessage: any } ? {}
|
|
10
|
+
: import("stream/web").QueuingStrategy<T>;
|
|
9
11
|
type _ReadableByteStreamController = typeof globalThis extends { onmessage: any } ? {}
|
|
10
12
|
: import("stream/web").ReadableByteStreamController;
|
|
11
13
|
type _ReadableStream<R = any> = typeof globalThis extends { onmessage: any } ? {}
|
|
@@ -143,6 +145,9 @@ declare module "stream/web" {
|
|
|
143
145
|
interface TransformerTransformCallback<I, O> {
|
|
144
146
|
(chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
|
|
145
147
|
}
|
|
148
|
+
interface TransformerCancelCallback {
|
|
149
|
+
(reason: any): void | PromiseLike<void>;
|
|
150
|
+
}
|
|
146
151
|
interface UnderlyingByteSource {
|
|
147
152
|
autoAllocateChunkSize?: number;
|
|
148
153
|
cancel?: ReadableStreamErrorCallback;
|
|
@@ -261,6 +266,7 @@ declare module "stream/web" {
|
|
|
261
266
|
readableType?: undefined;
|
|
262
267
|
start?: TransformerStartCallback<O>;
|
|
263
268
|
transform?: TransformerTransformCallback<I, O>;
|
|
269
|
+
cancel?: TransformerCancelCallback;
|
|
264
270
|
writableType?: undefined;
|
|
265
271
|
}
|
|
266
272
|
interface TransformStream<I = any, O = any> {
|
|
@@ -483,6 +489,8 @@ declare module "stream/web" {
|
|
|
483
489
|
}
|
|
484
490
|
: typeof import("stream/web").DecompressionStream;
|
|
485
491
|
|
|
492
|
+
interface QueuingStrategy<T = any> extends _QueuingStrategy<T> {}
|
|
493
|
+
|
|
486
494
|
interface ReadableByteStreamController extends _ReadableByteStreamController {}
|
|
487
495
|
/**
|
|
488
496
|
* `ReadableByteStreamController` class is a global reference for `import { ReadableByteStreamController } from 'node:stream/web'`.
|
|
@@ -76,7 +76,6 @@ declare module "stream" {
|
|
|
76
76
|
/**
|
|
77
77
|
* A utility method for creating a `Readable` from a web `ReadableStream`.
|
|
78
78
|
* @since v17.0.0
|
|
79
|
-
* @experimental
|
|
80
79
|
*/
|
|
81
80
|
static fromWeb(
|
|
82
81
|
readableStream: streamWeb.ReadableStream,
|
|
@@ -85,7 +84,6 @@ declare module "stream" {
|
|
|
85
84
|
/**
|
|
86
85
|
* A utility method for creating a web `ReadableStream` from a `Readable`.
|
|
87
86
|
* @since v17.0.0
|
|
88
|
-
* @experimental
|
|
89
87
|
*/
|
|
90
88
|
static toWeb(
|
|
91
89
|
streamReadable: Readable,
|
|
@@ -101,7 +99,6 @@ declare module "stream" {
|
|
|
101
99
|
/**
|
|
102
100
|
* Returns whether the stream was destroyed or errored before emitting `'end'`.
|
|
103
101
|
* @since v16.8.0
|
|
104
|
-
* @experimental
|
|
105
102
|
*/
|
|
106
103
|
readonly readableAborted: boolean;
|
|
107
104
|
/**
|
|
@@ -113,7 +110,6 @@ declare module "stream" {
|
|
|
113
110
|
/**
|
|
114
111
|
* Returns whether `'data'` has been emitted.
|
|
115
112
|
* @since v16.7.0, v14.18.0
|
|
116
|
-
* @experimental
|
|
117
113
|
*/
|
|
118
114
|
readonly readableDidRead: boolean;
|
|
119
115
|
/**
|
|
@@ -719,7 +715,6 @@ declare module "stream" {
|
|
|
719
715
|
/**
|
|
720
716
|
* A utility method for creating a `Writable` from a web `WritableStream`.
|
|
721
717
|
* @since v17.0.0
|
|
722
|
-
* @experimental
|
|
723
718
|
*/
|
|
724
719
|
static fromWeb(
|
|
725
720
|
writableStream: streamWeb.WritableStream,
|
|
@@ -728,7 +723,6 @@ declare module "stream" {
|
|
|
728
723
|
/**
|
|
729
724
|
* A utility method for creating a web `WritableStream` from a `Writable`.
|
|
730
725
|
* @since v17.0.0
|
|
731
|
-
* @experimental
|
|
732
726
|
*/
|
|
733
727
|
static toWeb(streamWritable: Writable): streamWeb.WritableStream;
|
|
734
728
|
/**
|
|
@@ -740,7 +734,6 @@ declare module "stream" {
|
|
|
740
734
|
/**
|
|
741
735
|
* Returns whether the stream was destroyed or errored before emitting `'finish'`.
|
|
742
736
|
* @since v18.0.0, v16.17.0
|
|
743
|
-
* @experimental
|
|
744
737
|
*/
|
|
745
738
|
readonly writableAborted: boolean;
|
|
746
739
|
/**
|
|
@@ -1090,7 +1083,6 @@ declare module "stream" {
|
|
|
1090
1083
|
/**
|
|
1091
1084
|
* A utility method for creating a web `ReadableStream` and `WritableStream` from a `Duplex`.
|
|
1092
1085
|
* @since v17.0.0
|
|
1093
|
-
* @experimental
|
|
1094
1086
|
*/
|
|
1095
1087
|
static toWeb(streamDuplex: Duplex): {
|
|
1096
1088
|
readable: streamWeb.ReadableStream;
|
|
@@ -1099,7 +1091,6 @@ declare module "stream" {
|
|
|
1099
1091
|
/**
|
|
1100
1092
|
* A utility method for creating a `Duplex` from a web `ReadableStream` and `WritableStream`.
|
|
1101
1093
|
* @since v17.0.0
|
|
1102
|
-
* @experimental
|
|
1103
1094
|
*/
|
|
1104
1095
|
static fromWeb(
|
|
1105
1096
|
duplexStream: {
|
|
@@ -1650,13 +1641,11 @@ declare module "stream" {
|
|
|
1650
1641
|
/**
|
|
1651
1642
|
* Returns whether the stream has encountered an error.
|
|
1652
1643
|
* @since v17.3.0, v16.14.0
|
|
1653
|
-
* @experimental
|
|
1654
1644
|
*/
|
|
1655
1645
|
function isErrored(stream: Readable | Writable | NodeJS.ReadableStream | NodeJS.WritableStream): boolean;
|
|
1656
1646
|
/**
|
|
1657
1647
|
* Returns whether the stream is readable.
|
|
1658
1648
|
* @since v17.4.0, v16.14.0
|
|
1659
|
-
* @experimental
|
|
1660
1649
|
*/
|
|
1661
1650
|
function isReadable(stream: Readable | NodeJS.ReadableStream): boolean;
|
|
1662
1651
|
}
|