Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeremyjeanson/fitbit-weather-types
Types definitions to use fitbit-weather with TypeScript
https://github.com/jeremyjeanson/fitbit-weather-types
fitbit fitbitdev
Last synced: 6 days ago
JSON representation
Types definitions to use fitbit-weather with TypeScript
- Host: GitHub
- URL: https://github.com/jeremyjeanson/fitbit-weather-types
- Owner: JeremyJeanson
- License: mit
- Created: 2020-09-03T20:10:02.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-09-03T21:40:56.000Z (over 4 years ago)
- Last Synced: 2024-12-15T19:20:23.108Z (about 1 month ago)
- Topics: fitbit, fitbitdev
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![npm](https://img.shields.io/npm/dw/fitbit-weather-types.svg?logo=npm&label=npm%20version)](https://www.npmjs.com/package/fitbit-weather-types)
# Introduction
This package include Types definitions to use [fitbit-weather](https://github.com/gregoiresage/fitbit-weather) with TypeScript.# Installation
## 1. Install the module
You could use a any package manager to install this module. It was tested with npm and pnpm.
```sh
npm install fitbit-weather-types --save-dev
```
## 2. Include types in your projects
Update the `tsconfig.json` inside the app folder. Add `"../node_modules/fitbit-weather-types/types"` to paths to include.
```json
{
"extends": "../tsconfig.json",
"include": [
"**/*.ts",
"../node_modules/fitbit-sdk-types/types/device",
"../node_modules/fitbit-weather-types/types"
]
}
```Update the `tsconfig.json` inside the companion folder. Add `"../node_modules/fitbit-weather-types/types"` to paths to include.
```json
{
"extends": "../tsconfig.json",
"include": [
"**/*.ts",
"../node_modules/fitbit-sdk-types/types/companion",
"../node_modules/fitbit-weather-types/types",
]
}
```