subscribable.d.ts 402 B

12345678910111213
  1. declare type Listener = () => void;
  2. export declare class Subscribable<TListener extends Function = Listener> {
  3. protected listeners: Set<{
  4. listener: TListener;
  5. }>;
  6. constructor();
  7. subscribe(listener: TListener): () => void;
  8. hasListeners(): boolean;
  9. protected onSubscribe(): void;
  10. protected onUnsubscribe(): void;
  11. }
  12. export {};
  13. //# sourceMappingURL=subscribable.d.ts.map