Include runtime types, otherwise ts goes crazy

This commit is contained in:
Marcel Mraz
2025-01-29 17:40:08 +01:00
parent d2fed34a30
commit 725c25c966
13 changed files with 4709 additions and 10 deletions
@@ -25,8 +25,8 @@ const load = (): Promise<{
return new Promise(async (resolve, reject) => {
try {
const module = await WebAssembly.instantiate(binary);
// @ts-expect-error
const harfbuzzJsWasm = module.instance.exports;
// @ts-expect-error since `.buffer` is custom prop
const heapu8 = new Uint8Array(harfbuzzJsWasm.memory.buffer);
const hbSubset = {