[6a3a178] | 1 | import { merge as mergeStatic } from '../observable/merge';
|
---|
| 2 | import { Observable } from '../Observable';
|
---|
| 3 | import { ObservableInput, OperatorFunction, MonoTypeOperatorFunction, SchedulerLike } from '../types';
|
---|
| 4 |
|
---|
| 5 | /* tslint:disable:max-line-length */
|
---|
| 6 | /** @deprecated Deprecated in favor of static merge. */
|
---|
| 7 | export function merge<T>(scheduler?: SchedulerLike): MonoTypeOperatorFunction<T>;
|
---|
| 8 | /** @deprecated Deprecated in favor of static merge. */
|
---|
| 9 | export function merge<T>(concurrent?: number, scheduler?: SchedulerLike): MonoTypeOperatorFunction<T>;
|
---|
| 10 | /** @deprecated Deprecated in favor of static merge. */
|
---|
| 11 | export function merge<T, T2>(v2: ObservableInput<T2>, scheduler?: SchedulerLike): OperatorFunction<T, T | T2>;
|
---|
| 12 | /** @deprecated Deprecated in favor of static merge. */
|
---|
| 13 | export function merge<T, T2>(v2: ObservableInput<T2>, concurrent?: number, scheduler?: SchedulerLike): OperatorFunction<T, T | T2>;
|
---|
| 14 | /** @deprecated Deprecated in favor of static merge. */
|
---|
| 15 | export function merge<T, T2, T3>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, scheduler?: SchedulerLike): OperatorFunction<T, T | T2 | T3>;
|
---|
| 16 | /** @deprecated Deprecated in favor of static merge. */
|
---|
| 17 | export function merge<T, T2, T3>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, concurrent?: number, scheduler?: SchedulerLike): OperatorFunction<T, T | T2 | T3>;
|
---|
| 18 | /** @deprecated Deprecated in favor of static merge. */
|
---|
| 19 | export function merge<T, T2, T3, T4>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, scheduler?: SchedulerLike): OperatorFunction<T, T | T2 | T3 | T4>;
|
---|
| 20 | /** @deprecated Deprecated in favor of static merge. */
|
---|
| 21 | export function merge<T, T2, T3, T4>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, concurrent?: number, scheduler?: SchedulerLike): OperatorFunction<T, T | T2 | T3 | T4>;
|
---|
| 22 | /** @deprecated Deprecated in favor of static merge. */
|
---|
| 23 | export function merge<T, T2, T3, T4, T5>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>, scheduler?: SchedulerLike): OperatorFunction<T, T | T2 | T3 | T4 | T5>;
|
---|
| 24 | /** @deprecated Deprecated in favor of static merge. */
|
---|
| 25 | export function merge<T, T2, T3, T4, T5>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>, concurrent?: number, scheduler?: SchedulerLike): OperatorFunction<T, T | T2 | T3 | T4 | T5>;
|
---|
| 26 | /** @deprecated Deprecated in favor of static merge. */
|
---|
| 27 | export function merge<T, T2, T3, T4, T5, T6>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>, v6: ObservableInput<T6>, scheduler?: SchedulerLike): OperatorFunction<T, T | T2 | T3 | T4 | T5 | T6>;
|
---|
| 28 | /** @deprecated Deprecated in favor of static merge. */
|
---|
| 29 | export function merge<T, T2, T3, T4, T5, T6>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>, v6: ObservableInput<T6>, concurrent?: number, scheduler?: SchedulerLike): OperatorFunction<T, T | T2 | T3 | T4 | T5 | T6>;
|
---|
| 30 | /** @deprecated Deprecated in favor of static merge. */
|
---|
| 31 | export function merge<T>(...observables: Array<ObservableInput<T> | SchedulerLike | number>): MonoTypeOperatorFunction<T>;
|
---|
| 32 | /** @deprecated Deprecated in favor of static merge. */
|
---|
| 33 | export function merge<T, R>(...observables: Array<ObservableInput<any> | SchedulerLike | number>): OperatorFunction<T, R>;
|
---|
| 34 | /* tslint:enable:max-line-length */
|
---|
| 35 |
|
---|
| 36 | /**
|
---|
| 37 | * @deprecated Deprecated in favor of static {@link merge}.
|
---|
| 38 | */
|
---|
| 39 | export function merge<T, R>(...observables: Array<ObservableInput<any> | SchedulerLike | number>): OperatorFunction<T, R> {
|
---|
| 40 | return (source: Observable<T>) => source.lift.call(mergeStatic(source, ...observables));
|
---|
| 41 | }
|
---|