fix(react): add missing FinalConnectionState parameter to onReconnectEnd prop types
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'@xyflow/react': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Add missing `FinalConnectionState` parameter to `onReconnectEnd` prop types
|
||||||
@@ -22,6 +22,7 @@ import type {
|
|||||||
SnapGrid,
|
SnapGrid,
|
||||||
OnReconnect,
|
OnReconnect,
|
||||||
AriaLabelConfig,
|
AriaLabelConfig,
|
||||||
|
FinalConnectionState,
|
||||||
} from '@xyflow/system';
|
} from '@xyflow/system';
|
||||||
|
|
||||||
import type {
|
import type {
|
||||||
@@ -138,7 +139,7 @@ export interface ReactFlowProps<NodeType extends Node = Node, EdgeType extends E
|
|||||||
* This event fires when the user releases the source or target of an editable edge. It is called
|
* This event fires when the user releases the source or target of an editable edge. It is called
|
||||||
* even if an edge update does not occur.
|
* even if an edge update does not occur.
|
||||||
*/
|
*/
|
||||||
onReconnectEnd?: (event: MouseEvent | TouchEvent, edge: EdgeType, handleType: HandleType) => void;
|
onReconnectEnd?: (event: MouseEvent | TouchEvent, edge: EdgeType, handleType: HandleType, connectionState: FinalConnectionState) => void;
|
||||||
/**
|
/**
|
||||||
* Use this event handler to add interactivity to a controlled flow.
|
* Use this event handler to add interactivity to a controlled flow.
|
||||||
* It is called on node drag, select, and move.
|
* It is called on node drag, select, and move.
|
||||||
|
|||||||
Reference in New Issue
Block a user