Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

123456789101112131415161718192021222324252627282930313233343536373839
  1. import { Operator } from '../Operator';
  2. import { Subscriber } from '../Subscriber';
  3. import { ObservableInput, OperatorFunction, ObservedValueOf } from '../types';
  4. import { SimpleOuterSubscriber } from '../innerSubscribe';
  5. export declare function mergeMap<T, O extends ObservableInput<any>>(project: (value: T, index: number) => O, concurrent?: number): OperatorFunction<T, ObservedValueOf<O>>;
  6. /** @deprecated resultSelector no longer supported, use inner map instead */
  7. export declare function mergeMap<T, O extends ObservableInput<any>>(project: (value: T, index: number) => O, resultSelector: undefined, concurrent?: number): OperatorFunction<T, ObservedValueOf<O>>;
  8. /** @deprecated resultSelector no longer supported, use inner map instead */
  9. export declare function mergeMap<T, R, O extends ObservableInput<any>>(project: (value: T, index: number) => O, resultSelector: (outerValue: T, innerValue: ObservedValueOf<O>, outerIndex: number, innerIndex: number) => R, concurrent?: number): OperatorFunction<T, R>;
  10. export declare class MergeMapOperator<T, R> implements Operator<T, R> {
  11. private project;
  12. private concurrent;
  13. constructor(project: (value: T, index: number) => ObservableInput<R>, concurrent?: number);
  14. call(observer: Subscriber<R>, source: any): any;
  15. }
  16. /**
  17. * We need this JSDoc comment for affecting ESDoc.
  18. * @ignore
  19. * @extends {Ignored}
  20. */
  21. export declare class MergeMapSubscriber<T, R> extends SimpleOuterSubscriber<T, R> {
  22. private project;
  23. private concurrent;
  24. private hasCompleted;
  25. private buffer;
  26. private active;
  27. protected index: number;
  28. constructor(destination: Subscriber<R>, project: (value: T, index: number) => ObservableInput<R>, concurrent?: number);
  29. protected _next(value: T): void;
  30. protected _tryNext(value: T): void;
  31. private _innerSub;
  32. protected _complete(): void;
  33. notifyNext(innerValue: R): void;
  34. notifyComplete(): void;
  35. }
  36. /**
  37. * @deprecated renamed. Use {@link mergeMap}
  38. */
  39. export declare const flatMap: typeof mergeMap;