UNPKG

mindee

Version:

Mindee Client Library for Node.js

18 lines (17 loc) 621 B
import { StringDict } from "./stringDict"; import { ApiResponse } from "./apiResponse"; import { Execution } from "./execution"; import { Inference } from "./inference"; /** Wrapper for workflow requests. * * @category API Response * @category Workflow */ export declare class WorkflowResponse<T extends Inference> extends ApiResponse { /** * Set the prediction model used to parse the document. * The response object will be instantiated based on this parameter. */ execution: Execution<T>; constructor(inferenceClass: new (serverResponse: StringDict) => T, serverResponse: StringDict); }