Type Parameters
K extends keyof WindowEventMap
Parameters
type: K
listener: (this: Window, ev: WindowEventMap[K]) => any
optional
options: boolean | AddEventListenerOptionsParameters
listener: EventListenerOrEventListenerObject
optional
options: boolean | AddEventListenerOptions