UNPKG

ajsfw

Version:
10 lines (9 loc) 357 B
import { IListener } from "./IListener"; import { INotifier } from "./INotifier"; export declare class Notifier<T> implements INotifier<T> { private __listeners; constructor(...listeners: IListener<T>[]); subscribe(listener: IListener<T>): void; unsubscribe(listener: IListener<T>): void; notify(sender: any, data?: T): void; }