Closed the-habu closed 1 year ago
Oh that would be great, ty!
Typescript was satisfied by adding waypoints as an empty array to openMaps, if it is worth merely updating the documentation. Or perhaps that prop could be optional?
Sorry for the late reply!
@ml242 you're right, it works. But I still think making it optional leads to less confusion and a nicer API.
@brh55 I will submit a PR now.
Ty! @the-habu
The example
openMap({ latitude: 37.865101, longitude: -119.538330 })
(using my own typeCoordinates
) now gives the following error.Seems like a mistake that
waypoints
is mandatory, as it has been added lately. Here is the diff created with patch-package that will make it work for me with typescript.Want me to add a PR, or any comments by maintainers? Thank you!