toPromise.d.ts 215 Bytes Raw Blame History Permalink 1 2 3 import { Observable } from '../Observable'; export declare function toPromise<T>(this: Observable<T>): Promise<T>; export declare function toPromise<T>(this: Observable<T>, PromiseCtor: typeof Promise): Promise<T>;