Skip to content

Commit f9b2f22

Browse files
authored
Use SubmitEvent for submit event (#1105)
1 parent 509d578 commit f9b2f22

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

baselines/dom.generated.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5350,7 +5350,7 @@ interface GlobalEventHandlersEventMap {
53505350
"selectionchange": Event;
53515351
"selectstart": Event;
53525352
"stalled": Event;
5353-
"submit": Event;
5353+
"submit": SubmitEvent;
53545354
"suspend": Event;
53555355
"timeupdate": Event;
53565356
"toggle": Event;
@@ -5605,7 +5605,7 @@ interface GlobalEventHandlers {
56055605
* @param ev The event.
56065606
*/
56075607
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5608-
onsubmit: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5608+
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
56095609
/**
56105610
* Occurs if the load operation has been intentionally halted.
56115611
* @param ev The event.
@@ -17384,7 +17384,7 @@ declare var onselectstart: ((this: Window, ev: Event) => any) | null;
1738417384
* @param ev The event.
1738517385
*/
1738617386
declare var onstalled: ((this: Window, ev: Event) => any) | null;
17387-
declare var onsubmit: ((this: Window, ev: Event) => any) | null;
17387+
declare var onsubmit: ((this: Window, ev: SubmitEvent) => any) | null;
1738817388
/**
1738917389
* Occurs if the load operation has been intentionally halted.
1739017390
* @param ev The event.

inputfiles/addedTypes.jsonc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@
168168
"name": "securitypolicyviolation",
169169
"type": "SecurityPolicyViolationEvent"
170170
},
171+
{
172+
"name": "submit",
173+
"type": "SubmitEvent"
174+
},
171175
{
172176
"name": "dblclick",
173177
"type": "MouseEvent"

0 commit comments

Comments
 (0)