Skip to content

Commit

Permalink
Add DOMContentLoaded event to Window and Document (microsoft#1267)
Browse files Browse the repository at this point in the history
Co-authored-by: saschanaz <[email protected]>
  • Loading branch information
LachlanArthur and saschanaz committed Mar 6, 2022
1 parent a4e6873 commit 611e529
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4259,6 +4259,7 @@ declare var DeviceOrientationEvent: {
};

interface DocumentEventMap extends DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
"DOMContentLoaded": Event;
"fullscreenchange": Event;
"fullscreenerror": Event;
"pointerlockchange": Event;
Expand Down Expand Up @@ -4476,6 +4477,8 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
createEvent(eventInterface: "DragEvent"): DragEvent;
createEvent(eventInterface: "ErrorEvent"): ErrorEvent;
createEvent(eventInterface: "Event"): Event;
createEvent(eventInterface: "Events"): Event;
createEvent(eventInterface: "FocusEvent"): FocusEvent;
createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent;
createEvent(eventInterface: "FormDataEvent"): FormDataEvent;
Expand Down Expand Up @@ -16443,6 +16446,7 @@ declare var WheelEvent: {
};

interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandlersEventMap {
"DOMContentLoaded": Event;
"devicemotion": DeviceMotionEvent;
"deviceorientation": DeviceOrientationEvent;
"gamepadconnected": GamepadEvent;
Expand Down
12 changes: 12 additions & 0 deletions inputfiles/addedTypes.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,10 @@
{
"name": "gamepaddisconnected",
"type": "GamepadEvent"
},
{
"name": "DOMContentLoaded",
"type": "Event"
}
]
}
Expand Down Expand Up @@ -679,6 +683,14 @@
"overrideType": "null"
}
}
},
"events": {
"event": [
{
"name": "DOMContentLoaded",
"type": "Event"
}
]
}
},
// This is used in the React d.ts files, and not including
Expand Down

0 comments on commit 611e529

Please sign in to comment.