Fix dom4 typings so they work with latest nightlies of TS (#8943)

The deleted members are defined in lib.d.ts's ElementTraversal interface
and thus don't need to be defined in here.
This commit is contained in:
Jason Killian
2016-04-13 00:37:30 +09:00
committed by Masahiro Wakame
parent 8d0cdb374d
commit c00b5a1d9e
+3 -18
View File
@@ -9,21 +9,6 @@ interface ParentNode {
*/
children: HTMLCollection;
/**
* Returns the first child that is an element, and null otherwise.
*/
firstElementChild: Element;
/**
* Returns the last child that is an element, and null otherwise.
*/
lastElementChild: Element;
/**
* Returns the number of children that are elements.
*/
childElementCount: number;
/**
* Returns the first element that is a descendant of node that matches relativeSelectors.
*/
@@ -47,11 +32,11 @@ interface Element extends ParentNode {
matches(selectors: string): boolean;
}
interface Elements extends ParentNode, Array<Element> {
interface Elements extends ElementTraversal, ParentNode, Array<Element> {
}
interface Document extends ParentNode {
interface Document extends ElementTraversal, ParentNode {
}
interface DocumentFragment extends ParentNode {
interface DocumentFragment extends ElementTraversal, ParentNode {
}