2022-01-21 08:28:41 +00:00
|
|
|
import { Subject } from './Subject';
|
2022-05-29 09:24:36 +00:00
|
|
|
import { Subscriber } from './Subscriber';
|
|
|
|
import { Subscription } from './Subscription';
|
2022-01-21 08:28:41 +00:00
|
|
|
/**
|
|
|
|
* A variant of Subject that requires an initial value and emits its current
|
|
|
|
* value whenever it is subscribed to.
|
|
|
|
*
|
|
|
|
* @class BehaviorSubject<T>
|
|
|
|
*/
|
|
|
|
export declare class BehaviorSubject<T> extends Subject<T> {
|
|
|
|
private _value;
|
|
|
|
constructor(_value: T);
|
2022-05-29 09:24:36 +00:00
|
|
|
readonly value: T;
|
|
|
|
/** @deprecated This is an internal implementation detail, do not use. */
|
|
|
|
_subscribe(subscriber: Subscriber<T>): Subscription;
|
2022-01-21 08:28:41 +00:00
|
|
|
getValue(): T;
|
|
|
|
next(value: T): void;
|
|
|
|
}
|