Skip to Content
✨ Svelte Flow 1.0 is here! Rewritten for Svelte 5 with many new features and improvements.
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