/
Dante
/
node-core
Обзор
Документация
Войти
/
Dante
/
node-core
Код
Запросы
0
Задачи
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
node_modules/node-html-parser/dist/nodes/node.d.ts
24 строки
671 B
Александр Данилюк
add
24 сен 2024, 12:59
24 сен 2024, 12:59
9eaeea8
Код
Авторство
О чём код?
import NodeType from './type'; import HTMLElement from './html'; /** * Node Class as base class for TextNode and HTMLElement. */ export default abstract class Node { parentNode: HTMLElement; abstract rawTagName: string; abstract nodeType: NodeType; childNodes: Node[]; range: readonly [number, number]; abstract text: string; abstract rawText: string; abstract toString(): string; abstract clone(): Node; constructor(parentNode?: HTMLElement, range?: [number, number]); /** * Remove current node */ remove(): this; get innerText(): string; get textContent(): string; set textContent(val: string); }