Export types for frontend repo DTS (#353)

This commit is contained in:
Chenlei Hu
2024-11-27 19:13:59 -08:00
committed by GitHub
parent 8c0a868c9b
commit e981fa01a0

View File

@@ -44,13 +44,13 @@ export type INodeProperties = Dictionary<unknown> & {
horizontal?: boolean horizontal?: boolean
} }
interface IMouseOverData { export interface IMouseOverData {
inputId: number | null inputId: number | null
outputId: number | null outputId: number | null
overWidget: IWidget | null overWidget: IWidget | null
} }
interface ConnectByTypeOptions { export interface ConnectByTypeOptions {
/** @deprecated Events */ /** @deprecated Events */
createEventInCase?: boolean createEventInCase?: boolean
/** Allow our wildcard slot to connect to typed slots on remote node. Default: true */ /** 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 */ /** Internal type used for type safety when implementing generic checks for inputs & outputs */
interface IGenericLinkOrLinks { export interface IGenericLinkOrLinks {
links?: INodeOutputSlot["links"] links?: INodeOutputSlot["links"]
link?: INodeInputSlot["link"] link?: INodeInputSlot["link"]
} }
interface FindFreeSlotOptions { export interface FindFreeSlotOptions {
/** Slots matching these types will be ignored. Default: [] */ /** Slots matching these types will be ignored. Default: [] */
typesNotAccepted?: ISlotType[] typesNotAccepted?: ISlotType[]
/** If true, the slot itself is returned instead of the index. Default: false */ /** If true, the slot itself is returned instead of the index. Default: false */