update(types!): Merge EdgeProps into Edge type

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-11-16 17:45:01 +01:00
parent 525a1880b6
commit 413c7ac688
8 changed files with 36 additions and 56 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
<script lang="ts" setup>
import { ArrowHeadType, ElementId, getBezierPath, getMarkerEnd, Position, EdgeProps } from '~/index'
interface CustomEdgeProps<T = any> extends EdgeProps<T> {
interface CustomEdgeProps<T = { text: string }> extends EdgeProps<T> {
source: ElementId
target: ElementId
sourceHandleId?: ElementId