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 - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

src/heart-rate.d.ts

2

package.json
{
"name": "fitbit-sdk-types",
"version": "1.0.1",
"version": "1.0.2",
"description": "Types for Fitbit SDK.",

@@ -5,0 +5,0 @@ "scripts": {

declare module 'appbit' {
interface Appbit {
interface Appbit
extends EventTarget<{
unload: Event;
}> {
appTimeoutEnabled: boolean;

@@ -7,3 +10,3 @@ readonly applicationId: string;

readonly permissions: Permissions;
onunload(this: Appbit, event: Event): void;
onunload: (event: Event) => void;
exit(): void;

@@ -10,0 +13,0 @@ }

@@ -15,8 +15,8 @@ declare module 'companion' {

}
interface EventMap {
unload: Event;
significantlocationchange: SignificantLocationChangeEvent;
wakeinterval: Event;
}
interface Companion extends EventTarget<EventMap> {
interface Companion
extends EventTarget<{
unload: Event;
significantlocationchange: SignificantLocationChangeEvent;
wakeinterval: Event;
}> {
readonly applicationId: string;

@@ -23,0 +23,0 @@ readonly buildId: string;

@@ -58,3 +58,2 @@ type Component<Props> = (props: Props) => JSX.Element;

declare const ColorSelect: Component<{
settingsKey: string;
colors: Array<{

@@ -65,2 +64,4 @@ color: string;

centered?: boolean;
settingsKey?: string;
value?: string;
onSelection?: (value: string) => void;

@@ -113,3 +114,3 @@ }>;

description?: string;
settingsKey?: string;
settingsKey: string;
clientId?: string;

@@ -143,3 +144,9 @@ clientSecret?: string;

declare function registerSettingsPage(element: JSX.Element): void;
type SettingsComponentProps = {
readonly settings: { [key: string]: string };
readonly settingsStorage: LiveStorage;
};
type SettingsComponent = (props: SettingsComponentProps) => JSX.Element;
declare function registerSettingsPage(component: SettingsComponent): void;
declare const createComponent: Function;
declare module 'display' {
interface EventMap {
change: Event;
}
interface Display extends EventTarget<EventMap> {
interface Display
extends EventTarget<{
change: Event;
}> {
autoOff: boolean;

@@ -7,0 +7,0 @@ brightnessOverride: number | undefined;

declare module 'peer' {
interface PeerAppEventMap {
readystatechange: Event;
}
type ReadyState = 'unknown' | 'started' | 'stopped';
interface PeerApp extends EventTarget<PeerAppEventMap> {
interface PeerApp
extends EventTarget<{
readystatechange: Event;
}> {
onreadystatechange: (event: Event) => void;

@@ -8,0 +8,0 @@ readonly readyState: ReadyState;

declare module 'power' {
interface BatteryEventMap {
change: Event;
}
interface Battery extends EventTarget<BatteryEventMap> {
interface Battery
extends EventTarget<{
change: Event;
}> {
readonly chargeLevel: number;

@@ -16,3 +16,6 @@ readonly charging: boolean;

}
interface Charger extends EventTarget<ChargerEventMap> {
interface Charger
extends EventTarget<{
change: Event;
}> {
readonly connected: boolean;

@@ -19,0 +22,0 @@ onchange: (event: Event) => void;

declare module 'system' {
interface EventPressureMonitorEventMap {
memorypressurechange: Event;
}
interface MemoryPressureMonitor
extends EventTarget<EventPressureMonitorEventMap> {
extends EventTarget<{
memorypressurechange: Event;
}> {
onmemorypressurechange: (event: Event) => void;

@@ -8,0 +7,0 @@ readonly pressure: 'normal' | 'high' | 'critical';

@@ -5,3 +5,3 @@ declare module 'user-activity' {

}
interface Goals {
interface Goals extends EventTarget<{ reachgoal: Event }> {
readonly activeMinutes: number | undefined;

@@ -8,0 +8,0 @@ readonly calories: number | undefined;

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