Types definitions to use fitbit-asap with TypeScript
npm install fitbit-asap-types
sh
npm install fitbit-asap-types --save-dev
`
2. Include types in your projects
Update the tsconfig.json inside the app folder. Add "../node_modules/fitbit-asap-types/types" to paths to include.
`json
{
"extends": "../tsconfig.json",
"include": [
"*/.ts",
"../node_modules/fitbit-sdk-types/types/device",
"../node_modules/fitbit-asap-types/types"
]
}
`
Update the tsconfig.json inside the companion folder. Add "../node_modules/fitbit-asap-types/types" to paths to include.
`json
{
"extends": "../tsconfig.json",
"include": [
"*/.ts",
"../node_modules/fitbit-sdk-types/types/companion",
"../node_modules/fitbit-asap-types/types"
]
}
``