Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fitbit-sdk-types

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fitbit-sdk-types

Work in progress. Types for Fitbit SDK.

  • 0.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
59
increased by22.92%
Maintainers
1
Weekly downloads
 
Created
Source

Fitbit SDK Types

Add types to your Fitbit project to use safely the SDK.

This is a work in progress project to add static typing for the FITBIT SDK modules.

How to use in your app project

  1. Add this project as to your devDependencieswith npm install --save-dev fitbit-sdk-types.
  2. Add a reference type to any of your files, or to a global.d.ts one with /// <reference types="fitbit-sdk-types" />.
  3. Profit!

app/index.ts

/// <reference types="fitbit-sdk-types" />

import { Accelerometer } from "accelerometer";

const acc = new Accelerometer();
console.log(acc.activated);
console.log(acc.potato); // error

Examples

You can see a ton of official examples working as tests right here, under the ./test path.

Contributing

Make a PR submitting at least the desired test examples to work under the .test path, ideally with some link to any of the Fitbit official sources to get more info.

Remainig

  • All the Companion APIs.
  • Some App's document module types (mostly WhateverElement).

FAQs

Package last updated on 07 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc