Function addEventListener
- add
Event <K>(type, listener, options?): voidListener Type Parameters
- K extends keyof DedicatedWorkerGlobalScopeEventMap
Parameters
- type: K
- listener: ((this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any)
- (this, ev): any
Parameters
Returns any
Optional
options: boolean | AddEventListenerOptions
Returns void
- add
Event (type, listener, options?): voidListener Parameters
- type: string
- listener: EventListenerOrEventListenerObject
Optional
options: boolean | AddEventListenerOptions
Returns void