mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-26 12:10:44 +08:00
Merge pull request #3194 from kyo-ago/patch-1
Fix the params type in EventEmitter2.emit
This commit is contained in:
commit
2da4911475
1 file changed
+2
-2
Vendored
+2
-2
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user