From 9cf6128b58feb5bb930405a3c8705e01d207d787 Mon Sep 17 00:00:00 2001 From: james hadfield Date: Wed, 12 Jun 2024 21:34:50 +1200 Subject: [PATCH] minor - strand enum --- src/util/entropyCreateStateFromJsons.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/util/entropyCreateStateFromJsons.ts b/src/util/entropyCreateStateFromJsons.ts index bd042373e..628f5f34d 100644 --- a/src/util/entropyCreateStateFromJsons.ts +++ b/src/util/entropyCreateStateFromJsons.ts @@ -2,8 +2,7 @@ import { genotypeColors } from "./globals"; import { defaultEntropyState } from "../reducers/entropy"; type JsonAnnotations = Record -// enum Strand {'+', '-'} // other GFF-valid options are '.' and '?' -type Strand = string; +type Strand = "+" | "-"; // note that other GFF-valid options are '.' and '?' but not used in Auspice datasets type JsonSegmentRange = {start: number, end: number}; // Start is 1-based, End is 1-based closed (GFF) interface JsonAnnotation { /* Other properties are commonly set in the JSON structure, but the following are