linktree/node_modules/node-html-parser/dist/nodes/comment.d.ts
2025-06-16 13:37:14 +02:00

21 lines
579 B
TypeScript

import HTMLElement from './html';
import Node from './node';
import NodeType from './type';
export default class CommentNode extends Node {
rawText: string;
rawTagName: string;
clone(): CommentNode;
constructor(rawText: string, parentNode?: HTMLElement, range?: [number, number], rawTagName?: string);
/**
* 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;
}