UNPKG

640 BTypeScriptView Raw
1import { Subject } from './Subject';
2import { Subscriber } from './Subscriber';
3import { Subscription } from './Subscription';
4/**
5 * A variant of Subject that only emits a value when it completes. It will emit
6 * its latest value to all its observers on completion.
7 *
8 * @class AsyncSubject<T>
9 */
10export declare class AsyncSubject<T> extends Subject<T> {
11 private value;
12 private hasNext;
13 private hasCompleted;
14 /** @deprecated This is an internal implementation detail, do not use. */
15 _subscribe(subscriber: Subscriber<any>): Subscription;
16 next(value: T): void;
17 error(error: any): void;
18 complete(): void;
19}