Type Alias TaskErrorHandler<TInput>

TaskErrorHandler: (error: string, input: TInput, index: number) => void

A function that is called when a task fails.

Type Parameters

  • TInput

    The type of the input.

Type declaration

    • (error: string, input: TInput, index: number): void
    • Parameters

      • error: string

        The message of the error that occurred during the task.

      • input: TInput

        The input that was passed to the task.

      • index: number

        The index of the task in the order of the original input data.

      Returns void