Forráskód Böngészése

allow named tuples

- beter use downlevel-dts for backwards compatibility
Alexander Rose 4 éve
szülő
commit
90cddf4e41

+ 0 - 4
.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"
             }
         ]
     },

+ 1 - 1
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;
 }
 

+ 1 - 1
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;