method Worker.addEventListener
Private
Worker.addEventListener<K extends keyof WorkerEventMap>(type: K,listener: (this: Worker,ev: WorkerEventMap[K],) => any,options?: boolean | AddEventListenerOptions,): void
K extends keyof WorkerEventMap
type: K
listener: (this: Worker,ev: WorkerEventMap[K],) => any
optional
options: boolean | AddEventListenerOptions
void
Worker.addEventListener(type: string,listener: EventListenerOrEventListenerObject,options?: boolean | AddEventListenerOptions,): void
listener: EventListenerOrEventListenerObject
optional
options: boolean | AddEventListenerOptions
void