f7
f7 is a spreadsheet formula execution library
git clone https://git.vogt.world/f7.git
Log | Files | README.md | LICENSE.md
← All files
name: src/main/js/models/nodes/TextNode.ts
-rw-r--r--
368
 1import { Node } from "./Node";
 2import { NodeType } from "./NodeType";
 3
 4/**
 5 * Text node is just a wrapper for String.
 6 */
 7export class TextNode extends Object implements Node {
 8  readonly type: NodeType = NodeType.Text;
 9  readonly value: string;
10
11  constructor(value: string) {
12    super();
13    this.value = value;
14  }
15
16  toString() {
17    return `"this.value"`;
18  }
19}