Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jeremyjeanson/fitfont-types

Types definitions to use fitfont with TypeScript
https://github.com/jeremyjeanson/fitfont-types

fitbit fitbitdev

Last synced: about 2 months ago
JSON representation

Types definitions to use fitfont with TypeScript

Awesome Lists containing this project

README

        

[![npm](https://img.shields.io/npm/dw/fitfont-types.svg?logo=npm&label=npm%20version)](https://www.npmjs.com/package/fitfont-types)

# Introduction
This package include Types definitions to use [fitfont](https://github.com/gregoiresage/fitfont) with TypeScript.

Types have comments to allow developers to view documentation in Visual Studio Code.

# Installation
## 1. Install the module
You could use a any package manager to install this module. It was tested with npm, yarn and pnpm.
```sh
npm install fitfont-types --save-dev
```
## 2. Include types in your projects
Update the `tsconfig.json` inside the app folder. Add `"../node_modules/fitfont-types/types"` to paths to include.
```json
{
"extends": "../tsconfig.json",
"include": [
"**/*.ts",
"../node_modules/fitbit-sdk-types/types/device",
"../node_modules/fitfont-types/types"
]
}
```