Skip to content

Commit adceef8

Browse files
committed
Fix the Node interface (microsoft#11113)
1 parent d1ac8dd commit adceef8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: lib/lib.dom.d.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -8747,18 +8747,18 @@ interface Node extends EventTarget {
87478747
readonly attributes: NamedNodeMap;
87488748
readonly baseURI: string | null;
87498749
readonly childNodes: NodeList;
8750-
readonly firstChild: Node;
8751-
readonly lastChild: Node;
8750+
readonly firstChild: Node | null;
8751+
readonly lastChild: Node | null;
87528752
readonly localName: string | null;
87538753
readonly namespaceURI: string | null;
8754-
readonly nextSibling: Node;
8754+
readonly nextSibling: Node | null;
87558755
readonly nodeName: string;
87568756
readonly nodeType: number;
87578757
nodeValue: string | null;
87588758
readonly ownerDocument: Document;
8759-
readonly parentElement: HTMLElement;
8760-
readonly parentNode: Node;
8761-
readonly previousSibling: Node;
8759+
readonly parentElement: HTMLElement | null;
8760+
readonly parentNode: Node | null;
8761+
readonly previousSibling: Node | null;
87628762
textContent: string | null;
87638763
appendChild(newChild: Node): Node;
87648764
cloneNode(deep?: boolean): Node;

0 commit comments

Comments
 (0)