Skip to Content
参考手册类型

IsValidConnection

GitHub 上的源代码 

¥Source on GitHub 

IsValidConnection 类型表示一个函数,用于验证节点之间是否允许连接。它接收一个 Connection 并返回一个布尔值,指示连接是否有效,因此是否应该创建连接。

¥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