This repository was archived by the owner on Jul 10, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
aqua-to-js-compiler/src/generate
interfaces/src/compilerSupport Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,6 @@ import { ServiceDef } from '@fluencelabs/interfaces';
1818import { recursiveRenameLaquaProps } from '../utils.js' ;
1919import { TypeGenerator } from './interfaces.js' ;
2020
21- interface DefaultServiceId {
22- s_Some__f_value ?: string
23- }
24-
2521export class ServiceGenerator {
2622 constructor (
2723 private typeGenerator : TypeGenerator
@@ -54,8 +50,8 @@ export class ServiceGenerator {
5450 private serviceToJson ( service : ServiceDef ) : string {
5551 return JSON . stringify ( {
5652 ...(
57- ( service . defaultServiceId as DefaultServiceId ) ? .s_Some__f_value
58- ? { defaultServiceId : ( service . defaultServiceId as DefaultServiceId ) . s_Some__f_value }
53+ service . defaultServiceId . s_Some__f_value
54+ ? { defaultServiceId : service . defaultServiceId . s_Some__f_value }
5955 : { }
6056 ) ,
6157 functions : recursiveRenameLaquaProps ( service . functions )
Original file line number Diff line number Diff line change @@ -229,7 +229,9 @@ export interface ServiceDef {
229229 /**
230230 * Default service id. If the service has no default id the value should be undefined
231231 */
232- defaultServiceId ?: { } ;
232+ defaultServiceId : {
233+ s_Some__f_value ?: string
234+ } ;
233235
234236 /**
235237 * List of functions which the service consists of
You can’t perform that action at this time.
0 commit comments