Open Zerebokep opened 7 months ago
Thank you! I'll try dive in and fix these up when I can. PRs are also welcome 🙇
Thanks for your patience. Is this affecting your usage of the modules at all?
Typing this becomes difficult as it needs to be typed for the consuming environment. There might need to be different types depending on how it's being consumed due to WebAssembly being a non-standard import. E.g. Cloudflare resolves the import directly to a WebAssembly Module but there might be other bundlers or tools where this is not the case.
I'll leave this as is for now as I don't think there's an easy work-around.
Nope, I'll add // @ts-ignore
for now.
This is already the case in squoosh. The types where added manually (or generated somehow)
Original commit: https://github.com/GoogleChromeLabs/squoosh/commit/273b4211c9f9a9fcd8c5186332b0fb521b963479
title, https://github.com/jamsinclair/jSquash/blob/main/examples/cloudflare-worker-esm-format/src/index.js
PNG wasm seems to be fine.