From 90cddf4e41624dd3bfd8d6d27b8b8e5f01bdeeb8 Mon Sep 17 00:00:00 2001
From: Alexander Rose <alexander.rose@weirdbyte.de>
Date: Sat, 13 Feb 2021 13:00:11 -0800
Subject: [PATCH] allow named tuples

- beter use downlevel-dts for backwards compatibility
---
 .eslintrc.json                                 | 4 ----
 src/extensions/alpha-orbitals/data-model.ts    | 2 +-
 src/mol-model/structure/structure/structure.ts | 2 +-
 3 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/.eslintrc.json b/.eslintrc.json
index 5c87fdceb..df6b9f8a7 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -37,10 +37,6 @@
             {
                 "selector": "ExportDefaultDeclaration",
                 "message": "Default exports are not allowed"
-            },
-            {
-                "selector": "TSTupleType > TSNamedTupleMember",
-                "message": "Labels in tuples are not allowed for TS 3.9 compatibility"
             }
         ]
     },
diff --git a/src/extensions/alpha-orbitals/data-model.ts b/src/extensions/alpha-orbitals/data-model.ts
index b59163926..9141f0f56 100644
--- a/src/extensions/alpha-orbitals/data-model.ts
+++ b/src/extensions/alpha-orbitals/data-model.ts
@@ -41,7 +41,7 @@ export interface CubeGridComputationParams {
     cutoffThreshold: number;
     sphericalOrder: SphericalBasisOrder;
     boxExpand: number;
-    gridSpacing: number | [/** atomCountThreshold */ number, /** spacing */ number][];
+    gridSpacing: number | [atomCountThreshold: number, spacing: number][];
     doNotComputeIsovalues?: boolean;
 }
 
diff --git a/src/mol-model/structure/structure/structure.ts b/src/mol-model/structure/structure/structure.ts
index 4a8f2ddd5..918bb4869 100644
--- a/src/mol-model/structure/structure/structure.ts
+++ b/src/mol-model/structure/structure/structure.ts
@@ -431,7 +431,7 @@ function cmpUnits(units: ArrayLike<Unit>, i: number, j: number) {
     return units[i].id - units[j].id;
 
 }
-function cmpUnitGroupVolume(units: ArrayLike<[/** index */ number, /** volume */ number]>, i: number, j: number) {
+function cmpUnitGroupVolume(units: ArrayLike<[index: number, volume: number]>, i: number, j: number) {
     const d = units[i][1] - units[j][1];
     if (d === 0) return units[i][0] - units[j][0];
     return d;
-- 
GitLab