Open thdoan opened 8 months ago
I managed to fixed the error. Please update documentation to this:
const textEncoder = new TextEncoder();
const oneBlockInput = 'Hello🤖!'
// it takes a Uint8Array and returns a Uint8Array
const compressed = await compress(textEncoder.encode(oneBlockInput))
Given this code:
I'm getting this TypeScript error: Argument of type 'string' is not assignable to parameter of type 'Uint8Array'.