mirror of
https://github.com/hanzoai/agency.git
synced 2026-11-02 19:13:28 +00:00
11 lines
294 B
Plaintext
11 lines
294 B
Plaintext
declare class Subscribable<TListener extends Function> {
|
|
protected listeners: Set<TListener>;
|
|
constructor();
|
|
subscribe(listener: TListener): () => void;
|
|
hasListeners(): boolean;
|
|
protected onSubscribe(): void;
|
|
protected onUnsubscribe(): void;
|
|
}
|
|
|
|
export { Subscribable };
|