Fix the params type in EventEmitter2.emit

The params type was updated in EventEmitter2.emit.

See the API documentation here:
https://github.com/asyncly/EventEmitter2#emitteremitevent-arg1-arg2-
This commit is contained in:
kyo_ago
2014-11-21 19:25:48 +09:00
parent 373c173269
commit 9c84b68036
+2 -2
View File
@@ -128,7 +128,7 @@ declare class EventEmitter2 {
* @param event
* @param args
*/
emit(event: string, ...args: string[]): boolean;
emit(event: string, ...args: any[]): boolean;
/**
* Execute each of the listeners that may be listening for the specified event name in order with the list of arguments.
@@ -241,7 +241,7 @@ declare module "eventemitter2" {
* @param event
* @param args
*/
emit(event: string, ...args: string[]): boolean;
emit(event: string, ...args: any[]): boolean;
/**
* Execute each of the listeners that may be listening for the specified event name in order with the list of arguments.