| 11 | |
| 12 | // @rgthree: Types on ComfyApp as needed. |
| 13 | export interface ComfyApp { |
| 14 | extensions: ComfyExtension[]; |
| 15 | async queuePrompt(number?: number, batchCount = 1): Promise<void>; |
| 16 | graph: TLGraph; |
| 17 | canvas: TLGraphCanvas; |
| 18 | clean() : void; |
| 19 | registerExtension(extension: ComfyExtension): void; |
| 20 | getPreviewFormatParam(): string; |
| 21 | getRandParam(): string; |
| 22 | loadApiJson(apiData: {}, fileName: string): void; |
| 23 | async graphToPrompt(graph?: TLGraph, clean?: boolean): Promise<void>; |
| 24 | // workflow: ComfyWorkflowInstance ??? |
| 25 | async loadGraphData(graphData: {}, clean?: boolean, restore_view?: boolean, workflow?: any|null): Promise<void> |
| 26 | ui: { |
| 27 | settings: { |
| 28 | addSetting(config: {id: string, name: string, type: () => HTMLElement}) : void; |
| 29 | } |
| 30 | } |
| 31 | // Just marking as any for now. |
| 32 | menu?: any; |
| 33 | } |
| 34 | |
| 35 | export interface ComfyWidget extends IWidget { |
| 36 | // https://github.com/comfyanonymous/ComfyUI/issues/2193 Changes from SerializedLGraphNode to |
no outgoing calls
no test coverage detected