mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 04:39:10 +00:00
fix(op_crate/fetch): add back ReadableStream.getIterator and deprecate (#9146)
This commit is contained in:
parent
81d73f2987
commit
2077864a8d
4 changed files with 32 additions and 1 deletions
6
op_crates/fetch/lib.deno_fetch.d.ts
vendored
6
op_crates/fetch/lib.deno_fetch.d.ts
vendored
|
@ -150,6 +150,12 @@ declare class ByteLengthQueuingStrategy
|
|||
interface ReadableStream<R = any> {
|
||||
readonly locked: boolean;
|
||||
cancel(reason?: any): Promise<void>;
|
||||
/**
|
||||
* @deprecated This is no longer part of the Streams standard and the async
|
||||
* iterable should be obtained by just using the stream as an
|
||||
* async iterator.
|
||||
*/
|
||||
getIterator(options?: { preventCancel?: boolean }): AsyncIterableIterator<R>;
|
||||
getReader(): ReadableStreamDefaultReader<R>;
|
||||
pipeThrough<T>(
|
||||
{ writable, readable }: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue