diff --git a/.changeset/tidy-hounds-divide.md b/.changeset/tidy-hounds-divide.md new file mode 100644 index 00000000..7de11f92 --- /dev/null +++ b/.changeset/tidy-hounds-divide.md @@ -0,0 +1,5 @@ +--- +'@xyflow/react': patch +--- + +Add missing `FinalConnectionState` parameter to `onReconnectEnd` prop types diff --git a/packages/react/src/types/component-props.ts b/packages/react/src/types/component-props.ts index fc8b94a6..483b727a 100644 --- a/packages/react/src/types/component-props.ts +++ b/packages/react/src/types/component-props.ts @@ -22,6 +22,7 @@ import type { SnapGrid, OnReconnect, AriaLabelConfig, + FinalConnectionState, } from '@xyflow/system'; import type { @@ -138,7 +139,7 @@ export interface ReactFlowProps void; + onReconnectEnd?: (event: MouseEvent | TouchEvent, edge: EdgeType, handleType: HandleType, connectionState: FinalConnectionState) => void; /** * Use this event handler to add interactivity to a controlled flow. * It is called on node drag, select, and move.