Skip to content
Snippets Groups Projects
Commit 90cddf4e authored by Alexander Rose's avatar Alexander Rose
Browse files

allow named tuples

- beter use downlevel-dts for backwards compatibility
parent 2cddbb72
No related branches found
No related tags found
No related merge requests found
...@@ -37,10 +37,6 @@ ...@@ -37,10 +37,6 @@
{ {
"selector": "ExportDefaultDeclaration", "selector": "ExportDefaultDeclaration",
"message": "Default exports are not allowed" "message": "Default exports are not allowed"
},
{
"selector": "TSTupleType > TSNamedTupleMember",
"message": "Labels in tuples are not allowed for TS 3.9 compatibility"
} }
] ]
}, },
......
...@@ -41,7 +41,7 @@ export interface CubeGridComputationParams { ...@@ -41,7 +41,7 @@ export interface CubeGridComputationParams {
cutoffThreshold: number; cutoffThreshold: number;
sphericalOrder: SphericalBasisOrder; sphericalOrder: SphericalBasisOrder;
boxExpand: number; boxExpand: number;
gridSpacing: number | [/** atomCountThreshold */ number, /** spacing */ number][]; gridSpacing: number | [atomCountThreshold: number, spacing: number][];
doNotComputeIsovalues?: boolean; doNotComputeIsovalues?: boolean;
} }
......
...@@ -431,7 +431,7 @@ function cmpUnits(units: ArrayLike<Unit>, i: number, j: number) { ...@@ -431,7 +431,7 @@ function cmpUnits(units: ArrayLike<Unit>, i: number, j: number) {
return units[i].id - units[j].id; 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]; const d = units[i][1] - units[j][1];
if (d === 0) return units[i][0] - units[j][0]; if (d === 0) return units[i][0] - units[j][0];
return d; return d;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment