comment.d.ts 493 B

123456789101112131415161718
  1. import Node from './node';
  2. import NodeType from './type';
  3. import HTMLElement from './html';
  4. export default class CommentNode extends Node {
  5. rawText: string;
  6. constructor(rawText: string, parentNode: HTMLElement);
  7. /**
  8. * Node Type declaration.
  9. * @type {Number}
  10. */
  11. nodeType: NodeType;
  12. /**
  13. * Get unescaped text value of current node and its children.
  14. * @return {string} text content
  15. */
  16. get text(): string;
  17. toString(): `<!--${string}-->`;
  18. }