Fix TypeScript tuple array typing for GlobeMap lines

This commit is contained in:
ypratama committed 2026-08-27 15:57:46 +07:00
1 parent 9219035003
commit e8397bddc8
1 file changed
+1 -1
+1 -1
View File
@@ -90,7 +90,7 @@ export const GlobeMap = ({ data }: GlobeMapProps) => {
// Force the line to go straight across the map (the "front")
// by interpolating multiple points. This prevents d3-geo from
// wrapping around the dateline for long distances.
const coordinates = [];
const coordinates: [number, number][] = [];
const steps = 30;
for (let j = 0; j <= steps; j++) {
const t = j / steps;