From fad79112c81b64e0207fe07a96cfeeaf8e16d0d9 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Fri, 16 Dec 2022 12:20:03 +0100 Subject: [PATCH] refactor(core): make handles optional in `addEdges` Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> --- packages/core/src/types/connection.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/types/connection.ts b/packages/core/src/types/connection.ts index 768ae316..f5b7d12e 100644 --- a/packages/core/src/types/connection.ts +++ b/packages/core/src/types/connection.ts @@ -28,9 +28,9 @@ export interface Connection { /** Target node id */ target: string /** Source handle id */ - sourceHandle: string | null + sourceHandle?: string | null /** Target handle id */ - targetHandle: string | null + targetHandle?: string | null } export type Connector = (