Skip to content

Commit 6281ab4

Browse files
committed
fix build
1 parent b0eff31 commit 6281ab4

File tree

1 file changed

+3
-0
lines changed
  • packages/frame/src/runtime/editor/languages/typescript

1 file changed

+3
-0
lines changed

packages/frame/src/runtime/editor/languages/typescript/compress.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1+
/* eslint-disable @typescript-eslint/ban-ts-comment */
12
export function compress(blob: Blob) {
23
const compressedReadableStream = blob
34
.stream()
5+
// @ts-ignore
46
.pipeThrough(new CompressionStream("deflate"));
57
return new Response(compressedReadableStream).blob();
68
}
79

810
export async function decompress(blob: Blob) {
11+
// @ts-ignore
912
const ds = new DecompressionStream("deflate");
1013
const decompressedStream = blob.stream().pipeThrough(ds);
1114
return new Response(decompressedStream).blob();

0 commit comments

Comments
 (0)