From a7b069997441e0fef85ac6d43215958bc5cb45a1 Mon Sep 17 00:00:00 2001 From: eternal-flame-AD Date: Sun, 11 Aug 2024 22:23:55 -0500 Subject: [PATCH] Add intellisense on hosted genomes Signed-off-by: eternal-flame-AD --- js/igv.d.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/js/igv.d.ts b/js/igv.d.ts index 205093002..421ba120d 100644 --- a/js/igv.d.ts +++ b/js/igv.d.ts @@ -300,6 +300,17 @@ interface RefNoGenome { type GenomeOpt = GenomeNoRef | RefNoGenome; + +type HostedGenomes = "hs1" | "chm13v1.1" | "hg38" | "hg38_1kg" | "hg19" | + "hg18" | "mm39" | "mm10" | "mm9" | "rn7" | + "rn6" | "gorGor6" | "gorGor4" | "panTro6" | "panTro5" | + "panTro4" | "macFas5" | "GCA_011100615.1" | "panPan2" | "canFam3" | + "canFam4" | "canFam5" | "bosTau9" | "bosTau8" | "susScr11" | + "galGal6" | "GCF_016699485.2" | "danRer11" | "danRer10" | "ce11" | + "dm6" | "dm3" | "dmel_r5.9" | "sacCer3" | "ASM294v2" | + "ASM985889v3" | "tair10" | "GCA_003086295.2" | "GCF_001433935.1" | "NC_016856.1" | + "GCA_000182895.1" + /** * To define or customize a reference genome the reference property can be used. */ @@ -386,7 +397,7 @@ interface GenomeFrag { * * @type {string} */ - genome: string; + genome: HostedGenomes | (string & {}); reference?: never; } interface ReferenceFrag {