diff --git a/types/jsx.d.ts b/types/jsx.d.ts index 4924f4c64..845cfdcb0 100644 --- a/types/jsx.d.ts +++ b/types/jsx.d.ts @@ -1297,7 +1297,9 @@ export interface Events { } type EventHandlers = { - [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 = {