* Wrapper function for hello * @param {string} name * @returns
(name)
| 20 | * @returns |
| 21 | */ |
| 22 | async function hello_(name) { |
| 23 | const wasm = await import("./pkg/example_bg.wasm"); |
| 24 | const { __wbg_set_wasm, hello } = await import("./pkg/example_bg.js"); |
| 25 | |
| 26 | __wbg_set_wasm(wasm); |
| 27 | |
| 28 | return hello(name); |
| 29 | } |
| 30 | |
| 31 | globalThis.hello_ = hello_; |