expand.d.ts 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. import { Observable } from '../Observable';
  2. import { IScheduler } from '../Scheduler';
  3. import { Operator } from '../Operator';
  4. import { Subscriber } from '../Subscriber';
  5. import { Subscription } from '../Subscription';
  6. import { OuterSubscriber } from '../OuterSubscriber';
  7. import { InnerSubscriber } from '../InnerSubscriber';
  8. import { MonoTypeOperatorFunction, OperatorFunction } from '../interfaces';
  9. export declare function expand<T>(project: (value: T, index: number) => Observable<T>, concurrent?: number, scheduler?: IScheduler): MonoTypeOperatorFunction<T>;
  10. export declare function expand<T, R>(project: (value: T, index: number) => Observable<R>, concurrent?: number, scheduler?: IScheduler): OperatorFunction<T, R>;
  11. export declare class ExpandOperator<T, R> implements Operator<T, R> {
  12. private project;
  13. private concurrent;
  14. private scheduler;
  15. constructor(project: (value: T, index: number) => Observable<R>, concurrent: number, scheduler: IScheduler);
  16. call(subscriber: Subscriber<R>, source: any): any;
  17. }
  18. /**
  19. * We need this JSDoc comment for affecting ESDoc.
  20. * @ignore
  21. * @extends {Ignored}
  22. */
  23. export declare class ExpandSubscriber<T, R> extends OuterSubscriber<T, R> {
  24. private project;
  25. private concurrent;
  26. private scheduler;
  27. private index;
  28. private active;
  29. private hasCompleted;
  30. private buffer;
  31. constructor(destination: Subscriber<R>, project: (value: T, index: number) => Observable<R>, concurrent: number, scheduler: IScheduler);
  32. private static dispatch<T, R>(arg);
  33. protected _next(value: any): void;
  34. private subscribeToProjection(result, value, index);
  35. protected _complete(): void;
  36. notifyNext(outerValue: T, innerValue: R, outerIndex: number, innerIndex: number, innerSub: InnerSubscriber<T, R>): void;
  37. notifyComplete(innerSub: Subscription): void;
  38. }