[Type] Mark app as required arg for ComfyWidgetConstructor (#2518)

This commit is contained in:
Chenlei Hu
2025-02-11 11:39:23 -05:00
committed by GitHub
parent efe7843469
commit 8db101c1cb
6 changed files with 12 additions and 9 deletions

View File

@@ -2,12 +2,13 @@ import type { LGraphNode } from '@comfyorg/litegraph'
import type { IStringWidget } from '@comfyorg/litegraph/dist/types/widgets'
import { api } from '@/scripts/api'
import type { ComfyWidgetConstructor } from '@/scripts/widgets'
import { useToastStore } from '@/stores/toastStore'
import type { ComfyApp } from '@/types'
import type { InputSpec } from '@/types/apiTypes'
export const useImageUploadWidget = () => {
const widgetConstructor = (
const widgetConstructor: ComfyWidgetConstructor = (
node: LGraphNode,
inputName: string,
inputData: InputSpec,