fix(worldmap): correct topojson feature typing

This commit is contained in:
Adnan Silajdzic
2026-04-12 17:05:53 +00:00
parent e118e5b047
commit 0cb04d0290

View File

@@ -237,7 +237,7 @@ function drawInteractiveCountries(
return svg;
}
type WorldJsonCountryData = { properties: { name: string; a3: string } };
type WorldJsonCountryData = d3.ExtendedFeature<d3.GeoGeometryObjects | null, { name: string; a3: string }>;
function parseWorldTopoJsonToGeoJsonFeatures(): Array<WorldJsonCountryData> {
const collection = topojson.feature(