Skip to content

Fix the Node interface #149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 3, 2016
Merged
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
12 changes: 6 additions & 6 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8732,18 +8732,18 @@ interface Node extends EventTarget {
readonly attributes: NamedNodeMap;
readonly baseURI: string | null;
readonly childNodes: NodeList;
readonly firstChild: Node;
readonly lastChild: Node;
readonly firstChild: Node | null;
readonly lastChild: Node | null;
readonly localName: string | null;
readonly namespaceURI: string | null;
readonly nextSibling: Node;
readonly nextSibling: Node | null;
readonly nodeName: string;
readonly nodeType: number;
nodeValue: string | null;
readonly ownerDocument: Document;
readonly parentElement: HTMLElement;
readonly parentNode: Node;
readonly previousSibling: Node;
readonly parentElement: HTMLElement | null;
readonly parentNode: Node | null;
readonly previousSibling: Node | null;
textContent: string | null;
appendChild(newChild: Node): Node;
cloneNode(deep?: boolean): Node;
Expand Down
42 changes: 42 additions & 0 deletions inputfiles/overridingTypes.json
Original file line number Diff line number Diff line change
Expand Up @@ -845,5 +845,47 @@
"interface": "History",
"name": "replaceState",
"signatures": ["replaceState(data: any, title: string, url?: string | null): void"]
},
{
"kind": "property",
"interface": "Node",
"readonly": true,
"name": "firstChild",
"type": "Node | null"
},
{
"kind": "property",
"interface": "Node",
"readonly": true,
"name": "lastChild",
"type": "Node | null"
},
{
"kind": "property",
"interface": "Node",
"readonly": true,
"name": "nextSibling",
"type": "Node | null"
},
{
"kind": "property",
"interface": "Node",
"readonly": true,
"name": "previousSibling",
"type": "Node | null"
},
{
"kind": "property",
"interface": "Node",
"readonly": true,
"name": "parentNode",
"type": "Node | null"
},
{
"kind": "property",
"interface": "Node",
"readonly": true,
"name": "parentElement",
"type": "HTMLElement | null"
}
]