mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-26 01:34:07 +00:00
Fix UI crash when selecting broken node + TS fixes (#3859)
This commit is contained in:
8
src/types/litegraph-augmentation.d.ts
vendored
8
src/types/litegraph-augmentation.d.ts
vendored
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user