Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 24fccb4

Browse files
authored
types(runtime-dom): improve event types (#13804)
close #13796
1 parent 3aa782d commit 24fccb4

File tree

1 file changed

+8
-8
lines changed
  • packages/runtime-dom/src

1 file changed

+8
-8
lines changed

‎packages/runtime-dom/src/jsx.ts‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,10 +1296,10 @@ export interface Events {
12961296

12971297
// form events
12981298
onChange: Event
1299-
onBeforeinput: Event
1299+
onBeforeinput: InputEvent
13001300
onInput: Event
13011301
onReset: Event
1302-
onSubmit: Event
1302+
onSubmit: SubmitEvent
13031303
onInvalid: Event
13041304

13051305
// image events
@@ -1312,9 +1312,9 @@ export interface Events {
13121312
onKeyup: KeyboardEvent
13131313

13141314
// mouse events
1315-
onAuxclick: MouseEvent
1316-
onClick: MouseEvent
1317-
onContextmenu: MouseEvent
1315+
onAuxclick: PointerEvent
1316+
onClick: PointerEvent
1317+
onContextmenu: PointerEvent
13181318
onDblclick: MouseEvent
13191319
onMousedown: MouseEvent
13201320
onMouseenter: MouseEvent
@@ -1325,20 +1325,20 @@ export interface Events {
13251325
onMouseup: MouseEvent
13261326

13271327
// media events
1328-
onAbort: Event
1328+
onAbort: UIEvent
13291329
onCanplay: Event
13301330
onCanplaythrough: Event
13311331
onDurationchange: Event
13321332
onEmptied: Event
1333-
onEncrypted: Event
1333+
onEncrypted: MediaEncryptedEvent
13341334
onEnded: Event
13351335
onLoadeddata: Event
13361336
onLoadedmetadata: Event
13371337
onLoadstart: Event
13381338
onPause: Event
13391339
onPlay: Event
13401340
onPlaying: Event
1341-
onProgress: Event
1341+
onProgress: ProgressEvent
13421342
onRatechange: Event
13431343
onSeeked: Event
13441344
onSeeking: Event

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /