Improve dispoable listener functions

This commit is contained in:
Daniel Imms
2018-01-14 13:18:00 -08:00
parent 70489e5035
commit 85c02f10bf
4 changed files with 65 additions and 27 deletions
+1
View File
@@ -244,6 +244,7 @@ export interface IEventEmitter {
on(type: string, listener: IListenerType): void;
off(type: string, listener: IListenerType): void;
emit(type: string, data?: any): void;
addDisposableListener(type: string, handler: IListenerType): IDisposable;
}
export interface IListenerType {