wasmweb-sample/www/index.ts

8 lines
206 B
TypeScript
Raw Normal View History

// import * as wasm from "hello-wasm-pack";
import * as wasm from "./../pkg/wasmweb_sample"
2020-08-20 10:54:33 +07:00
2020-08-20 11:42:43 +07:00
wasm.greet()
2020-08-20 13:16:45 +07:00
wasm.log("[WEB] external logging...")
2020-08-20 15:27:50 +07:00
const sum = wasm.just_sum()
console.log("Sum of number", sum)