Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

Commit 572f1e1

Browse files
author
Akim Mamedov
committed
Fix object type
1 parent 2550588 commit 572f1e1

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

packages/core/aqua-to-js-compiler/src/generate/service.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ import { ServiceDef } from '@fluencelabs/interfaces';
1818
import { recursiveRenameLaquaProps } from '../utils.js';
1919
import { TypeGenerator } from './interfaces.js';
2020

21-
interface DefaultServiceId {
22-
s_Some__f_value?: string
23-
}
24-
2521
export 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)

packages/core/interfaces/src/compilerSupport/aquaTypeDefinitions.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)