Add initial code for a conductor node plus tree sitter.

This commit is contained in:
rgthree
2025-07-19 21:54:33 -04:00
parent 944d5353a1
commit 930d98a0ff
16 changed files with 9008 additions and 15 deletions
+6 -5
View File
@@ -1,19 +1,20 @@
import type {ComfyApp} from "@comfyorg/frontend";
import type {IWidget, LGraphNode} from "@comfyorg/litegraph";
import type {IStringWidget, IComboWidget} from "@comfyorg/litegraph/dist/types/widgets";
type ComfyWidgetFn = (
type ComfyWidgetFn<WidgetType extends IWidget> = (
node: LGraphNode,
inputName: string,
inputData: any,
app: ComfyApp,
) => {widget: IWidget};
) => {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;
STRING: ComfyWidgetFn;
[key: string]: ComfyWidgetFn;
COMBO: ComfyWidgetFn<IComboWidget>;
STRING: ComfyWidgetFn<IStringWidget>;
[key: string]: ComfyWidgetFn<IWidget>;
};