IEventEmitter interface is used as "any EventEmitter".
IEventEmitter
See EventEmitter for actual class documentation.
EventEmitter
addListener<T>(eventName:Event<T>, listener:T):IEventEmitter
emit<T>(eventName:Event<T>, args:Rest<Dynamic>):Bool
eventNames():Array<EitherType<String, Symbol>>
getMaxListeners():Int
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>
removeAllListeners<T>(?eventName:Event<T>):IEventEmitter
removeListener<T>(eventName:Event<T>, listener:T):IEventEmitter
setMaxListeners(n:Int):Void