Front end of the Slack clone application.

mergeMapTo.d.ts 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. import { Observable, ObservableInput } from '../Observable';
  2. import { Operator } from '../Operator';
  3. import { Subscriber } from '../Subscriber';
  4. import { Subscription } from '../Subscription';
  5. import { OuterSubscriber } from '../OuterSubscriber';
  6. import { InnerSubscriber } from '../InnerSubscriber';
  7. import { OperatorFunction } from '../interfaces';
  8. export declare function mergeMapTo<T, R>(observable: ObservableInput<R>, concurrent?: number): OperatorFunction<T, R>;
  9. export declare function mergeMapTo<T, I, R>(observable: ObservableInput<I>, resultSelector: (outerValue: T, innerValue: I, outerIndex: number, innerIndex: number) => R, concurrent?: number): OperatorFunction<T, R>;
  10. export declare class MergeMapToOperator<T, I, R> implements Operator<Observable<T>, R> {
  11. private ish;
  12. private resultSelector;
  13. private concurrent;
  14. constructor(ish: ObservableInput<I>, resultSelector?: (outerValue: T, innerValue: I, outerIndex: number, innerIndex: number) => R, concurrent?: number);
  15. call(observer: Subscriber<R>, source: any): any;
  16. }
  17. /**
  18. * We need this JSDoc comment for affecting ESDoc.
  19. * @ignore
  20. * @extends {Ignored}
  21. */
  22. export declare class MergeMapToSubscriber<T, I, R> extends OuterSubscriber<T, I> {
  23. private ish;
  24. private resultSelector;
  25. private concurrent;
  26. private hasCompleted;
  27. private buffer;
  28. private active;
  29. protected index: number;
  30. constructor(destination: Subscriber<R>, ish: ObservableInput<I>, resultSelector?: (outerValue: T, innerValue: I, outerIndex: number, innerIndex: number) => R, concurrent?: number);
  31. protected _next(value: T): void;
  32. private _innerSub(ish, destination, resultSelector, value, index);
  33. protected _complete(): void;
  34. notifyNext(outerValue: T, innerValue: I, outerIndex: number, innerIndex: number, innerSub: InnerSubscriber<T, I>): void;
  35. private trySelectResult(outerValue, innerValue, outerIndex, innerIndex);
  36. notifyError(err: any): void;
  37. notifyComplete(innerSub: Subscription): void;
  38. }