UNPKG

597 BTypeScriptView Raw
1import { Subject } from './Subject';
2import { Subscriber } from './Subscriber';
3import { Subscription } from './Subscription';
4/**
5 * A variant of Subject that requires an initial value and emits its current
6 * value whenever it is subscribed to.
7 *
8 * @class BehaviorSubject<T>
9 */
10export declare class BehaviorSubject<T> extends Subject<T> {
11 private _value;
12 constructor(_value: T);
13 readonly value: T;
14 /** @deprecated This is an internal implementation detail, do not use. */
15 _subscribe(subscriber: Subscriber<T>): Subscription;
16 getValue(): T;
17 next(value: T): void;
18}