- fromEvent<TSource>(obj, eventName): AsyncIterable<TSource>
-
Parameters
-
obj: EventedTarget
-
eventName: string
- fromEvent<TSource>(obj, eventName, resultSelector): AsyncIterable<TSource>
-
Parameters
-
obj: EventedTarget
-
eventName: string
-
resultSelector: ((...args) => TSource)
-
- (...args): TSource
-
Returns TSource
- fromEvent<TSource>(obj, eventName, options): AsyncIterable<TSource>
-
Parameters
-
obj: EventedTarget
-
eventName: string
-
options: EventListenerOptions
- fromEvent<TSource>(obj, eventName, options, resultSelector): AsyncIterable<TSource>
-
Parameters
-
obj: EventedTarget
-
eventName: string
-
options: EventListenerOptions
-
resultSelector: ((...args) => TSource)
-
- (...args): TSource
-
Returns TSource