Skip to content
This repository was archived by the owner on Sep 5, 2022. It is now read-only.

Commit f0ccf67

Browse files
committed
fix(emitter): iterator type error
1 parent f858ff6 commit f0ccf67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/emitter/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class Emitter<T extends Events> {
2222

2323
emit<K extends keyof T>(name: K, ...args: Parameters<T[K]>) {
2424
this.list(name).forEach((listener) => {
25-
listener(...args);
25+
listener(...(args as any));
2626
});
2727
}
2828

0 commit comments

Comments
 (0)