import { zip as zipStatic } from '../observable/zip'; import { ObservableInput, ObservableInputTuple, OperatorFunction, Cons } from '../types'; import { operate } from '../util/lift'; /** @deprecated Replaced with {@link zipWith}. Will be removed in v8. */ export function zip(otherInputs: [...ObservableInputTuple]): OperatorFunction>; /** @deprecated Replaced with {@link zipWith}. Will be removed in v8. */ export function zip( otherInputsAndProject: [...ObservableInputTuple], project: (...values: Cons) => R ): OperatorFunction; /** @deprecated Replaced with {@link zipWith}. Will be removed in v8. */ export function zip(...otherInputs: [...ObservableInputTuple]): OperatorFunction>; /** @deprecated Replaced with {@link zipWith}. Will be removed in v8. */ export function zip( ...otherInputsAndProject: [...ObservableInputTuple, (...values: Cons) => R] ): OperatorFunction; /** * @deprecated Replaced with {@link zipWith}. Will be removed in v8. */ export function zip(...sources: Array | ((...values: Array) => R)>): OperatorFunction { return operate((source, subscriber) => { zipStatic(source as ObservableInput, ...(sources as Array>)).subscribe(subscriber); }); }