Skip to content

Commit 2713781

Browse files
committed
Override Node nextSibling to be type of ChildNode.
1 parent af6833f commit 2713781

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

baselines/dom.generated.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10384,7 +10384,7 @@ interface Node extends EventTarget {
1038410384
/**
1038510385
* Returns the next sibling.
1038610386
*/
10387-
readonly nextSibling: Node | null;
10387+
readonly nextSibling: ChildNode | null;
1038810388
/**
1038910389
* Returns a string appropriate for the type of node, as
1039010390
* follows:

inputfiles/overridingTypes.json

+3
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,9 @@
674674
"read-only": 1,
675675
"override-type": "string | null",
676676
"deprecated": 1
677+
},
678+
"nextSibling": {
679+
"override-type": "ChildNode | null"
677680
}
678681
}
679682
}

0 commit comments

Comments
 (0)