WorkflowOutput<D>: {
    data?: D;
    images: ({
        data: ArrayBuffer;
        mime: string;
        type: "buff";
    } | {
        data: string;
        type: "url";
    })[];
    prompt_id: string;
}

Type Parameters

  • D = unknown

Type declaration

  • Optional data?: D

    Allows for a custom resolver to be provided.

    The custom resolver can parse non-image data into the data property, supporting generics.

    Related: https://github.com/StableCanvas/comfyui-client/issues/10

  • images: ({
        data: ArrayBuffer;
        mime: string;
        type: "buff";
    } | {
        data: string;
        type: "url";
    })[]
  • prompt_id: string