From 8b2640bd42f2fe107ce38194367d51ee786e28f4 Mon Sep 17 00:00:00 2001 From: Andy Date: Thu, 14 May 2020 19:26:24 +0200 Subject: [PATCH] Handle Properties * id is used in an example * isValidConnection has to take the connection argument to validate --- src/components/Handle/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Handle/index.tsx b/src/components/Handle/index.tsx index f7c2b9ca..459380aa 100644 --- a/src/components/Handle/index.tsx +++ b/src/components/Handle/index.tsx @@ -16,7 +16,8 @@ interface HandleProps { type: HandleType; position: Position; onConnect?: OnConnectFunc; - isValidConnection?: () => boolean; + isValidConnection?: (connection: Connection) => boolean; + id?: string; } const Handle = memo(