mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-28 18:54:09 +00:00
Type serialized NodeSlot (#605)
This commit is contained in:
@@ -40,6 +40,11 @@ export interface SerialisableGraph {
|
||||
extra?: Record<any, any>
|
||||
}
|
||||
|
||||
export type ISerialisedNodeInputSlot = Omit<INodeInputSlot, "_layoutElement"> & {
|
||||
widget?: { name?: string }
|
||||
}
|
||||
export type ISerialisedNodeOutputSlot = Omit<INodeOutputSlot, "_layoutElement" | "_data">
|
||||
|
||||
/** Serialised LGraphNode */
|
||||
export interface ISerialisedNode {
|
||||
title?: string
|
||||
@@ -50,8 +55,8 @@ export interface ISerialisedNode {
|
||||
flags?: INodeFlags
|
||||
order?: number
|
||||
mode?: number
|
||||
outputs?: INodeOutputSlot[]
|
||||
inputs?: INodeInputSlot[]
|
||||
outputs?: ISerialisedNodeOutputSlot[]
|
||||
inputs?: ISerialisedNodeInputSlot[]
|
||||
properties?: Dictionary<unknown>
|
||||
shape?: RenderShape
|
||||
boxcolor?: string
|
||||
|
||||
Reference in New Issue
Block a user