MCPcopy
hub / github.com/crystian/ComfyUI-Crystools / ComfyApp

Interface ComfyApp

web/comfy/typings/comfy.d.ts:13–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12// @rgthree: Types on ComfyApp as needed.
13export 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
35export interface ComfyWidget extends IWidget {
36 // https://github.com/comfyanonymous/ComfyUI/issues/2193 Changes from SerializedLGraphNode to

Callers 10

extensions.tsFile · 0.80
monitor.jsFile · 0.80
progressBar.tsFile · 0.80
debugger.jsFile · 0.80
progressBar.jsFile · 0.80
monitor.tsFile · 0.80
debugger.tsFile · 0.80
extensions.jsFile · 0.80
constructorMethod · 0.80
MetadataNodeClass · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected