radarlabs / radar-sdk-js

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

Typescript? #74

Closed optojack closed 1 year ago

optojack commented 1 year ago

Hello, I have been tasked with finding a solution to get address autocomplete for my company and came across Radar and would love to use it, however we use pretty strict typescript and thus makes using this package pretty difficult.

Are there any plans to convert to typescript? Or at least publish a types package?

kochis commented 1 year ago

Hi @jackLIT,

That's great to hear you're considering Radar! Typescript bindings and converting the project to typescript is on our long-list of improvements to project, but probably not something we'll get to in the near term.

That being said, we're always open to contributions.

jacklynch00 commented 1 year ago

@kochis Thanks for the quick feedback! I am interested if there is any type of a public roadmap that's available to at least see where the direction of this package is headed?

I would also be interested on your thoughts of possibly a slow conversion of the project into typescript?

PS. Just realized I was on my work account before, I am the same as @jackLIT lol

cjboco commented 1 year ago

For those just looking to ignore "Could not find a declaration" error in VS Code and TypeScript.

At the root of your project, create a file called external.d.ts with the content of:

declare module 'radar-sdk-js';

This will squash the error warning on your import.

kochis commented 1 year ago

Just wanted to post an update, we now have a v4 version of the SDK in beta, that has been fully updated with typescript.

You can check it out here: https://github.com/radarlabs/radar-sdk-js/tree/v4-beta (see MIGRATION for more details on upgrading to the latest version)

kochis commented 1 year ago

Types are now available: https://github.com/radarlabs/radar-sdk-js/blob/master/src/types.ts