Builder interface for creating Task instances.

interface TaskBuilder<TSpec extends TaskSpec = TaskSpec> {
    id: string;
    taskName: string;
    is(task: unknown): task is Task<TSpec>;
    toString(pretty?: boolean): string;
    (data: TSpec["TData"]): Task<TSpec>;
}

Type Parameters

Hierarchy (View Summary)

Properties

Methods

Properties

id: string

Unique identifier for the task builder.

taskName: string

Name of the task.

Methods

  • String representation of the task builder.

    Parameters

    • Optionalpretty: boolean

      If true, outputs a prettified string.

    Returns string

    String representing the task builder.