fix: error 4082 when using defineLink (#8014)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user