diff --git a/@types/DiagramSchema.ts b/@types/DiagramSchema.ts index 8261fc7..ea49775 100644 --- a/@types/DiagramSchema.ts +++ b/@types/DiagramSchema.ts @@ -1,4 +1,4 @@ -import { ElementType, ReactElement, ReactNode } from 'react'; +import { ElementType, HTMLAttributes, ReactElement, ReactNode } from 'react'; export type PortAlignment = 'right' | 'left' | 'top' | 'bottom'; @@ -26,7 +26,10 @@ export type Node

= { export type NodeRenderProps

= Omit< Node

, 'coordinates' | 'disableDrag' | 'inputs' | 'outputs' -> & { inputs: ReactElement[]; outputs: ReactElement[] }; +> & { + inputs: ReactElement>[]; + outputs: ReactElement>[]; +}; export type Link = { input: string;