mirror of
https://github.com/fosrl/pangolin.git
synced 2026-04-13 21:36:38 +00:00
fix(worldmap): correct topojson feature typing
This commit is contained in:
@@ -237,7 +237,7 @@ function drawInteractiveCountries(
|
|||||||
return svg;
|
return svg;
|
||||||
}
|
}
|
||||||
|
|
||||||
type WorldJsonCountryData = { properties: { name: string; a3: string } };
|
type WorldJsonCountryData = d3.ExtendedFeature<d3.GeoGeometryObjects | null, { name: string; a3: string }>;
|
||||||
|
|
||||||
function parseWorldTopoJsonToGeoJsonFeatures(): Array<WorldJsonCountryData> {
|
function parseWorldTopoJsonToGeoJsonFeatures(): Array<WorldJsonCountryData> {
|
||||||
const collection = topojson.feature(
|
const collection = topojson.feature(
|
||||||
|
|||||||
Reference in New Issue
Block a user