mirror of
https://github.com/fluencelabs/fluence-js.git
synced 2025-06-27 06:41:32 +00:00
Small formatting fixes
This commit is contained in:
@ -15,9 +15,7 @@
|
||||
*/
|
||||
|
||||
import { AquaFunction } from '@fluencelabs/aqua-api/aqua-api.js';
|
||||
import { capitalize, getFuncArgs, recursiveRenameLaquaProps } from '../utils.js';
|
||||
import { genTypeName } from '../common.js';
|
||||
import { CLIENT } from '../constants.js';
|
||||
import { recursiveRenameLaquaProps } from '../utils.js';
|
||||
import { TypeGenerator } from './interfaces.js';
|
||||
|
||||
export class FunctionGenerator {
|
||||
@ -32,7 +30,7 @@ export class FunctionGenerator {
|
||||
private generateFunction(func: AquaFunction) {
|
||||
const scriptConstName = func.funcDef.functionName + '_script';
|
||||
return `export const ${scriptConstName} = \`
|
||||
${func.script}\`
|
||||
${func.script}\`;
|
||||
|
||||
${this.typeGenerator.funcType(func)}
|
||||
export function ${func.funcDef.functionName}(${this.typeGenerator.type('...args', 'any[]')}) {
|
||||
@ -40,7 +38,7 @@ export function ${func.funcDef.functionName}(${this.typeGenerator.type('...args'
|
||||
args,
|
||||
${JSON.stringify(recursiveRenameLaquaProps(func.funcDef), null, 4)},
|
||||
${scriptConstName}
|
||||
)
|
||||
);
|
||||
}`
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user