Function onDomEventBy

  • Converts a plain DOM event listener registration function to OnDomEvent sender.

    Type Parameters

    • TEvent extends Event<TEvent>

      Supported DOM event type.

    Parameters

    • register: ((this, listener, opts?) => void)

      A generic DOM event listener registration function.

        • (this, listener, opts?): void
        • Parameters

          • this: void
          • listener: Generic<[TEvent]>
          • Optional opts: boolean | AddEventListenerOptions

          Returns void

    Returns OnDomEvent<TEvent>

    An OnDomEvent sender registering event listeners with the given register function.

Generated using TypeDoc