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

19 lines (17 loc) 684 B
/// <reference path="../../observable.ts" /> module Rx { export interface Observable<T> { /** * Repeats source as long as condition holds emulating a do while loop. * * @param {Function} condition The condition which determines if the source will be repeated. * @param {Observable} source The observable sequence that will be run if the condition function returns true. * @returns {Observable} An observable sequence which is repeated as long as the condition holds. */ doWhile(condition: () => boolean): Observable<T>; } } (function () { var o : Rx.Observable<string>; o = o.doWhile(() => false); });