fix #12832
@@ -1297,7 +1297,9 @@ export interface Events {
}
type EventHandlers<E> = {
- [K in keyof E]?: E[K] extends Function ? E[K] : (payload: E[K]) => void
+ [K in keyof E]?: E[K] extends (...args: any) => any
+ ? E[K]
+ : (payload: E[K]) => void
type ReservedProps = {