Merge pull request #2841 from AdnanSilajdzic/fix/worldmap-typescript-followup

fix(worldmap): correct topojson feature typing
This commit is contained in:
Owen Schwartz
2026-04-13 09:42:05 -07:00
committed by GitHub

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(