refactor(onConnect): param can be edge or connection

This commit is contained in:
moklick
2020-05-16 01:13:28 +02:00
parent a204834525
commit fcb0a3e9f1
3 changed files with 15 additions and 8 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ export interface GraphViewProps {
onElementClick: (element: Node | Edge) => void;
onElementsRemove: (elements: Elements) => void;
onNodeDragStop: (node: Node) => void;
onConnect: (conneciton: Connection) => void;
onConnect: (connection: Connection | Edge) => void;
onLoad: OnLoadFunc;
onMove: () => void;
selectionKeyCode: number;