We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
EventHandlers
1 parent dd3354c commit bad3f3cCopy full SHA for bad3f3c
packages/runtime-dom/types/jsx.d.ts
@@ -1301,7 +1301,7 @@ export interface Events {
1301
}
1302
1303
type EventHandlers<E> = {
1304
- [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
1305
1306
1307
// use namespace import to avoid collision with generated types which use
0 commit comments