refactor: rendering button

This commit is contained in:
MapleLeaf
2021-12-25 01:24:52 -06:00
parent e799e71f1a
commit 99430e0edc
9 changed files with 107 additions and 31 deletions

View File

@@ -1,3 +1,8 @@
export class TextNode {
constructor(public text: string) {}
import { Node } from "./node.js"
export class TextNode extends Node {
readonly name = "text"
constructor(public text: string) {
super()
}
}