@bodil/core - v0.4.0
    Preparing search index...

    Function eventListener

    • Attach an event listener to an EventTarget and return a Disposable which will remove the listener when disposed.

      Type Parameters

      Parameters

      • target: T
      • type: K
      • callback: (e: M[K]) => any
      • Optionaloptions: boolean | AddEventListenerOptions

      Returns Disposable