mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-17 08:16:37 +08:00
11 lines
321 B
TypeScript
11 lines
321 B
TypeScript
interface ComfyApi extends EventTarget {
|
|
api_base: string;
|
|
getNodeDefs(): any;
|
|
apiURL(url: string): string;
|
|
queuePrompt(num: number, data: { output: {}; workflow: {} }): Promise<{}>;
|
|
fetchApi(route: string, options?: RequestInit) : Promise<Response>;
|
|
interrupt(): void;
|
|
}
|
|
|
|
export declare const api: ComfyApi;
|