UNPKG

rxjs

Version:

Reactive Extensions for modern JavaScript

7 lines 349 B
import { Observable } from './Observable'; export interface FirstValueFromConfig<T> { defaultValue: T; } export declare function firstValueFrom<T, D>(source: Observable<T>, config: FirstValueFromConfig<D>): Promise<T | D>; export declare function firstValueFrom<T>(source: Observable<T>): Promise<T>; //# sourceMappingURL=firstValueFrom.d.ts.map