chore(onbeforedelete): use correct node/edge types, pass generic

This commit is contained in:
moklick
2024-01-23 13:04:02 +01:00
parent 6c73ab9a45
commit 2e1bfc35c0
9 changed files with 23 additions and 9 deletions
@@ -23,7 +23,6 @@ import {
type OnConnectStart,
type OnConnectEnd,
type NodeLookup,
type OnBeforeDelete,
type EdgeLookup
} from '@xyflow/system';
@@ -47,7 +46,8 @@ import type {
Edge,
FitViewOptions,
OnDelete,
OnEdgeCreate
OnEdgeCreate,
OnBeforeDelete
} from '$lib/types';
import { createNodesStore, createEdgesStore } from './utils';
import { initConnectionProps, type ConnectionProps } from './derived-connection-props';