interface AbstractWorker { onerror: null | ((this: AbstractWorker,
ev: ErrorEvent) => any); addEventListener<K>(type: K,
listener: ((this: AbstractWorker,
ev: AbstractWorkerEventMap[K]) => any),
options?: boolean | AddEventListenerOptions): void; addEventListener(type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions): void; removeEventListener<K>(type: K,
listener: ((this: AbstractWorker,
ev: AbstractWorkerEventMap[K]) => any),
options?: boolean | EventListenerOptions): void; removeEventListener(type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions): void; } Properties
onerror
Methods
addEventListener
- addEventListener<K>(type, listener, options?): void
Returns void
- addEventListener(type, listener, options?): void
Returns void
removeEventListener
- removeEventListener<K>(type, listener, options?): void
Returns void
- removeEventListener(type, listener, options?): void
Returns void
MDN Reference