react-mapkit
react-mapkit copied to clipboard
Wrong typing for useMap props?
I'm using the useMap() hook, and I'm following the sample code from the README to add a default center location. But typescript gives my an error, says I'm missing some props.
I guess the props for the useMap hook is not properly defined?
we're having the same exact issue
working on this a bit today, I'll see if I can find and fix this!
I'm not able to reproduce this. Can you create a breaking example and/or provide more code?
Hi Chris. Here is a Codepen showing what is happening: link.
Actually we are not understanding what's going on here: basically seems that TS isn't able to infer all the constructor props you provided in utils.ts, not only about MapConstructionOptions (line 7 of codepen link provided above) but also MarkerConstructionOptions (line 22).
Thank you for your work!