Skip to content

Commit

Permalink
fix: incorrect oninput event type
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinhagemeister committed Dec 7, 2023
1 parent 2629e40 commit 62b10cf
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 @@ -1457,6 +1457,10 @@ export namespace JSXInternal {
Target,
SubmitEvent
>;
export type TargetedInputEvent<Target extends EventTarget> = TargetedEvent<
Target,
InputEvent
>;
export type TargetedTouchEvent<Target extends EventTarget> = TargetedEvent<
Target,
TouchEvent
Expand Down Expand Up @@ -1563,8 +1567,8 @@ export namespace JSXInternal {
// Form Events
onChange?: GenericEventHandler<Target> | undefined;
onChangeCapture?: GenericEventHandler<Target> | undefined;
onInput?: GenericEventHandler<Target> | undefined;
onInputCapture?: GenericEventHandler<Target> | undefined;
onInput?: TargetedInputEvent<Target> | undefined;
onInputCapture?: TargetedInputEvent<Target> | undefined;
onBeforeInput?: GenericEventHandler<Target> | undefined;
onBeforeInputCapture?: GenericEventHandler<Target> | undefined;
onSearch?: GenericEventHandler<Target> | undefined;
Expand Down

0 comments on commit 62b10cf

Please sign in to comment.