method Worker.addEventListener
Jump to headingWorker.addEventListener<K extends keyof WorkerEventMap>(type: K,listener: (this: Worker,ev: WorkerEventMap[K],) => any,options?: boolean | AddEventListenerOptions,): void
Type Parameters Jump to heading
Jump to headingK extends keyof WorkerEventMap
Parameters Jump to heading
Jump to headingtype: K
Jump to headinglistener: (this: Worker,ev: WorkerEventMap[K],) => any
optional
Jump to headingoptions: boolean | AddEventListenerOptions
Return Type Jump to heading
void
Jump to headingWorker.addEventListener(type: string,listener: EventListenerOrEventListenerObject,options?: boolean | AddEventListenerOptions,): void
Parameters Jump to heading
Jump to headingtype: string
optional
Jump to headingoptions: boolean | AddEventListenerOptions
Return Type Jump to heading
void