This repository was archived by the owner on Jul 10, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
packages/core/aqua-wrapper/src/generate Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1515 */
1616
1717import { AquaFunction } from '@fluencelabs/aqua-api/aqua-api.js' ;
18- import { capitalize , getFuncArgs , recursiveRenameLaquaProps } from '../utils.js' ;
19- import { genTypeName } from '../common.js' ;
20- import { CLIENT } from '../constants.js' ;
18+ import { recursiveRenameLaquaProps } from '../utils.js' ;
2119import { TypeGenerator } from './interfaces.js' ;
2220
2321export class FunctionGenerator {
@@ -32,15 +30,15 @@ export class FunctionGenerator {
3230 private generateFunction ( func : AquaFunction ) {
3331 const scriptConstName = func . funcDef . functionName + '_script' ;
3432 return `export const ${ scriptConstName } = \`
35- ${ func . script } \`
33+ ${ func . script } \`;
3634
3735${ this . typeGenerator . funcType ( func ) }
3836export function ${ func . funcDef . functionName } (${ this . typeGenerator . type ( '...args' , 'any[]' ) } ) {
3937 return callFunction$$(
4038 args,
4139 ${ JSON . stringify ( recursiveRenameLaquaProps ( func . funcDef ) , null , 4 ) } ,
4240 ${ scriptConstName }
43- )
41+ );
4442}`
4543 }
4644}
You can’t perform that action at this time.
0 commit comments