mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
eventemitter2: listener arg to offAny is optional
This commit is contained in:
Vendored
+1
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user