Merge pull request #5294 from xyflow/fix/svelte-edge-data

Fix/svelte edge data
This commit is contained in:
Moritz Klack
2025-05-27 09:12:23 +02:00
committed by GitHub
2 changed files with 5 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
---
'@xyflow/svelte': patch
---
Fix data in EdgeProps not typed correctly

View File

@@ -85,8 +85,6 @@ export type EdgeProps<EdgeType extends Edge = Edge> = Omit<
'sourceHandle' | 'targetHandle'
> &
EdgePosition & {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
data?: any;
type: string;
markerStart?: string;
markerEnd?: string;