marlove / react-native-geocoding

MIT License
207 stars 54 forks source link

Is Init TS Error: return true since this function is always defined #47

Open alejo-acevedo-deel opened 1 year ago

alejo-acevedo-deel commented 1 year ago

isInit TS Error: return true since this function is always defined

There is a little bug in the TS definition because isInit is not a method, it is a getter so you cannot make Geocodoer.isInit() and when you do Geocoder.isInit TS fails

https://github.com/marlove/react-native-geocoding/blob/55be82dc73a2944a5e8e333e5faddfb0706c2231/index.d.ts#L46

Yasser-G commented 1 year ago

What about creating a PR?