From 9a7bb3db01fe2e99ccc12285c63323bc67c278e8 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Mon, 20 Jun 2022 19:50:32 +1000 Subject: Increase type-consistency via server-classes and client-types --- src/tol.ts | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 src/tol.ts (limited to 'src/tol.ts') diff --git a/src/tol.ts b/src/tol.ts deleted file mode 100644 index 59ecadc..0000000 --- a/src/tol.ts +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Provides classes for representing and working with tree-of-life data. - */ - -// Maps tree-of-life node names to node objects -export type TolMap = Map; -// Represents a tree-of-life node -export class TolNode { - otolId: string | null; - children: string[]; - parent: string | null; - tips: number; - pSupport: boolean; - 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; - this.pSupport = pSupport; - this.imgName = null; - this.commonName = null; - } -} -- cgit v1.2.3