IsValidConnection
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;This type can be used to type the isValidConnection function.
If the function returns true, the connection is valid and can be created.
Parameters
edge: EdgeType | Connection
Returns
boolean