fix: error 4082 when using defineLink (#8014)
This commit is contained in:
1 parent
f1a860675c
commit
b450628481
1 file changed
+6
-1
@@ -4,6 +4,11 @@ import { composeLinkName } from "../link"
|
|||||||
|
|
||||||
export const DefineLinkSymbol = Symbol.for("DefineLink")
|
export const DefineLinkSymbol = Symbol.for("DefineLink")
|
||||||
|
|
||||||
|
export interface DefineLinkExport {
|
||||||
|
[DefineLinkSymbol]: boolean
|
||||||
|
serviceName: string
|
||||||
|
}
|
||||||
|
|
||||||
type InputSource = {
|
type InputSource = {
|
||||||
serviceName: string
|
serviceName: string
|
||||||
field: string
|
field: string
|
||||||
@@ -62,7 +67,7 @@ export function defineLink(
|
|||||||
leftService: DefineLinkInputSource,
|
leftService: DefineLinkInputSource,
|
||||||
rightService: DefineLinkInputSource,
|
rightService: DefineLinkInputSource,
|
||||||
linkServiceOptions?: ExtraOptions
|
linkServiceOptions?: ExtraOptions
|
||||||
) {
|
): DefineLinkExport {
|
||||||
let serviceAObj = {} as ModuleLinkableKeyConfig
|
let serviceAObj = {} as ModuleLinkableKeyConfig
|
||||||
let serviceBObj = {} as ModuleLinkableKeyConfig
|
let serviceBObj = {} as ModuleLinkableKeyConfig
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user