Skip to content

Commit

Permalink
fix: fixes type definition for PowerRecordResult where samples would …
Browse files Browse the repository at this point in the history
…be missing time field
  • Loading branch information
ugurakin1 committed Oct 8, 2024
1 parent 9fd3335 commit f07bfe2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types/results.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type {
IntervalRecord,
LengthResult,
MassResult,
PowerResult,
PowerSampleResult,
PressureResult,
SpeedSampleResult,
VolumeResult,
Expand Down Expand Up @@ -274,7 +274,7 @@ interface TotalCaloriesBurnedRecordResult
interface OxygenSaturationRecordResult extends OxygenSaturationRecord {}

interface PowerRecordResult
extends Replace<PowerRecord, 'samples', PowerResult[]> {}
extends Replace<PowerRecord, 'samples', PowerSampleResult[]> {}

export type HealthConnectRecordResult =
| ActiveCaloriesBurnedRecordResult
Expand Down

0 comments on commit f07bfe2

Please sign in to comment.