Skip to content

Commit 1f7b275

Browse files
committed
Narrow declared type of document.body to HTMLBodyElement | HTMLFrameSetElement
1 parent 044d917 commit 1f7b275

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

baselines/dom.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4147,7 +4147,7 @@ interface Document extends Node, NonElementParentNode, DocumentOrShadowRoot, Par
41474147
/**
41484148
* Specifies the beginning and end of the document body.
41494149
*/
4150-
body: HTMLElement;
4150+
body: HTMLBodyElement | HTMLFrameSetElement;
41514151
/**
41524152
* Returns document's encoding.
41534153
*/

inputfiles/overridingTypes.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,8 @@
625625
"nullable": false
626626
},
627627
"body": {
628-
"nullable": false
628+
"nullable": false,
629+
"override-type": "HTMLBodyElement | HTMLFrameSetElement"
629630
}
630631
}
631632
}

0 commit comments

Comments
 (0)