/// module Rx { export interface ObservableStatic { /** * Repeats source as long as condition holds emulating a while loop. * There is an alias for this method called 'whileDo' for browsers (condition: () => boolean, source: ObservableOrPromise): Observable; /** * Repeats source as long as condition holds emulating a while loop. * There is an alias for this method called 'whileDo' for browsers (condition: () => boolean, source: ObservableOrPromise): Observable; } } (function () { var o :Rx.Observable; o = Rx.Observable.while(() => true, Rx.Observable.just(1)); });