@reactivex/ix-esnext-esm
Version:
The Interactive Extensions for JavaScript
11 lines (10 loc) • 480 B
TypeScript
import { Observable } from '../observer';
/**
* Converts the async-iterable sequence to an observable.
*
* @export
* @template TSource The type of the elements in the source sequence.
* @param {AsyncIterable<TSource>} source The async-iterable to convert to an observable.
* @returns {Observable<TSource>} The observable containing the elements from the async-iterable.
*/
export declare function toObservable<TSource>(source: AsyncIterable<TSource>): Observable<TSource>;