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 0.1.0 to 0.1.1

companion/fetch.d.ts

2

companion/companion.d.ts

@@ -20,3 +20,3 @@ declare module 'companion' {

}
interface Companion extends StrictEventListener<EventMap> {
interface Companion extends EventTarget<EventMap> {
readonly applicationId: string;

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

@@ -12,3 +12,3 @@ declare module 'file-transfer' {

interface FileTransferOptions {}
interface FileTransfer extends StrictEventListener<FileTransferEventMap> {
interface FileTransfer extends EventTarget<FileTransferEventMap> {
readonly name: string;

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

@@ -8,3 +8,3 @@ interface StorageChangeEvent extends Event {

extends Storage,
StrictEventListener<{
EventTarget<{
change: StorageChangeEvent;

@@ -11,0 +11,0 @@ }> {

@@ -6,3 +6,3 @@ declare module 'peer' {

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

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

@@ -0,3 +1,5 @@

/// <reference path="../shared/globals.d.ts" />
/// <reference path="../shared/console.d.ts" />
/// <reference path="../shared/event.d.ts" />
/// <reference path="../shared/permissions.d.ts" />
/// <reference path="../shared/strict-event-listener.d.ts" />
/// <reference path="../shared/device.d.ts" />

@@ -7,1 +9,2 @@ /// <reference path="../shared/geolocation.d.ts" />

/// <reference path="../shared/locale-settings.d.ts" />
/// <reference path="../shared/cbor.d.ts" />
declare module 'display' {
interface EventMap {
change: Event;
patata: string;
}
interface Display extends StrictEventListener<EventMap> {
interface Display extends EventTarget<EventMap> {
autoOff: boolean;

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

@@ -44,7 +44,21 @@ declare module 'document' {

}
interface AnimationEvent extends Event {
readonly elapsedTime: number;
}
interface KeyboardEvent extends Event {
readonly key: string;
}
interface MouseEvent extends Event {
readonly screenX: number;
readonly screenY: number;
}
interface ActivateEvent extends Event {
readonly command: 'back' | 'exit' | 'home' | 'ok' | 'select';
readonly screenX: number;
readonly screenY: number;
}
interface EventHandler {
(event: Event): boolean;
}
interface GlobalEvents extends StrictEventListener<EventMap> {
interface GlobalEvents extends EventTarget<EventMap> {
onactivate: (event: Event) => void;

@@ -51,0 +65,0 @@ onanimationend: (event: AnimationEvent) => void;

@@ -6,3 +6,3 @@ declare module 'file-transfer' {

type FileName = string;
interface Inbox extends StrictEventListener<EventMap> {
interface Inbox extends EventTarget<EventMap> {
onnewfile: (event: Event) => void;

@@ -9,0 +9,0 @@ nextFile(): FileName | undefined;

@@ -5,3 +5,3 @@ declare module 'power' {

}
interface Battery extends StrictEventListener<BatteryEventMap> {
interface Battery extends EventTarget<BatteryEventMap> {
readonly chargeLevel: number;

@@ -17,3 +17,3 @@ readonly charging: boolean;

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

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

type BatchedReading<Reading> = { [P in keyof Reading]: Array<Reading[P]> };
interface Sensor<BatchReading extends {}, EventMap = {}>
extends StrictEventListener<
extends EventTarget<
EventMap & {

@@ -6,0 +6,0 @@ activate: Event;

@@ -0,3 +1,5 @@

/// <reference path="../shared/globals.d.ts" />
/// <reference path="../shared/console.d.ts" />
/// <reference path="../shared/event.d.ts" />
/// <reference path="../shared/permissions.d.ts" />
/// <reference path="../shared/strict-event-listener.d.ts" />
/// <reference path="../shared/device.d.ts" />

@@ -7,1 +9,2 @@ /// <reference path="../shared/geolocation.d.ts" />

/// <reference path="../shared/locale-settings.d.ts" />
/// <reference path="../shared/cbor.d.ts" />

@@ -6,3 +6,3 @@ declare module 'system' {

interface MemoryPressureMonitor
extends StrictEventListener<EventPressureMonitorEventMap> {
extends EventTarget<EventPressureMonitorEventMap> {
onmemorypressurechange: (event: Event) => void;

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

{
"name": "fitbit-sdk-types",
"version": "0.1.0",
"version": "0.1.1",
"description": "Work in progress. Types for Fitbit SDK.",

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

declare module 'geolocation' {
type WatchId = number;
interface PositionErrorCallback {}
interface PositionCallback {}
interface Geolocation {

@@ -31,4 +33,11 @@ clearWatch(watchId: WatchId): void;

};
interface PositionError {
readonly PERMISSION_DENIED: typeof PositionErrorCode.PERMISSION_DENIED;
readonly POSITION_UNAVAILABLE: typeof PositionErrorCode.POSITION_UNAVAILABLE;
readonly TIMEOUT: typeof PositionErrorCode.TIMEOUT;
readonly code: PositionErrorCode;
readonly message: string;
}
export const geolocation: Geolocation;
}

@@ -26,3 +26,3 @@ declare module 'messaging' {

}
interface MessageSocket extends StrictEventListener<EventMap> {}
interface MessageSocket extends EventTarget<EventMap> {}
class MessageSocket {

@@ -29,0 +29,0 @@ readonly CLOSED: 'CLOSED';

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