summaryrefslogtreecommitdiff
path: root/op_crates/fetch/lib.deno_fetch.d.ts
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2021-01-18 10:40:39 +1100
committerGitHub <noreply@github.com>2021-01-18 10:40:39 +1100
commit2077864a8deca240fbbd43758e30977cc881e110 (patch)
tree67e93e98597df9c6bc9001900071be963ede49c3 /op_crates/fetch/lib.deno_fetch.d.ts
parent81d73f2987c65463c0f2653f31d3d29d8db1986c (diff)
fix(op_crate/fetch): add back ReadableStream.getIterator and deprecate (#9146)
Diffstat (limited to 'op_crates/fetch/lib.deno_fetch.d.ts')
-rw-r--r--op_crates/fetch/lib.deno_fetch.d.ts6
1 files changed, 6 insertions, 0 deletions
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<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 }: {