Files
aqua-playground/src/examples/funcsCall.ts

20 lines
375 B
TypeScript
Raw Normal View History

2022-03-25 14:44:48 +03:00
import {main, registerA, calc} from '../compiled/examples/funcs';
export async function funcsCall() {
registerA({
getJ: (n) => {
return n
}
})
let res1 = await main((c, arr) => {
console.log(c + ": " + arr)
})
let res2 = await calc((c, arr) => {
console.log(c + ": " + arr)
})
return [res1, res2]
}