source: trip-planner-front/node_modules/rxjs/internal/operators/mergeMap.d.ts

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

initial commit

  • Property mode set to 100644
File size: 2.0 KB
RevLine 
[6a3a178]1import { Operator } from '../Operator';
2import { Subscriber } from '../Subscriber';
3import { ObservableInput, OperatorFunction, ObservedValueOf } from '../types';
4import { SimpleOuterSubscriber } from '../innerSubscribe';
5export 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 */
7export 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 */
9export 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>;
10export 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 */
21export 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 */
39export declare const flatMap: typeof mergeMap;
Note: See TracBrowser for help on using the repository browser.