From e981fa01a087c17c20f2e81ff94c9b21f3da37ce Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Wed, 27 Nov 2024 19:13:59 -0800 Subject: [PATCH] Export types for frontend repo DTS (#353) --- src/LGraphNode.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/LGraphNode.ts b/src/LGraphNode.ts index dd559773b..ce3af9030 100644 --- a/src/LGraphNode.ts +++ b/src/LGraphNode.ts @@ -44,13 +44,13 @@ export type INodeProperties = Dictionary & { horizontal?: boolean } -interface IMouseOverData { +export interface IMouseOverData { inputId: number | null outputId: number | null overWidget: IWidget | null } -interface ConnectByTypeOptions { +export interface ConnectByTypeOptions { /** @deprecated Events */ createEventInCase?: boolean /** Allow our wildcard slot to connect to typed slots on remote node. Default: true */ @@ -62,12 +62,12 @@ interface ConnectByTypeOptions { } /** Internal type used for type safety when implementing generic checks for inputs & outputs */ -interface IGenericLinkOrLinks { +export interface IGenericLinkOrLinks { links?: INodeOutputSlot["links"] link?: INodeInputSlot["link"] } -interface FindFreeSlotOptions { +export interface FindFreeSlotOptions { /** Slots matching these types will be ignored. Default: [] */ typesNotAccepted?: ISlotType[] /** If true, the slot itself is returned instead of the index. Default: false */