Interface WorkerError<Data>

Worker error.

interface WorkerError {
    data?: Data;
    message: string;
    name: string;
}

Type Parameters

  • Data = unknown

    Type of data sent to the worker triggering an error. This can only be structured-cloneable data.

Properties

Properties

data?: Data

Data triggering the error.

message: string

Error message.

name: string

Task function name triggering the error.

Generated using TypeDoc