domapi.d.ts 873 B

12345678910111213
  1. export declare function createTextNode(text: string): Text;
  2. export declare function createComment(text: string): Comment;
  3. export declare function insertBefore(parentNode: Node, newNode: Node, referenceNode: Node | null): void;
  4. export declare function removeChild(node: Node, child: Node): void;
  5. export declare function appendChild(node: Node, child: Node): void;
  6. export declare function parentNode(node: Node): Node | null;
  7. export declare function nextSibling(node: Node): Node | null;
  8. export declare function tagName(elm: Element): string;
  9. export declare function setTextContent(node: Node, text: string | null): void;
  10. export declare function getTextContent(node: Node): string | null;
  11. export declare function isElement(node: Node): node is Element;
  12. export declare function isText(node: Node): node is Text;
  13. export declare function isComment(node: Node): node is Comment;