mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-08 09:00:05 +00:00
Type INodeOutputSlot widget hack on PrimitiveNode (#2728)
This commit is contained in:
8
src/types/litegraph-augmentation.d.ts
vendored
8
src/types/litegraph-augmentation.d.ts
vendored
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user