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,4 +1,4 @@
import type { FunctionalComponent } from 'vue'
import type { Component, FunctionalComponent } from 'vue'
import Handle from '../Handle/Handle.vue'
import type { NodeProps } from '~/types'
import { Position } from '~/types'
@@ -11,7 +11,7 @@ const InputNode: FunctionalComponent<NodeProps> = function ({
}) {
return [
typeof label !== 'string' && label ? h(label) : h('div', { innerHTML: label }),
h(Handle, { type: 'source', position: sourcePosition, connectable, isValidConnection: isValidSourcePos }),
h(Handle as Component, { type: 'source', position: sourcePosition, connectable, isValidConnection: isValidSourcePos }),
]
}