Skip to content

Commit 611e529

Browse files
Add DOMContentLoaded event to Window and Document (#1267)
Co-authored-by: saschanaz <[email protected]>
1 parent a4e6873 commit 611e529

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

baselines/dom.generated.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4259,6 +4259,7 @@ declare var DeviceOrientationEvent: {
42594259
};
42604260

42614261
interface DocumentEventMap extends DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
4262+
"DOMContentLoaded": Event;
42624263
"fullscreenchange": Event;
42634264
"fullscreenerror": Event;
42644265
"pointerlockchange": Event;
@@ -4476,6 +4477,8 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
44764477
createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
44774478
createEvent(eventInterface: "DragEvent"): DragEvent;
44784479
createEvent(eventInterface: "ErrorEvent"): ErrorEvent;
4480+
createEvent(eventInterface: "Event"): Event;
4481+
createEvent(eventInterface: "Events"): Event;
44794482
createEvent(eventInterface: "FocusEvent"): FocusEvent;
44804483
createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent;
44814484
createEvent(eventInterface: "FormDataEvent"): FormDataEvent;
@@ -16443,6 +16446,7 @@ declare var WheelEvent: {
1644316446
};
1644416447

1644516448
interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandlersEventMap {
16449+
"DOMContentLoaded": Event;
1644616450
"devicemotion": DeviceMotionEvent;
1644716451
"deviceorientation": DeviceOrientationEvent;
1644816452
"gamepadconnected": GamepadEvent;

inputfiles/addedTypes.jsonc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,10 @@
439439
{
440440
"name": "gamepaddisconnected",
441441
"type": "GamepadEvent"
442+
},
443+
{
444+
"name": "DOMContentLoaded",
445+
"type": "Event"
442446
}
443447
]
444448
}
@@ -679,6 +683,14 @@
679683
"overrideType": "null"
680684
}
681685
}
686+
},
687+
"events": {
688+
"event": [
689+
{
690+
"name": "DOMContentLoaded",
691+
"type": "Event"
692+
}
693+
]
682694
}
683695
},
684696
// This is used in the React d.ts files, and not including

0 commit comments

Comments
 (0)