Files
aqua-playground/src/examples/funcsCall.ts
2022-04-12 16:08:24 +03:00

26 lines
518 B
TypeScript

import {main, registerA, calc, calc2, ifCalc} 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)
})
let res3 = await calc2((c, arr) => {
console.log(c + ": " + arr)
})
let res4 = await ifCalc()
return [res1, res2, res3, res4]
}