1 2 3 4 5 6 7 8
import mod from './add.wasm'; const addModule: any = new WebAssembly.Instance(mod); export function add(a, b) { return addModule.exports.add(a, b); }