source: trip-planner-front/node_modules/rxjs/src/internal/operators/zip.ts@ 8d391a1

Last change on this file since 8d391a1 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 3.3 KB
Line 
1import { zip as zipStatic } from '../observable/zip';
2import { Observable } from '../Observable';
3import { ObservableInput, OperatorFunction } from '../types';
4
5/* tslint:disable:max-line-length */
6/** @deprecated Deprecated in favor of static zip. */
7export function zip<T, R>(project: (v1: T) => R): OperatorFunction<T, R>;
8/** @deprecated Deprecated in favor of static zip. */
9export 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. */
11export 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. */
13export 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. */
15export 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. */
17export 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. */
19export function zip<T, T2>(v2: ObservableInput<T2>): OperatorFunction<T, [T, T2]>;
20/** @deprecated Deprecated in favor of static zip. */
21export function zip<T, T2, T3>(v2: ObservableInput<T2>, v3: ObservableInput<T3>): OperatorFunction<T, [T, T2, T3]>;
22/** @deprecated Deprecated in favor of static zip. */
23export 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. */
25export 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. */
27export 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. */
29export function zip<T, R>(...observables: Array<ObservableInput<T> | ((...values: Array<T>) => R)>): OperatorFunction<T, R>;
30/** @deprecated Deprecated in favor of static zip. */
31export function zip<T, R>(array: Array<ObservableInput<T>>): OperatorFunction<T, R>;
32/** @deprecated Deprecated in favor of static zip. */
33export 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 */
39export 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}
Note: See TracBrowser for help on using the repository browser.