mirror of
https://github.com/cerc-io/watcher-ts
synced 2026-09-07 16:34:06 +00:00
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>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
// The entry file of your WebAssembly module.
|
||||
|
||||
export function add (a: i32, b: i32): i32 {
|
||||
return a + b;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"extends": "assemblyscript/std/assembly.json",
|
||||
"include": [
|
||||
"./**/*.ts"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user