1 import { Subscriber } from './Subscriber';
2 import { OuterSubscriber } from './OuterSubscriber';
5 * We need this JSDoc comment for affecting ESDoc.
9 export class InnerSubscriber<T, R> extends Subscriber<R> {
12 constructor(private parent: OuterSubscriber<T, R>, public outerValue: T, public outerIndex: number) {
16 protected _next(value: R): void {
17 this.parent.notifyNext(this.outerValue, value, this.outerIndex, this.index++, this);
20 protected _error(error: any): void {
21 this.parent.notifyError(error, this);
25 protected _complete(): void {
26 this.parent.notifyComplete(this);