line_push/node_modules/node-html-parser/dist/nodes/comment.d.ts
2022-07-21 03:28:35 +00:00

19 lines
493 B
TypeScript

import Node from './node';
import NodeType from './type';
import HTMLElement from './html';
export default class CommentNode extends Node {
rawText: string;
constructor(rawText: string, parentNode: HTMLElement);
/**
* Node Type declaration.
* @type {Number}
*/
nodeType: NodeType;
/**
* Get unescaped text value of current node and its children.
* @return {string} text content
*/
get text(): string;
toString(): `<!--${string}-->`;
}