Skip to content

Commit

Permalink
added export in EventHandlers type
Browse files Browse the repository at this point in the history
  • Loading branch information
FukaYouTube authored Dec 20, 2024
1 parent bc68843 commit 86800e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-dom/src/jsx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1384,7 +1384,7 @@ export interface Events {
onTransitionstart: TransitionEvent
}

type EventHandlers<E> = {
export type EventHandlers<E> = {
[K in keyof E]?: E[K] extends (...args: any) => any
? E[K]
: (payload: E[K]) => void
Expand Down

0 comments on commit 86800e3

Please sign in to comment.