feat: Add WritableStreams (and enable ReadableStreams piping) (#4980)

This commit is contained in:
Kitson Kelly 2020-05-01 00:40:10 +10:00 committed by GitHub
parent 84d687e958
commit 81c75332fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 2094 additions and 212 deletions

View file

@ -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();