UNPKG

480 BTypeScriptView Raw
1import { Observable } from '../observer';
2/**
3 * Converts the async-iterable sequence to an observable.
4 *
5 * @export
6 * @template TSource The type of the elements in the source sequence.
7 * @param {AsyncIterable<TSource>} source The async-iterable to convert to an observable.
8 * @returns {Observable<TSource>} The observable containing the elements from the async-iterable.
9 */
10export declare function toObservable<TSource>(source: AsyncIterable<TSource>): Observable<TSource>;