zcreativelabs / react-simple-maps

Beautiful React SVG maps with d3-geo and topojson using a declarative api.
https://www.react-simple-maps.io/
MIT License
3.03k stars 424 forks source link

Type of Geographies is Inferred as Any? #359

Open psygo opened 1 month ago

psygo commented 1 month ago

I'm trying to add types to my map component, but for some reason in the following snippet the type of geographies is inferred as any[]:

export function MyMap() {
  return (
    <Geographies geography={brTopoJson}>
      {({ geographies }) => ( // <- `geographies` has type `any[]`
        ...

Is this expected? How do I override this?