12 lines
256 B
TypeScript
12 lines
256 B
TypeScript
import NodeType from './type';
|
|
/**
|
|
* Node Class as base class for TextNode and HTMLElement.
|
|
*/
|
|
export default abstract class Node {
|
|
nodeType: NodeType;
|
|
childNodes: Node[];
|
|
text: string;
|
|
rawText: string;
|
|
abstract toString(): string;
|
|
}
|