Interface WorkerMethod

interface WorkerMethod {
    handler: ((model, ...args) => void | Promise<any>);
    name: string;
}

Properties

Properties

handler: ((model, ...args) => void | Promise<any>)

Type declaration

    • (model, ...args): void | Promise<any>
    • Parameters

      • model: Model<any, any>
      • Rest ...args: any[]

      Returns void | Promise<any>

name: string