Also note that Vite has since removed types for *.wasm files. So you can now just add a proper .wasm.d.ts or .d.wasm.ts (With allowArbitraryExtensions) for them, or an a shorthand ambient declaration in a .d.ts file, if you really want to have any everywhere, to type the wasm module.
Also note that Vite has since removed types for
*.wasm
files. So you can now just add a proper.wasm.d.ts
or.d.wasm.ts
(WithallowArbitraryExtensions
) for them, or an a shorthand ambient declaration in a .d.ts file, if you really want to haveany
everywhere, to type the wasm module.