From 488ab0050dd26e9fa780a3f3acc0e2ac1d85dad8 Mon Sep 17 00:00:00 2001 From: liudongpu Date: Tue, 2 May 2017 22:25:32 +0800 Subject: [PATCH 1/2] emit ...param:any[] --- types/react-native/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index fe7602bb9f..2822ffca80 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -234,7 +234,7 @@ interface EventEmitter extends EventEmitterListener { * * emitter.emit('someEvent', 'abc'); // logs 'abc' */ - emit(eventType: string): void + emit(eventType: string,...param:any[]): void /** * Removes the given listener for event of specific type. From a39e51dceddc66d365da610e18da75e851058c98 Mon Sep 17 00:00:00 2001 From: Andy Hanson Date: Thu, 1 Jun 2017 07:55:17 -0700 Subject: [PATCH 2/2] Fix lint --- types/react-native/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index 2cca4ed77c..c049c2aa5f 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -234,7 +234,7 @@ interface EventEmitter extends EventEmitterListener { * * emitter.emit('someEvent', 'abc'); // logs 'abc' */ - emit(eventType: string,...param:any[]): void + emit(eventType: string, ...params: any[]): void /** * Removes the given listener for event of specific type.