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 7.0.3 to 7.0.4

2

package.json
{
"name": "fitbit-sdk-types",
"version": "7.0.3",
"version": "7.0.4",
"author": "Sergio Morchón Poveda <sergio.morchon@outlook.com>",

@@ -5,0 +5,0 @@ "description": "Types for Fitbit SDK.",

@@ -27,8 +27,3 @@ declare module 'companion' {

readonly launchReasons: LaunchReasons;
onunload: (event: Event) => void;
monitorSignificantLocationChanges: boolean;
onsignificantlocationchange: (
event: SignificantLocationChangeEvent,
) => void;
onwakeinterval: (event: Event) => void;
wakeInterval: number | undefined;

@@ -35,0 +30,0 @@ yield(): void;

@@ -8,3 +8,2 @@ declare module 'file-transfer' {

readonly name: string;
onchange: (event: Event) => void;
readonly readyState:

@@ -42,3 +41,2 @@ | 'canceled'

}> {
onnewfile: (event: Event) => void;
pop(): Promise<InboxItem>;

@@ -45,0 +43,0 @@ }

@@ -10,4 +10,2 @@ interface StorageChangeEvent extends Event {

change: StorageChangeEvent;
}> {
onchange: (event: StorageChangeEvent) => void;
}
}> {}

@@ -7,3 +7,2 @@ declare module 'peer' {

}> {
onreadystatechange: (event: Event) => void;
readonly readyState: ReadyState;

@@ -10,0 +9,0 @@ }

@@ -34,6 +34,2 @@ declare class MessageEvent extends Event {

binaryType: BinaryType;
onclose: ((event: CloseEvent) => void) | void;
onerror: ((event: Event) => void) | void;
onmessage: ((event: MessageEvent) => void) | void;
onopen: ((event: Event) => void) | void;

@@ -40,0 +36,0 @@ readonly readyState:

@@ -11,3 +11,2 @@ declare module 'appbit' {

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

@@ -14,0 +13,0 @@ }

@@ -10,3 +10,2 @@ declare module 'clock' {

granularity: 'off' | 'seconds' | 'minutes' | 'hours';
ontick: (event: TickEvent) => void;
}

@@ -13,0 +12,0 @@

@@ -14,3 +14,2 @@ declare module 'display' {

on: boolean;
onchange: (event: Event) => void;
poke(): void;

@@ -17,0 +16,0 @@ }

@@ -59,32 +59,2 @@ interface ListScrollEvent extends Event {

unselect: Event;
}> {
onactivate: (event: Event) => void;
onanimationend: (event: AnimationEvent) => void;
onanimationiteration: (event: AnimationEvent) => void;
onanimationstart: (event: AnimationEvent) => void;
/** @since 5.0 */
onbeforeunload: (event: Event) => void;
onclick: (event: MouseEvent) => void;
oncollapse: (event: Event) => void;
ondisable: (event: Event) => void;
onenable: (event: Event) => void;
onexpand: (event: Event) => void;
onhighlight: (event: Event) => void;
onkeydown: (event: KeyboardEvent) => void;
onkeypress: (event: KeyboardEvent) => void;
onkeyup: (event: KeyboardEvent) => void;
onlistbackward: (event: ListScrollEvent) => void;
onlistforward: (event: ListScrollEvent) => void;
onload: (event: LoadEvent) => void;
onmousedown: (event: MouseEvent) => void;
onmousemove: (event: MouseEvent) => void;
onmouseout: (event: MouseEvent) => void;
onmouseover: (event: MouseEvent) => void;
onmouseup: (event: MouseEvent) => void;
onpagescroll: (event: PageScrollEvent) => void;
onreload: (event: Event) => void;
onselect: (event: Event) => void;
onunhighlight: (event: Event) => void;
onunload: (event: Event) => void;
onunselect: (event: Event) => void;
}
}> {}

@@ -51,4 +51,2 @@ declare module 'exercise' {

readonly type: string | undefined;
onstatechange(event: Event): void;
onswimlength(event: SwimLengthEvent): void;
pause(): void;

@@ -55,0 +53,0 @@ resume(): void;

@@ -7,3 +7,2 @@ declare module 'file-transfer' {

readonly name: string;
onchange: (event: Event) => void;
readonly readyState:

@@ -31,3 +30,2 @@ | 'canceled'

}> {
onnewfile: (event: Event) => void;
nextFile(name?: string): string | undefined;

@@ -34,0 +32,0 @@ }

@@ -8,3 +8,2 @@ declare module 'power' {

readonly charging: boolean;
onchange: (event: Event) => void;
readonly timeUntilFull: number;

@@ -18,3 +17,2 @@ }

readonly connected: boolean;
onchange: (event: Event) => void;
readonly powerIsGood: boolean | undefined;

@@ -21,0 +19,0 @@ }

@@ -17,5 +17,2 @@ type BatchedSensorReading<Reading> = {

}> & {
onactivate: (event: Event) => void;
onerror: (event: SensorErrorEvent) => void;
onreading: (event: Event) => void;
readonly readings: BatchedReading;

@@ -31,3 +28,3 @@ readonly activated: boolean;

readonly error: Error;
readonly target: EventTarget;
readonly target: EventTarget<{}>;
readonly type: string;

@@ -34,0 +31,0 @@ }

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

}> {
onmemorypressurechange: (event: Event) => void;
readonly pressure: 'normal' | 'high' | 'critical';

@@ -9,0 +8,0 @@ }

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

}
interface Goals extends Activity, EventTarget<{ reachgoal: Event }> {
onreachgoal: (event: Event) => void;
}
interface Goals extends Activity, EventTarget<{ reachgoal: Event }> {}
const goals: Goals;

@@ -51,7 +49,5 @@ interface Today {

interface WeekGoals extends WeekActivity, EventTarget<{ reachgoal: Event }> {
onreachgoal: (event: Event) => void;
}
interface WeekGoals extends WeekActivity, EventTarget<{ reachgoal: Event }> {}
const weekGoals: WeekGoals;
}

@@ -1,2 +0,2 @@

interface EventTarget<EventMap = {}> {
type EventTarget<EventMap> = {
addEventListener<EventName extends keyof EventMap>(

@@ -10,7 +10,11 @@ eventName: EventName,

): void;
}
} & {
[EventName in keyof EventMap as `on${string & EventName}`]: (
event: EventMap[EventName],
) => void;
};
declare class Event {
readonly defaultPrevented: boolean;
readonly target: EventTarget;
readonly target: EventTarget<{}>;
readonly type: string;

@@ -17,0 +21,0 @@ preventDefault(): void;

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