diff --git a/types/jsx.d.ts b/types/jsx.d.ts index 4924f4c643c..845cfdcb030 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 = {