Fix UI crash when selecting broken node + TS fixes (#3859)

This commit is contained in:
filtered
2025-05-12 17:57:59 +10:00
committed by GitHub
parent b2f144c27b
commit 7144ec54aa
14 changed files with 65 additions and 59 deletions

View File

@@ -29,6 +29,12 @@ declare module '@comfyorg/litegraph/dist/types/widgets' {
* The minimum size of the node if the widget is present.
*/
minNodeSize?: Size
/** If the widget is advanced, this will be set to true. */
advanced?: boolean
/** If the widget is hidden, this will be set to true. */
hidden?: boolean
}
interface IBaseWidget {
@@ -60,7 +66,7 @@ declare module '@comfyorg/litegraph' {
type?: string
comfyClass: string
title: string
nodeData?: ComfyNodeDefV1 & ComfyNodeDefV2
nodeData?: ComfyNodeDefV1 & ComfyNodeDefV2 & { [key: symbol]: unknown }
category?: string
new (): T
}