mirror of
https://github.com/fluencelabs/aqua.git
synced 2024-12-04 22:50:18 +00:00
21 lines
374 B
JavaScript
21 lines
374 B
JavaScript
//@ts-check
|
|
|
|
import { compileAquaCallFromPath } from '@fluencelabs/aqua-api'
|
|
|
|
// compile call
|
|
const compilationResult = await compileAquaCallFromPath({
|
|
filePath: 'test.aqua',
|
|
data: { num: 3 },
|
|
funcCall: 'getNumber(num)',
|
|
})
|
|
|
|
const {
|
|
errors,
|
|
functionCall: { funcDef, script },
|
|
functions,
|
|
generatedSources,
|
|
services,
|
|
} = compilationResult
|
|
|
|
console.log(script)
|