toPromise.ts 250 Bytes Edit Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 import { Observable } from '../../Observable'; import { toPromise } from '../../operator/toPromise'; Observable.prototype.toPromise = toPromise; declare module '../../Observable' { interface Observable<T> { toPromise: typeof toPromise; } }