Reference
bindEvent
Binds an event handler to an element and returns a disposer.
Signature
function bindEvent<K>(element: HTMLElement, type: K, handler: (event: HTMLElementEventMap[K]): void, options?: BindEventOptions): DisposeReference
Binds an event handler to an element and returns a disposer.
function bindEvent<K>(element: HTMLElement, type: K, handler: (event: HTMLElementEventMap[K]): void, options?: BindEventOptions): Dispose