summaryrefslogtreecommitdiff
path: root/ext/web/lib.deno_web.d.ts
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2022-10-27 00:53:48 +1100
committerGitHub <noreply@github.com>2022-10-26 15:53:48 +0200
commita0d10efbb1acffe203c42a4f6133ba5af0dcef18 (patch)
tree32a6f47dc717164988dce783dfa73a13d24bc702 /ext/web/lib.deno_web.d.ts
parent5d45d2a7e0f5fef6323adcdda40fdadf7b1e87ad (diff)
chore: improve built-in API documentation (#16158)
Co-authored-by: crowlkats <crowlkats@toaxl.com> Co-authored-by: Colin Ihrig <cjihrig@gmail.com> Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Diffstat (limited to 'ext/web/lib.deno_web.d.ts')
-rw-r--r--ext/web/lib.deno_web.d.ts11
1 files changed, 4 insertions, 7 deletions
diff --git a/ext/web/lib.deno_web.d.ts b/ext/web/lib.deno_web.d.ts
index 2326a0f4e..bc1f6b471 100644
--- a/ext/web/lib.deno_web.d.ts
+++ b/ext/web/lib.deno_web.d.ts
@@ -671,13 +671,10 @@ interface ReadableStream<R = any> {
cancel(reason?: any): Promise<void>;
getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
getReader(options?: { mode?: undefined }): ReadableStreamDefaultReader<R>;
- pipeThrough<T>(
- { writable, readable }: {
- writable: WritableStream<R>;
- readable: ReadableStream<T>;
- },
- options?: PipeOptions,
- ): ReadableStream<T>;
+ pipeThrough<T>(transform: {
+ writable: WritableStream<R>;
+ readable: ReadableStream<T>;
+ }, options?: PipeOptions): ReadableStream<T>;
pipeTo(dest: WritableStream<R>, options?: PipeOptions): Promise<void>;
tee(): [ReadableStream<R>, ReadableStream<R>];
[Symbol.asyncIterator](options?: {