Skip to content

Commit

Permalink
fix: onSubmit event type
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinhagemeister committed Nov 27, 2023
1 parent 3b7d7c0 commit 4b343dc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/jsx.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1453,6 +1453,10 @@ export namespace JSXInternal {
Target,
PointerEvent
>;
export type TargetedSubmitEvent<Target extends EventTarget> = TargetedEvent<
Target,
SubmitEvent
>;
export type TargetedTouchEvent<Target extends EventTarget> = TargetedEvent<
Target,
TouchEvent
Expand Down Expand Up @@ -1565,8 +1569,8 @@ export namespace JSXInternal {
onBeforeInputCapture?: GenericEventHandler<Target> | undefined;
onSearch?: GenericEventHandler<Target> | undefined;
onSearchCapture?: GenericEventHandler<Target> | undefined;
onSubmit?: GenericEventHandler<Target> | undefined;
onSubmitCapture?: GenericEventHandler<Target> | undefined;
onSubmit?: TargetedSubmitEvent<Target> | undefined;
onSubmitCapture?: TargetedSubmitEvent<Target> | undefined;
onInvalid?: GenericEventHandler<Target> | undefined;
onInvalidCapture?: GenericEventHandler<Target> | undefined;
onReset?: GenericEventHandler<Target> | undefined;
Expand Down

0 comments on commit 4b343dc

Please sign in to comment.