interface AbstractWorker {
    onerror: null | ((this: AbstractWorker, ev: ErrorEvent) => any);
    addEventListener<K extends "error">(type: K, listener: ((this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any), options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends "error">(type: K, listener: ((this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any), options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

Hierarchy-Diagram

UML class diagram of AbstractWorker
Legend
icon for an interface in the UML class diagram interface
icon for a public property in the UML class diagram public property
icon for a public method in the UML class diagram public method

Hierarchy (view full)

Properties

onerror: null | ((this: AbstractWorker, ev: ErrorEvent) => any)

Type declaration

Methods