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