diff --git a/.changeset/quick-carrots-allow.md b/.changeset/quick-carrots-allow.md new file mode 100644 index 00000000..960c3815 --- /dev/null +++ b/.changeset/quick-carrots-allow.md @@ -0,0 +1,5 @@ +--- +'@xyflow/react': patch +--- + +Type isValidConnection prop correctly by passing EdgeType diff --git a/packages/react/src/types/component-props.ts b/packages/react/src/types/component-props.ts index 623992b2..d04875d1 100644 --- a/packages/react/src/types/component-props.ts +++ b/packages/react/src/types/component-props.ts @@ -499,7 +499,7 @@ export interface ReactFlowProps true */ - isValidConnection?: IsValidConnection; + isValidConnection?: IsValidConnection; /** With a threshold greater than zero you can control the distinction between node drag and click events. * * If threshold equals 1, you need to drag the node 1 pixel before a drag event is fired.