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;