From b4506284810251cb71831d37f397346357179578 Mon Sep 17 00:00:00 2001 From: Adrien de Peretti Date: Mon, 8 Jul 2024 12:05:44 +0200 Subject: [PATCH] fix: error 4082 when using defineLink (#8014) --- packages/core/utils/src/modules-sdk/define-link.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/core/utils/src/modules-sdk/define-link.ts b/packages/core/utils/src/modules-sdk/define-link.ts index 6242d713729d7..bb287c6015e8d 100644 --- a/packages/core/utils/src/modules-sdk/define-link.ts +++ b/packages/core/utils/src/modules-sdk/define-link.ts @@ -4,6 +4,11 @@ import { composeLinkName } from "../link" export const DefineLinkSymbol = Symbol.for("DefineLink") +export interface DefineLinkExport { + [DefineLinkSymbol]: boolean + serviceName: string +} + type InputSource = { serviceName: string field: string @@ -62,7 +67,7 @@ export function defineLink( leftService: DefineLinkInputSource, rightService: DefineLinkInputSource, linkServiceOptions?: ExtraOptions -) { +): DefineLinkExport { let serviceAObj = {} as ModuleLinkableKeyConfig let serviceBObj = {} as ModuleLinkableKeyConfig