Interface HasEventTargetAddRemove<K, E>
Type parameters
-
K: keyof WindowEventMap
-
E
Methods
addEventListener
- addEventListener(type: K, listener: function | null, options?: boolean | AddEventListenerOptions): void
-
Parameters
-
type: K
-
listener: function | null
-
Optional options: boolean | AddEventListenerOptions
Returns void
removeEventListener
- removeEventListener(type: K, listener?: function | null, options?: EventListenerOptions | boolean): void
-
Parameters
-
type: K
-
Optional listener: function | null
-
Optional options: EventListenerOptions | boolean
Returns void