Skip to Content
🚨 New Example: Handling Node Collisions!
ReferenceTypesIsValidConnection

IsValidConnection

Source on GitHub 

The IsValidConnection type is a function that determines whether a connection between nodes is valid. It receives an edge or connection object and returns a boolean indicating whether the connection is valid.

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