Properties
onerror
Methods
addEventListener
- addEventListener<K>(type: K, listener: ((this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any), options?: boolean | AddEventListenerOptions): void
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void
Type Parameters
Parameters
type: K
Optional options: boolean | AddEventListenerOptions
Returns void
Parameters
type: string
listener: EventListenerOrEventListenerObject
Optional options: boolean | AddEventListenerOptions
Returns void
removeEventListener
- removeEventListener<K>(type: K, listener: ((this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any), options?: boolean | EventListenerOptions): void
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void
Type Parameters
Parameters
type: K
Optional options: boolean | EventListenerOptions
Returns void
Parameters
type: string
listener: EventListenerOrEventListenerObject
Optional options: boolean | EventListenerOptions
Returns void