aboutsummaryrefslogtreecommitdiff
path: root/src/tol.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/tol.ts')
-rw-r--r--src/tol.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tol.ts b/src/tol.ts
index aa9a9b1..59ecadc 100644
--- a/src/tol.ts
+++ b/src/tol.ts
@@ -6,6 +6,7 @@
export type TolMap = Map<string, TolNode>;
// Represents a tree-of-life node
export class TolNode {
+ otolId: string | null;
children: string[];
parent: string | null;
tips: number;
@@ -13,6 +14,7 @@ export class TolNode {
commonName: null | string;
imgName: null | string | [string, string] | [null, string] | [string, null];
constructor(children: string[] = [], parent = null, tips = 0, pSupport = false){
+ this.otolId = null;
this.children = children;
this.parent = parent;
this.tips = tips;