Skip to Content
React Flow Pro is now integrated into reactflow.dev! Read more here →
ReferenceTypes

IsValidConnection

Source on GitHub 

The IsValidConnection type represents a function that validates whether a connection between nodes is allowed. It receives a Connection and returns a boolean indicating whether the connection is valid and therefore should be created.

type IsValidConnection = (edge: Edge | Connection) => boolean;
Parameters:
NameTypeDefault
edgeEdgeType | Connection
Returns:
boolean
Last updated on