summaryrefslogtreecommitdiff
path: root/cli/js/web/fetch.ts
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2020-05-01 00:40:10 +1000
committerGitHub <noreply@github.com>2020-04-30 10:40:10 -0400
commit81c75332fbf2635f5275cc85053dc244f211471d (patch)
treeb0142c4dddf6f2ef2d6c48c0470e5bdfe822b499 /cli/js/web/fetch.ts
parent84d687e958ab93afb161def4a8ab47f8994307c9 (diff)
feat: Add WritableStreams (and enable ReadableStreams piping) (#4980)
Diffstat (limited to 'cli/js/web/fetch.ts')
-rw-r--r--cli/js/web/fetch.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/js/web/fetch.ts b/cli/js/web/fetch.ts
index cbedcabfd..38ca03aca 100644
--- a/cli/js/web/fetch.ts
+++ b/cli/js/web/fetch.ts
@@ -258,7 +258,7 @@ class Body
pipeThrough<T>(
_: {
- writable: domTypes.WritableStream<Uint8Array>;
+ writable: WritableStream<Uint8Array>;
readable: ReadableStream<T>;
},
_options?: PipeOptions
@@ -267,7 +267,7 @@ class Body
}
pipeTo(
- _dest: domTypes.WritableStream<Uint8Array>,
+ _dest: WritableStream<Uint8Array>,
_options?: PipeOptions
): Promise<void> {
return notImplemented();