Handle Properties

* id is used in an example
* isValidConnection has to take the connection argument to validate
This commit is contained in:
Andy
2020-05-14 19:26:24 +02:00
committed by GitHub
parent d2999515e4
commit 8b2640bd42
+2 -1
View File
@@ -16,7 +16,8 @@ interface HandleProps {
type: HandleType;
position: Position;
onConnect?: OnConnectFunc;
isValidConnection?: () => boolean;
isValidConnection?: (connection: Connection) => boolean;
id?: string;
}
const Handle = memo(