Function fromDom

  • Convert DOM events to an async iterable iterator.

    Type Parameters

    • T extends keyof GlobalEventHandlersEventMap

    Parameters

    Returns ((type, target, options?) => AsyncIterableIterator<GlobalEventHandlersEventMap[T]>)

      • (type, target, options?): AsyncIterableIterator<GlobalEventHandlersEventMap[T]>
      • Parameters

        • type: T
        • target: Target<T, Listener<T>, boolean | AddEventListenerOptions>
        • Optional options: boolean | AddEventListenerOptions

        Returns AsyncIterableIterator<GlobalEventHandlersEventMap[T]>

Generated using TypeDoc