Skip to content

Commit c595dfb

Browse files
rvikmanisdevelopit
authored andcommitted
Fix emit argument annotation (#45)
1 parent 09a9df0 commit c595dfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default function mitt(all: EventHandlerMap) {
4848
* @param {Any} [evt] Any value (object is recommended and powerful), passed to each handler
4949
* @memberof mitt
5050
*/
51-
emit(type: string, evt: EventHandler) {
51+
emit(type: string, evt: any) {
5252
(all[type] || []).map((handler) => { handler(evt); });
5353
(all['*'] || []).map((handler) => { handler(type, evt); });
5454
}

0 commit comments

Comments
 (0)