[Type] Mark name as required prop for IBaseWidget (#623)

This commit is contained in:
Chenlei Hu
2025-02-26 15:03:31 -05:00
committed by GitHub
parent d20aab757c
commit 963e4b0904
3 changed files with 5 additions and 3 deletions

View File

@@ -39,7 +39,7 @@ export function serializeSlot(slot: INodeInputSlot | INodeOutputSlot): ISerialis
_layoutElement: undefined,
_data: undefined,
pos: isWidgetInputSlot(slot) ? undefined : slot.pos,
widget: isWidgetInputSlot(slot) && slot.widget?.name ? { name: slot.widget.name } : undefined,
widget: isWidgetInputSlot(slot) ? { name: slot.widget.name } : undefined,
}, value => value === undefined) as ISerialisedNodeInputSlot | ISerialisedNodeOutputSlot
}