UNPKG

charlike

Version:

Small, fast, simple and streaming project scaffolder for myself, but not only. Supports hundreds of template engines through the @JSTransformers API or if you want custom `render` function passed through options

17 lines (15 loc) 517 B
/// <reference path="../../observable.ts" /> module Rx { export interface ObservableStatic { /** * Converts a Promise to an Observable sequence * @param {Promise} An ES6 Compliant promise. * @returns {Observable} An Observable sequence which wraps the existing promise success and failure. */ fromPromise<T>(promise: Promise<T>): Observable<T>; } } (function () { var p : Rx.Promise<string>; var o : Rx.Observable<string> = Rx.Observable.fromPromise(p); })