diff --git a/packages/runtime-dom/src/jsx.ts b/packages/runtime-dom/src/jsx.ts index 5292441cde9..58bc7c873d7 100644 --- a/packages/runtime-dom/src/jsx.ts +++ b/packages/runtime-dom/src/jsx.ts @@ -1384,7 +1384,7 @@ export interface Events { onTransitionstart: TransitionEvent } -type EventHandlers = { +export type EventHandlers = { [K in keyof E]?: E[K] extends (...args: any) => any ? E[K] : (payload: E[K]) => void