Merge pull request #3194 from kyo-ago/patch-1

Fix the params type in EventEmitter2.emit
This commit is contained in:
Masahiro Wakame
2014-11-21 20:55:54 +09:00
+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.