UNPKG

@lifaon/rx-js-light

Version:

Blazing fast Observables

8 lines (7 loc) 418 B
import { IObservable } from '../../../../../type/observable.type'; import { IFromPromiseObservableNotifications } from './from-promise-observable-notifications.type'; /** * Creates an Observable from a Promise * INFO: prefer to use fromPromiseFactory to cancel any pending async job */ export declare function fromPromise<GValue>(promise: Promise<GValue>): IObservable<IFromPromiseObservableNotifications<GValue>>;