chore(core): update functional component types

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-02-22 20:20:11 +01:00
committed by Braks
parent cbc29e505d
commit aafd8622f4
4 changed files with 9 additions and 9 deletions
@@ -1,5 +1,5 @@
import { isNumber } from '@vueuse/core'
import type { FunctionalComponent } from 'vue'
import type { Component, FunctionalComponent } from 'vue'
import EdgeText from './EdgeText.vue'
import type { BaseEdgeProps } from '~/types'
@@ -41,7 +41,7 @@ const BaseEdge: FunctionalComponent<BaseEdgeProps> = function (
})
: null,
label && isNumber(labelX) && isNumber(labelY)
? h(EdgeText, {
? h(EdgeText as Component, {
x: labelX,
y: labelY,
label,