We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b7e9be commit 082dc82Copy full SHA for 082dc82
packages/frame/src/runtime/editor/languages/typescript/compress.ts
@@ -1,6 +1,7 @@
1
/* eslint-disable @typescript-eslint/ban-ts-comment */
2
export async function compress(text: string) {
3
const byteArray = new TextEncoder().encode(text)
4
+ // @ts-ignore
5
const cs = new CompressionStream("deflate")
6
const writer = cs.writable.getWriter()
7
writer.write(byteArray)
@@ -10,6 +11,7 @@ export async function compress(text: string) {
10
11
}
12
13
export async function decompress(bytes: ArrayBuffer) {
14
15
const cs = new DecompressionStream("deflate")
16
17
writer.write(bytes)
0 commit comments