Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / rxjs / src / internal / OuterSubscriber.ts
1 import { Subscriber } from './Subscriber';
2 import { InnerSubscriber } from './InnerSubscriber';
3
4 /**
5  * We need this JSDoc comment for affecting ESDoc.
6  * @ignore
7  * @extends {Ignored}
8  */
9 export class OuterSubscriber<T, R> extends Subscriber<T> {
10   notifyNext(outerValue: T, innerValue: R,
11              outerIndex: number, innerIndex: number,
12              innerSub: InnerSubscriber<T, R>): void {
13     this.destination.next(innerValue);
14   }
15
16   notifyError(error: any, innerSub: InnerSubscriber<T, R>): void {
17     this.destination.error(error);
18   }
19
20   notifyComplete(innerSub: InnerSubscriber<T, R>): void {
21     this.destination.complete();
22   }
23 }