mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-07-16 23:02:12 +00:00
20 lines
375 B
TypeScript
20 lines
375 B
TypeScript
![]() |
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]
|
||
|
}
|