radarlabs / radar-sdk-js

Web JavaScript SDK for Radar, the leading geofencing and location tracking platform
https://radar.com
Apache License 2.0
41 stars 11 forks source link

Incorrect Typescript interface #124

Closed cuginoAle closed 10 months ago

cuginoAle commented 10 months ago

Hi, while experimenting with Radar Js SDK I noticed the following:

image

It looks like the Radar.autocomplete promise returns addresses as a single RadarAutocompleteAddress rather than an array:

image

Should it return RadarAutocompleteAddress[] instead?

kochis commented 10 months ago

Hi @cuginoAle,

Thanks for catching, that does look to be a bug. I added a PR with the updating typings here: https://github.com/radarlabs/radar-sdk-js/pull/125

Should be able to get that fix in soon.

cuginoAle commented 10 months ago

Amazing! Thanks

kochis commented 10 months ago

Fixed in v4.1.7