Skip to content

Commit 8b2640b

Browse files
authored
Handle Properties
* id is used in an example * isValidConnection has to take the connection argument to validate
1 parent d299951 commit 8b2640b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/Handle/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ interface HandleProps {
1616
type: HandleType;
1717
position: Position;
1818
onConnect?: OnConnectFunc;
19-
isValidConnection?: () => boolean;
19+
isValidConnection?: (connection: Connection) => boolean;
20+
id?: string;
2021
}
2122

2223
const Handle = memo(

0 commit comments

Comments
 (0)