wasmweb-sample/www/index.ts
2020-08-20 15:27:50 +07:00

8 lines
206 B
TypeScript

// import * as wasm from "hello-wasm-pack";
import * as wasm from "./../pkg/wasmweb_sample"
wasm.greet()
wasm.log("[WEB] external logging...")
const sum = wasm.just_sum()
console.log("Sum of number", sum)