From 368b0de1b6e20ccd9e454725fc8e52ec6677cb49 Mon Sep 17 00:00:00 2001 From: Braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Fri, 10 Dec 2021 13:12:41 +0100 Subject: [PATCH] feat(types)!: extend Element generics to DataNode and DataEdge Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com> --- src/types/flow.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/types/flow.ts b/src/types/flow.ts index 8b40d721..f9a4581a 100644 --- a/src/types/flow.ts +++ b/src/types/flow.ts @@ -6,9 +6,9 @@ import { KeyCode, PanOnScrollMode } from './zoom' import { EdgeTypes, NodeTypes } from './components' export type ElementId = string -export type FlowElement = GraphNode | GraphEdge -export type FlowElements = FlowElement[] -export type Elements = (Node | Edge)[] +export type FlowElement = GraphNode | GraphEdge +export type FlowElements = FlowElement[] +export type Elements = (Node | Edge)[] export type NextElements = { nodes: GraphNode[]