Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

TypeScript support

I've published the npm module https://www.npmjs.com/package/fitbit-sdk-types, with the sourcecode available on GitHub https://github.com/SergioMorchon/fitbit-sdk-types.

 

Using it is plain straightforward, just add the dev decepncency, include the definitions into your root tsconfig.json and you're ready to go.

 

Edit: I just realized the existence of:

So just to put a difference here over those projects:

  • Only definition files, no runtime code.
  • This one is published as a npm package, so you can install it without commiting a file.
  • This one uses stricter types for events. You can see how it works, for example, in test/device/document.ts.
  • It has tests, all of them extracted from the oficial dev site, to assert that all the given examples are working with the type definitions.
Best Answer
1 REPLY 1

Great project, thanks for sharing.

Best Answer
0 Votes