aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js
index 92ae0d8..75fd040 100644
--- a/src/index.js
+++ b/src/index.js
@@ -48,7 +48,7 @@ export default function mitt(all: EventHandlerMap) {
* @param {Any} [evt] Any value (object is recommended and powerful), passed to each handler
* @memberof mitt
*/
- emit(type: string, evt: EventHandler) {
+ emit(type: string, evt: any) {
(all[type] || []).map((handler) => { handler(evt); });
(all['*'] || []).map((handler) => { handler(type, evt); });
}