• Use the specHelper to run a task. Note: this will run a full Task worker, and will also include any middleware. This is slower than api.specHelper.runTask.

    Type Parameters

    • T extends void | Task = void

    Parameters

    • taskName: string
    • params: object | any[]

    Returns Promise<(T extends Task
        ? AsyncReturnType<T<T>["run"]>
        : {
            [key: string]: any;
        }) & {
        error?: string;
    }>