mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #3194 from kyo-ago/patch-1
Fix the params type in EventEmitter2.emit
This commit is contained in:
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