/// /// module Rx { export interface ObservableStatic { /** * Merges all the observable sequences into a single observable sequence. * The scheduler is optional and if not specified, the immediate scheduler is used. * @returns {Observable} The observable sequence that merges the elements of the observable sequences. */ merge(...sources: ObservableOrPromise[]): Observable; /** * Merges all the observable sequences into a single observable sequence. * The scheduler is optional and if not specified, the immediate scheduler is used. * @returns {Observable} The observable sequence that merges the elements of the observable sequences. */ merge(sources: ObservableOrPromise[]): Observable; /** * Merges all the observable sequences into a single observable sequence. * The scheduler is optional and if not specified, the immediate scheduler is used. * @returns {Observable} The observable sequence that merges the elements of the observable sequences. */ merge(scheduler: IScheduler, ...sources: ObservableOrPromise[]): Observable; /** * Merges all the observable sequences into a single observable sequence. * The scheduler is optional and if not specified, the immediate scheduler is used. * @returns {Observable} The observable sequence that merges the elements of the observable sequences. */ merge(scheduler: IScheduler, sources: ObservableOrPromise[]): Observable; } } (function() { var o: Rx.Observable; var p: Rx.Promise; o = Rx.Observable.merge(o, p, o, p); o = Rx.Observable.merge([o, p, o, p]); o = Rx.Observable.merge(Rx.Scheduler.async, o, p, o, p); o = Rx.Observable.merge(Rx.Scheduler.async, [o, p, o, p]); });