eventemitter2: listener arg to offAny is optional

This commit is contained in:
Matt Brennan
2015-03-22 17:22:37 +00:00
parent a834d5f001
commit 0fe94d00f6

View File

@@ -55,7 +55,7 @@ declare class EventEmitter2 {
* Removes the listener that will be fired when any event is emitted.
* @param listener
*/
offAny(listener: Function): EventEmitter2;
offAny(listener?: Function): EventEmitter2;
/**
* Adds a one time listener for the event.