Download custom_nodes/rgthree-comfy/src_web/scripts_comfy/widgets.ts from adrdctrl/VizhAi: direct link, hf CLI and curl.
- Browser
- Download file 543 Bytes
-
https://huggingface.co/datasets/adrdctrl/VizhAi/resolve/main/custom_nodes/rgthree-comfy/src_web/scripts_comfy/widgets.ts
- Command line
-
hf download hf://datasets/adrdctrl/VizhAi/custom_nodes/rgthree-comfy/src_web/scripts_comfy/widgets.ts
-
curl -L -o widgets.ts https://huggingface.co/datasets/adrdctrl/VizhAi/resolve/main/custom_nodes/rgthree-comfy/src_web/scripts_comfy/widgets.ts
543 Bytes
| import type {ComfyApp, IStringWidget, IComboWidget, IWidget, LGraphNode} from "@comfyorg/frontend"; | |
| type ComfyWidgetFn<WidgetType extends IWidget> = ( | |
| node: LGraphNode, | |
| inputName: string, | |
| inputData: any, | |
| app: ComfyApp, | |
| ) => {widget: WidgetType}; | |
| /** | |
| * A dummy ComfyWidgets that we can import from our code, which we'll rewrite later to the comfyui | |
| * hosted widgets.js | |
| */ | |
| export declare const ComfyWidgets: { | |
| COMBO: ComfyWidgetFn<IComboWidget>; | |
| STRING: ComfyWidgetFn<IStringWidget>; | |
| [key: string]: ComfyWidgetFn<IWidget>; | |
| }; | |