2.0.4 • Published 6 months ago
@types/dom4 v2.0.4
Installation
npm install --save @types/dom4
Summary
This package contains type definitions for dom4 (https://github.com/WebReflection/dom4).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/dom4.
index.d.ts
// Type definitions for dom4 v2.0
// Project: https://github.com/WebReflection/dom4
// Definitions by: Adi Dahiya <https://github.com/adidahiya>, Gilad Gray <https://github.com/giladgray>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**
* https://dom.spec.whatwg.org/#parentnode
*/
interface ParentNode {
/**
* Returns the child elements.
*/
readonly children: HTMLCollection;
/**
* Inserts `nodes` after the last child of this node, while replacing strings with equivalent `Text` nodes.
*/
append(...nodes: Array<Node | string>): void;
/**
* Inserts `nodes` before the first child of this node, while replacing strings with equivalent `Text` nodes.
*/
prepend(...nodes: Array<Node | string>): void;
}
/**
* https://dom.spec.whatwg.org/#childnode
*/
interface ChildNode {
/**
* Inserts `nodes` just after this node, while replacing strings with equivalent `Text` nodes.
*/
after(...nodes: Array<Node | string>): void;
/**
* Inserts `nodes` just before this node, while replacing strings with equivalent `Text` nodes.
*/
before(...nodes: Array<Node | string>): void;
/**
* Replaces this node with `nodes`, while replacing strings in nodes with equivalent Text nodes.
*/
replaceWith(...nodes: Array<Node | string>): void;
/**
* Removes this node.
*/
remove(): void;
}
interface Element extends ParentNode {
/**
* Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.
*/
closest(selectors: string): Element | null;
/**
* Returns true if matching selectors against element’s root yields element, and false otherwise.
*/
matches(selectors: string): boolean;
}
interface Elements extends ParentNode, Array<Element> {
}
interface Document extends ParentNode {
}
interface DocumentFragment extends ParentNode {
}
Additional Details
- Last updated: Fri, 09 Jul 2021 02:32:25 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Adi Dahiya, and Gilad Gray.
2.0.3
7 months ago
2.0.4
6 months ago
2.0.2
3 years ago
2.0.1
6 years ago
2.0.0
6 years ago
1.5.20
8 years ago
0.0.19
8 years ago
0.0.18
8 years ago
0.0.17-alpha
8 years ago
0.0.16-alpha
8 years ago
0.0.15-alpha
8 years ago
0.0.14-alpha
8 years ago
0.0.13-alpha
8 years ago
0.0.12-alpha
8 years ago
0.0.11-alpha
8 years ago
0.0.6-alpha
8 years ago
0.0.5-alpha
8 years ago