mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-20 14:54:12 +00:00
fix: extract WidgetCallbackOptions interface and add curly braces (#8791)
## Summary improve for https://github.com/Comfy-Org/ComfyUI_frontend/pull/8774 ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-8791-fix-extract-WidgetCallbackOptions-interface-and-add-curly-braces-3046d73d365081c49e37c0a2596f1958) by [Unito](https://www.unito.io)
This commit is contained in:
@@ -14,7 +14,8 @@ import type {
|
||||
} from '@/lib/litegraph/src/types/serialisation'
|
||||
import type {
|
||||
IBaseWidget,
|
||||
IComboWidget
|
||||
IComboWidget,
|
||||
WidgetCallbackOptions
|
||||
} from '@/lib/litegraph/src/types/widgets'
|
||||
import type { InputSpec } from '@/schemas/nodeDef/nodeDefSchemaV2'
|
||||
|
||||
@@ -84,7 +85,7 @@ export const getItemsColorOption = (items: unknown[]): ColorOption | null => {
|
||||
export function executeWidgetsCallback(
|
||||
nodes: LGraphNode[],
|
||||
callbackName: 'onRemove' | 'beforeQueued' | 'afterQueued',
|
||||
options?: { isPartialExecution?: boolean }
|
||||
options?: WidgetCallbackOptions
|
||||
) {
|
||||
for (const node of nodes) {
|
||||
for (const widget of node.widgets ?? []) {
|
||||
|
||||
Reference in New Issue
Block a user