Skip to content

Commit 38198f7

Browse files
sean-perkinsrwaskiewicz
authored andcommitted
fix(runtime): onInput event type (#3135)
libraries/applications using Stencil, will have the input event strongly typed to `InputEvent` instead of the general `Event` type.
1 parent 33152e3 commit 38198f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/declarations/stencil-public-runtime.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1689,8 +1689,8 @@ export namespace JSXBase {
16891689
// Form Events
16901690
onChange?: (event: Event) => void;
16911691
onChangeCapture?: (event: Event) => void;
1692-
onInput?: (event: Event) => void;
1693-
onInputCapture?: (event: Event) => void;
1692+
onInput?: (event: InputEvent) => void;
1693+
onInputCapture?: (event: InputEvent) => void;
16941694
onReset?: (event: Event) => void;
16951695
onResetCapture?: (event: Event) => void;
16961696
onSubmit?: (event: Event) => void;

0 commit comments

Comments
 (0)