watcher-ts/packages/graph-node/assembly/index.ts
Ashwin Phatak 1421ba5a9b WASM instance setup (#11)
* Code for running wasm file.

* Add test for wasm exported function.

* Use target names for build files.

Co-authored-by: nabarun <nabarun@deepstacksoft.com>
2021-12-28 16:08:04 +05:30

6 lines
109 B
TypeScript

// The entry file of your WebAssembly module.
export function add (a: i32, b: i32): i32 {
return a + b;
}