Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12454,10 +12454,10 @@ interface DocumentEvent {

interface ElementTraversal {
readonly childElementCount: number;
readonly firstElementChild: Element;
readonly lastElementChild: Element;
readonly nextElementSibling: Element;
readonly previousElementSibling: Element;
readonly firstElementChild: Element | null;
readonly lastElementChild: Element | null;
readonly nextElementSibling: Element | null;
readonly previousElementSibling: Element | null;
}

interface GetSVGDocument {
Expand Down
28 changes: 28 additions & 0 deletions inputfiles/overridingTypes.json
Original file line number Diff line number Diff line change
Expand Up @@ -929,5 +929,33 @@
"kind": "extends",
"baseInterface": "Node, GlobalEventHandlers, NodeSelector, DocumentEvent, ParentNode, DocumentOrShadowRoot",
"interface": "Document"
},
{
"kind": "property",
"interface": "ElementTraversal",
"readonly": true,
"name": "firstElementChild",
"type": "Element | null"
},
{
"kind": "property",
"interface": "ElementTraversal",
"readonly": true,
"name": "lastElementChild",
"type": "Element | null"
},
{
"kind": "property",
"interface": "ElementTraversal",
"readonly": true,
"name": "nextElementSibling",
"type": "Element | null"
},
{
"kind": "property",
"interface": "ElementTraversal",
"readonly": true,
"name": "previousElementSibling",
"type": "Element | null"
}
]