IEventEmitter interface is used as "any EventEmitter".

See EventEmitter for actual class documentation.

Methods

addListener<T>(eventName:Event<T>, listener:T):IEventEmitter

emit<T>(eventName:Event<T>, args:Rest<Dynamic>):Bool

listenerCount<T>(eventName:Event<T>):Int

listeners<T>(eventName:Event<T>):Array<T>

off<T>(eventName:Event<T>, listener:T):IEventEmitter

on<T>(eventName:Event<T>, listener:T):IEventEmitter

once<T>(eventName:Event<T>, listener:T):IEventEmitter

prependListener<T>(eventName:Event<T>, listener:T):IEventEmitter

prependOnceListener<T>(eventName:Event<T>, listener:T):IEventEmitter

rawListeners<T>(eventName:Event<T>):Array<T>

removeListener<T>(eventName:Event<T>, listener:T):IEventEmitter