From 2077864a8deca240fbbd43758e30977cc881e110 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Mon, 18 Jan 2021 10:40:39 +1100 Subject: fix(op_crate/fetch): add back ReadableStream.getIterator and deprecate (#9146) --- op_crates/fetch/lib.deno_fetch.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'op_crates/fetch/lib.deno_fetch.d.ts') diff --git a/op_crates/fetch/lib.deno_fetch.d.ts b/op_crates/fetch/lib.deno_fetch.d.ts index 83739f2ec..f18dbe359 100644 --- a/op_crates/fetch/lib.deno_fetch.d.ts +++ b/op_crates/fetch/lib.deno_fetch.d.ts @@ -150,6 +150,12 @@ declare class ByteLengthQueuingStrategy interface ReadableStream { readonly locked: boolean; cancel(reason?: any): Promise; + /** + * @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; getReader(): ReadableStreamDefaultReader; pipeThrough( { writable, readable }: { -- cgit v1.2.3