Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

hooks: ({
    fn: ((original, ...args) => void);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Promise<string[]>);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Promise<string[]>);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Promise<ObjectInfo>);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => void);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Promise<QueuePrompt>);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Promise<{
        Pending: Record<string, unknown>[];
        Running: Record<string, unknown>[];
    }>);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Promise<{
        Pending: Record<string, unknown>[];
        Running: Record<string, unknown>[];
    }>);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Promise<{
        History: {
            outputs: Record<string, unknown>;
            prompt: [number, string, any, any, any];
            status: {
                completed: boolean;
                messages: any[];
                status_str: string;
            };
        }[];
    }>);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Promise<SystemStatsRoot>);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Promise<void>);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Promise<void>);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Promise<void>);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Promise<void>);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Promise<any>);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Promise<Response>);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Promise<Record<string, unknown>>);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Promise<unknown>);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Promise<Response>);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Promise<Response>);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Promise<Response>);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Promise<void>);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Promise<string[]>);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Promise<string[]>);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Promise<string[]>);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Promise<string[]>);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Promise<string[]>);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Promise<string[]>);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Promise<string[]>);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Promise<string[]>);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Promise<{
        done: boolean;
        pending: boolean;
        running: boolean;
    }>);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Promise<Record<string, unknown>>);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Promise<WorkflowOutput>);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Promise<void>);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Promise<WorkflowOutput<unknown>>);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Promise<{
        node_errors: any;
        number: number;
        prompt_id: string;
    }>);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Promise<WorkflowOutput<WorkflowOutput>>);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Promise<WorkflowOutput>);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Promise<WorkflowOutput>);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => (() => void));
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Promise<Response>);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => HeadersInit);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => string);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => string);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => string);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Promise<Response>);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => (() => void));
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => (() => void));
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => (() => void));
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => void);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => void);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => Client);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => void);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => void);
    name: keyof Client;
    type: "function";
} | {
    fn: ((original, ...args) => void);
    name: keyof Client;
    type: "function";
})[] = ...

Methods

  • Type Parameters

    • N extends keyof Client = keyof Client
    • Fn extends undefined | null | string | boolean | ((plugin) => void) | (() => Promise<string[]>) | (() => Promise<string[]>) | (() => Promise<ObjectInfo>) | (() => void) | ((queue_index, options) => Promise<QueuePrompt>) | {
          (type): Promise<{
              History: {
                  outputs: Record<string, unknown>;
                  prompt: [number, string, any, any, any];
                  status: {
                      completed: boolean;
                      messages: any[];
                      status_str: string;
                  };
              }[];
          }>;
          (type): Promise<{
              Pending: Record<string, unknown>[];
              Running: Record<string, unknown>[];
          }>;
      } | (() => Promise<{
          Pending: Record<string, unknown>[];
          Running: Record<string, unknown>[];
      }>) | ((max_items?) => Promise<{
          History: {
              outputs: Record<string, unknown>;
              prompt: [number, string, any, any, any];
              status: {
                  completed: boolean;
                  messages: any[];
                  status_str: string;
              };
          }[];
      }>) | (() => Promise<SystemStatsRoot>) | ((type, id) => Promise<void>) | ((type) => Promise<void>) | (() => Promise<void>) | ((params?) => Promise<void>) | (() => Promise<any>) | ((username) => Promise<Response>) | (() => Promise<Record<string, unknown>>) | ((id) => Promise<unknown>) | ((settings) => Promise<Response>) | ((id, value) => Promise<Response>) | ((file, options?) => Promise<Response>) | ((file, data, options?) => Promise<void>) | (() => Promise<string[]>) | (() => Promise<string[]>) | (() => Promise<string[]>) | (() => Promise<string[]>) | (() => Promise<string[]>) | (() => Promise<string[]>) | (() => Promise<string[]>) | (() => Promise<string[]>) | ((prompt_id) => Promise<{
          done: boolean;
          pending: boolean;
          running: boolean;
      }>) | ((prompt_id) => Promise<Record<string, unknown>>) | {
          <T>(prompt_id, resolver): Promise<WorkflowOutput<T>>;
          (prompt_id): Promise<WorkflowOutput>;
      } | ((prompt_id, polling_ms?) => Promise<void>) | (<T>(prompt_id, resolver) => Promise<WorkflowOutput<T>>) | ((prompt, options?) => Promise<{
          node_errors: any;
          number: number;
          prompt_id: string;
      }>) | ((prompt, options?) => Promise<WorkflowOutput<WorkflowOutput>>) | {
          <T>(prompt, options?): Promise<WorkflowOutput<T>>;
          (prompt, options?): Promise<WorkflowOutput>;
      } | {
          <T>(prompt, options?): Promise<WorkflowOutput<T>>;
          (prompt, options?): Promise<WorkflowOutput>;
      } | ((fn, task_id) => (() => void)) | WebSocket | {
          CLOSED: 3;
          CLOSING: 2;
          CONNECTING: 0;
          OPEN: 1;
          prototype: WebSocket;
          new (url, protocols?): WebSocket;
      } | {
          (input, init?): Promise<Response>;
          (input, init?): Promise<Response>;
      } | EventEmitter<ComfyUIClientEvents & Record<string & {}, any>, any> | (string & {} | (keyof ComfyUIClientEvents))[] | ((options?) => HeadersInit) | ((route) => string) | ((filename, subfolder, type) => string) | (() => string) | ((route, options?) => Promise<Response>) | (<T>(type, callback, options?) => (() => void)) | (<T>(type, callback, options?) => (() => void)) | (<T>(type, callback, options?) => (() => void)) | (() => void) | (() => void) | ((options?) => Client) | (() => void) | (() => void) | (() => void) = Client[N]

    Parameters

    • hook: FnHook<N, Fn>

    Returns void