10-07-2018 13:06 - edited 10-23-2018 12:45
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-07-2018 13:06 - edited 10-23-2018 12:45
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
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:
- TypeScript Starter Project (VS Code, local development)
- [Visual Studio Code] (TypeScript) Intellisense support for your projects
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.
10-08-2018 12:36
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


10-08-2018 12:36
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Great project, thanks for sharing.

