Skip to content

Commit

Permalink
Add eventType enum
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-john-nguyen committed Jan 6, 2023
1 parent 1e31b1d commit 14ad4a3
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -498,11 +498,22 @@ declare module 'react-native-health' {
locations: LocationValue[]
}

export enum EventType {
Pause = 'pause',
Resume = 'resume',
MotionPaused = 'motion paused',
MotionResumed = 'motion resumed',
PausedOrResumeRequest = 'pause or resume request',
Lap = 'lap',
Segment = 'segment',
Marker = 'marker'
}

export type HKWorkoutEventType = {
endDate: string
startDate: string
eventTypeInt: number
eventType: string
eventType: EventType
}

export interface HKWorkoutQueriedSampleType {
Expand Down

0 comments on commit 14ad4a3

Please sign in to comment.