Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

zip.d.ts 4.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import { Observable } from '../Observable';
  2. import { Operator } from '../Operator';
  3. import { ObservableInput } from '../types';
  4. import { Subscriber } from '../Subscriber';
  5. /** @deprecated resultSelector is no longer supported, pipe to map instead */
  6. export declare function zip<T, R>(v1: ObservableInput<T>, resultSelector: (v1: T) => R): Observable<R>;
  7. /** @deprecated resultSelector is no longer supported, pipe to map instead */
  8. export declare function zip<T, T2, R>(v1: ObservableInput<T>, v2: ObservableInput<T2>, resultSelector: (v1: T, v2: T2) => R): Observable<R>;
  9. /** @deprecated resultSelector is no longer supported, pipe to map instead */
  10. export declare function zip<T, T2, T3, R>(v1: ObservableInput<T>, v2: ObservableInput<T2>, v3: ObservableInput<T3>, resultSelector: (v1: T, v2: T2, v3: T3) => R): Observable<R>;
  11. /** @deprecated resultSelector is no longer supported, pipe to map instead */
  12. export declare function zip<T, T2, T3, T4, R>(v1: ObservableInput<T>, v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, resultSelector: (v1: T, v2: T2, v3: T3, v4: T4) => R): Observable<R>;
  13. /** @deprecated resultSelector is no longer supported, pipe to map instead */
  14. export declare function zip<T, T2, T3, T4, T5, R>(v1: ObservableInput<T>, v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>, resultSelector: (v1: T, v2: T2, v3: T3, v4: T4, v5: T5) => R): Observable<R>;
  15. /** @deprecated resultSelector is no longer supported, pipe to map instead */
  16. export declare function zip<T, T2, T3, T4, T5, T6, R>(v1: ObservableInput<T>, v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>, v6: ObservableInput<T6>, resultSelector: (v1: T, v2: T2, v3: T3, v4: T4, v5: T5, v6: T6) => R): Observable<R>;
  17. export declare function zip<T, T2>(v1: ObservableInput<T>, v2: ObservableInput<T2>): Observable<[T, T2]>;
  18. export declare function zip<T, T2, T3>(v1: ObservableInput<T>, v2: ObservableInput<T2>, v3: ObservableInput<T3>): Observable<[T, T2, T3]>;
  19. export declare function zip<T, T2, T3, T4>(v1: ObservableInput<T>, v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>): Observable<[T, T2, T3, T4]>;
  20. export declare function zip<T, T2, T3, T4, T5>(v1: ObservableInput<T>, v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>): Observable<[T, T2, T3, T4, T5]>;
  21. export declare function zip<T, T2, T3, T4, T5, T6>(v1: ObservableInput<T>, v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>, v6: ObservableInput<T6>): Observable<[T, T2, T3, T4, T5, T6]>;
  22. export declare function zip<T>(array: ObservableInput<T>[]): Observable<T[]>;
  23. export declare function zip<R>(array: ObservableInput<any>[]): Observable<R>;
  24. /** @deprecated resultSelector is no longer supported, pipe to map instead */
  25. export declare function zip<T, R>(array: ObservableInput<T>[], resultSelector: (...values: Array<T>) => R): Observable<R>;
  26. /** @deprecated resultSelector is no longer supported, pipe to map instead */
  27. export declare function zip<R>(array: ObservableInput<any>[], resultSelector: (...values: Array<any>) => R): Observable<R>;
  28. export declare function zip<T>(...observables: Array<ObservableInput<T>>): Observable<T[]>;
  29. export declare function zip<T, R>(...observables: Array<ObservableInput<T> | ((...values: Array<T>) => R)>): Observable<R>;
  30. export declare function zip<R>(...observables: Array<ObservableInput<any> | ((...values: Array<any>) => R)>): Observable<R>;
  31. export declare class ZipOperator<T, R> implements Operator<T, R> {
  32. resultSelector: (...values: Array<any>) => R;
  33. constructor(resultSelector?: (...values: Array<any>) => R);
  34. call(subscriber: Subscriber<R>, source: any): any;
  35. }
  36. /**
  37. * We need this JSDoc comment for affecting ESDoc.
  38. * @ignore
  39. * @extends {Ignored}
  40. */
  41. export declare class ZipSubscriber<T, R> extends Subscriber<T> {
  42. private values;
  43. private resultSelector;
  44. private iterators;
  45. private active;
  46. constructor(destination: Subscriber<R>, resultSelector?: (...values: Array<any>) => R, values?: any);
  47. protected _next(value: any): void;
  48. protected _complete(): void;
  49. notifyInactive(): void;
  50. checkIterators(): void;
  51. protected _tryresultSelector(args: any[]): void;
  52. }