From 9c84b680360692f38b6a83ea7e25c4d54b569461 Mon Sep 17 00:00:00 2001 From: kyo_ago Date: Fri, 21 Nov 2014 19:25:48 +0900 Subject: [PATCH] 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- --- eventemitter2/eventemitter2.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eventemitter2/eventemitter2.d.ts b/eventemitter2/eventemitter2.d.ts index 8b9568192..abaa0756e 100644 --- a/eventemitter2/eventemitter2.d.ts +++ b/eventemitter2/eventemitter2.d.ts @@ -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.