fitbit-sdk-types
Advanced tools
Comparing version 6.0.3 to 7.0.0
{ | ||
"name": "fitbit-sdk-types", | ||
"version": "6.0.3", | ||
"version": "7.0.0", | ||
"author": "Sergio Morchón Poveda <sergio.morchon@outlook.com>", | ||
"description": "Types for Fitbit SDK.", | ||
"bin": { | ||
"fitbit-sdk-types": "scripts/index.js" | ||
}, | ||
"bin": "scripts/index.js", | ||
"files": [ | ||
@@ -41,10 +39,10 @@ "types/**/*.d.ts", | ||
"devDependencies": { | ||
"@types/node": "^14.14.21", | ||
"@typescript-eslint/eslint-plugin": "^4.13.0", | ||
"@typescript-eslint/parser": "^4.13.0", | ||
"eslint": "^7.10.0", | ||
"eslint-config-prettier": "^7.1.0", | ||
"prettier": "^2.2.1", | ||
"typescript": "^4.1.3" | ||
"@types/node": "^16.3.3", | ||
"@typescript-eslint/eslint-plugin": "^4.28.3", | ||
"@typescript-eslint/parser": "^4.28.3", | ||
"eslint": "^7.30.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"prettier": "^2.3.2", | ||
"typescript": "^4.3.5" | ||
} | ||
} |
@@ -13,4 +13,3 @@ declare module 'accelerometer' { | ||
AccelerometerReading, | ||
BatchedAccelerometerReading, | ||
BatchedSensorOptions | ||
BatchedAccelerometerReading | ||
>; | ||
@@ -17,0 +16,0 @@ |
@@ -9,7 +9,3 @@ declare module 'barometer' { | ||
type Barometer = Sensor< | ||
BarometerReading, | ||
BatchedBarometerReading, | ||
BatchedSensorOptions | ||
>; | ||
type Barometer = Sensor<BarometerReading, BatchedBarometerReading>; | ||
@@ -16,0 +12,0 @@ type BarometerConstructor = new (options?: BatchedSensorOptions) => Barometer; |
@@ -6,3 +6,3 @@ declare module 'body-presence' { | ||
type BodyPresenceSensor = Sensor<BodyPresenceReading, never, SensorOptions>; | ||
type BodyPresenceSensor = Sensor<BodyPresenceReading, never>; | ||
@@ -9,0 +9,0 @@ type BodyPresenceConstructor = new ( |
@@ -11,7 +11,3 @@ declare module 'gyroscope' { | ||
type Gyroscope = Sensor< | ||
GyroscopeReading, | ||
BatchedGyroscopeReading, | ||
BatchedSensorOptions | ||
>; | ||
type Gyroscope = Sensor<GyroscopeReading, BatchedGyroscopeReading>; | ||
@@ -18,0 +14,0 @@ type GyroscopeConstructor = new (options?: BatchedSensorOptions) => Gyroscope; |
@@ -11,4 +11,3 @@ declare module 'heart-rate' { | ||
HeartRateSensorReading, | ||
BatchedHeartRateSensorReading, | ||
BatchedSensorOptions | ||
BatchedHeartRateSensorReading | ||
>; | ||
@@ -15,0 +14,0 @@ |
@@ -19,4 +19,3 @@ declare module 'orientation' { | ||
OrientationSensorReading, | ||
BatchedOrientationSensorReading, | ||
BatchedSensorOptions | ||
BatchedOrientationSensorReading | ||
>; | ||
@@ -23,0 +22,0 @@ |
type BatchedSensorReading<Reading> = { | ||
[P in keyof Reading]: Reading[P] extends number | ||
? Float32Array | ||
? Uint32Array | ||
: Array<Reading[P]>; | ||
@@ -11,3 +11,3 @@ }; | ||
type Sensor<Reading extends SensorReading, BatchedReading, Options> = Reading & | ||
type Sensor<Reading extends SensorReading, BatchedReading> = Reading & | ||
EventTarget<{ | ||
@@ -14,0 +14,0 @@ activate: Event; |
@@ -40,2 +40,17 @@ declare module 'user-activity' { | ||
const primaryGoal: keyof Activity; | ||
interface WeekActivity { | ||
readonly activeZoneMinutes: number | undefined; | ||
} | ||
interface Week { | ||
readonly adjusted: WeekActivity; | ||
readonly local: WeekActivity; | ||
} | ||
const week: Week; | ||
interface WeekGoals extends WeekActivity, EventTarget<{ reachgoal: Event }> { | ||
onreachgoal: (event: Event) => void; | ||
} | ||
const weekGoals: WeekGoals; | ||
} |
@@ -85,3 +85,3 @@ declare const Fragment: (props: { children: JSX.Element }) => JSX.Element; | ||
name: string; | ||
} | ||
}, | ||
>(props: { | ||
@@ -88,0 +88,0 @@ title?: JSX.Element; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
62756
68
2033