Type INodeOutputSlot widget hack on PrimitiveNode (#2728)

This commit is contained in:
Chenlei Hu
2025-02-25 19:34:23 -05:00
committed by GitHub
parent c20ea0c523
commit a784abef0d
2 changed files with 11 additions and 3 deletions

View File

@@ -148,6 +148,14 @@ declare module '@comfyorg/litegraph' {
/** Callback for pasting multiple files into the node */
pasteFiles?(files: File[]): void
}
/**
* Only used by the Primitive node. Primitive node is using the widget property
* to store/access the widget config.
* We should remove this hacky solution once we have a proper solution.
*/
interface INodeOutputSlot {
widget?: IWidget
}
}
/**