import { concat as concatStatic } from '../observable/concat'; import { Observable } from '../Observable'; import { ObservableInput, OperatorFunction, MonoTypeOperatorFunction, SchedulerLike } from '../types'; /* tslint:disable:max-line-length */ /** @deprecated Deprecated in favor of static concat. */ export function concat(scheduler?: SchedulerLike): MonoTypeOperatorFunction; /** @deprecated Deprecated in favor of static concat. */ export function concat(v2: ObservableInput, scheduler?: SchedulerLike): OperatorFunction; /** @deprecated Deprecated in favor of static concat. */ export function concat(v2: ObservableInput, v3: ObservableInput, scheduler?: SchedulerLike): OperatorFunction; /** @deprecated Deprecated in favor of static concat. */ export function concat(v2: ObservableInput, v3: ObservableInput, v4: ObservableInput, scheduler?: SchedulerLike): OperatorFunction; /** @deprecated Deprecated in favor of static concat. */ export function concat(v2: ObservableInput, v3: ObservableInput, v4: ObservableInput, v5: ObservableInput, scheduler?: SchedulerLike): OperatorFunction; /** @deprecated Deprecated in favor of static concat. */ export function concat(v2: ObservableInput, v3: ObservableInput, v4: ObservableInput, v5: ObservableInput, v6: ObservableInput, scheduler?: SchedulerLike): OperatorFunction; /** @deprecated Deprecated in favor of static concat. */ export function concat(...observables: Array | SchedulerLike>): MonoTypeOperatorFunction; /** @deprecated Deprecated in favor of static concat. */ export function concat(...observables: Array | SchedulerLike>): OperatorFunction; /* tslint:enable:max-line-length */ /** * @deprecated Deprecated in favor of static {@link concat}. */ export function concat(...observables: Array | SchedulerLike>): OperatorFunction { return (source: Observable) => source.lift.call(concatStatic(source, ...observables)); }