mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
19 lines
597 B
TypeScript
19 lines
597 B
TypeScript
import { Subject } from './Subject';
|
|
import { Subscriber } from './Subscriber';
|
|
import { Subscription } from './Subscription';
|
|
/**
|
|
* 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);
|
|
readonly value: T;
|
|
/** @deprecated This is an internal implementation detail, do not use. */
|
|
_subscribe(subscriber: Subscriber<T>): Subscription;
|
|
getValue(): T;
|
|
next(value: T): void;
|
|
}
|