Skip to content

Commit 24a2b67

Browse files
drivronsandersn
authored andcommitted
Override Node previousSibling to be type of ChildNode. (#744)
* Override Node previousSibling to be type of ChildNode * Override Node previousSibling to be type of ChildNode : indentation
1 parent 7ae23db commit 24a2b67

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
@@ -10985,7 +10985,7 @@ interface Node extends EventTarget {
1098510985
/**
1098610986
* Returns the previous sibling.
1098710987
*/
10988-
readonly previousSibling: Node | null;
10988+
readonly previousSibling: ChildNode | null;
1098910989
textContent: string | null;
1099010990
appendChild<T extends Node>(newChild: T): T;
1099110991
/**

inputfiles/overridingTypes.json

+3
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,9 @@
694694
},
695695
"nextSibling": {
696696
"override-type": "ChildNode | null"
697+
},
698+
"previousSibling": {
699+
"override-type": "ChildNode | null"
697700
}
698701
}
699702
}

0 commit comments

Comments
 (0)