From a1cc9da535aea7c3907e4eaf7fdebfc5701bcf58 Mon Sep 17 00:00:00 2001 From: Richard Schulz Date: Tue, 29 Nov 2022 17:24:34 +0100 Subject: [PATCH] Add generic support for the type property on the Node type --- packages/core/src/types/nodes.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/types/nodes.ts b/packages/core/src/types/nodes.ts index 39d8755c..4d4c66b1 100644 --- a/packages/core/src/types/nodes.ts +++ b/packages/core/src/types/nodes.ts @@ -5,11 +5,11 @@ import { internalsSymbol } from '../utils'; import type { XYPosition, Position, CoordinateExtent, HandleElement } from '.'; // interface for the user node items -export type Node = { +export type Node = { id: string; position: XYPosition; data: T; - type?: string; + type: U; style?: CSSProperties; className?: string; sourcePosition?: Position;