Update serialisation.ts (#624)

Update ISerialisedNodeInputSlot.widget type. Overwrite original widget
prop type.
This commit is contained in:
Chenlei Hu
2025-02-26 16:40:36 -05:00
committed by GitHub
parent fbcc396880
commit e8c238b70e

View File

@@ -40,7 +40,7 @@ export interface SerialisableGraph {
extra?: Record<any, any>
}
export type ISerialisedNodeInputSlot = Omit<INodeInputSlot, "_layoutElement"> & {
export type ISerialisedNodeInputSlot = Omit<INodeInputSlot, "_layoutElement" | "widget"> & {
widget?: { name: string }
}
export type ISerialisedNodeOutputSlot = Omit<INodeOutputSlot, "_layoutElement" | "_data">