react-simple-maps icon indicating copy to clipboard operation
react-simple-maps copied to clipboard

Type of Geographies is Inferred as Any?

Open psygo opened this issue 1 year ago • 0 comments

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?

psygo avatar May 19 '24 14:05 psygo