summaryrefslogtreecommitdiff
path: root/ext/web/lib.deno_web.d.ts
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2022-01-24 18:03:06 +0100
committerGitHub <noreply@github.com>2022-01-24 18:03:06 +0100
commit30ddf436d0d48ce0f9238f1728bc83aa4c6dddad (patch)
tree92cb750fe2a2beaf9b5884530bb3419ddee54cb4 /ext/web/lib.deno_web.d.ts
parentae0414fa3581d76af44192567d73dce987c69b9d (diff)
feat(ext/web): add CompressionStream API (#11728)
Co-authored-by: Luca Casonato <hello@lcas.dev> Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
Diffstat (limited to 'ext/web/lib.deno_web.d.ts')
-rw-r--r--ext/web/lib.deno_web.d.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/web/lib.deno_web.d.ts b/ext/web/lib.deno_web.d.ts
index ce20f08b1..1233b842f 100644
--- a/ext/web/lib.deno_web.d.ts
+++ b/ext/web/lib.deno_web.d.ts
@@ -809,3 +809,17 @@ declare function structuredClone(
value: any,
options?: StructuredSerializeOptions,
): any;
+
+declare class CompressionStream {
+ constructor(format: string);
+
+ readonly readable: ReadableStream<Uint8Array>;
+ readonly writable: WritableStream<Uint8Array>;
+}
+
+declare class DecompressionStream {
+ constructor(format: string);
+
+ readonly readable: ReadableStream<Uint8Array>;
+ readonly writable: WritableStream<Uint8Array>;
+}