Download rgthree-comfy/src_web/scripts_comfy/widgets.ts from quangle97/comfyui-global-custom-nodes: direct link, hf CLI and curl.
- Browser
- Download file 486 Bytes
-
https://huggingface.co/quangle97/comfyui-global-custom-nodes/resolve/main/rgthree-comfy/src_web/scripts_comfy/widgets.ts
- Command line
-
hf download hf://quangle97/comfyui-global-custom-nodes/rgthree-comfy/src_web/scripts_comfy/widgets.ts
-
curl -L -o widgets.ts https://huggingface.co/quangle97/comfyui-global-custom-nodes/resolve/main/rgthree-comfy/src_web/scripts_comfy/widgets.ts
486 Bytes
| import type {ComfyApp} from "@comfyorg/frontend"; | |
| import type {IWidget, LGraphNode} from "@comfyorg/litegraph"; | |
| type ComfyWidgetFn = ( | |
| node: LGraphNode, | |
| inputName: string, | |
| inputData: any, | |
| app: ComfyApp, | |
| ) => {widget: IWidget}; | |
| /** | |
| * 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; | |
| STRING: ComfyWidgetFn; | |
| [key: string]: ComfyWidgetFn; | |
| }; | |