feat(health-kit): add missing properties to HealthKitOptions

feat(health-kit): add missing properties to HealthKitOptions
This commit is contained in:
Daniel Sogl 2018-03-17 00:50:40 +01:00 committed by GitHub
commit 0325d09472
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@ export interface HealthKitOptions {
* HKWorkoutActivityType constant * HKWorkoutActivityType constant
* Read more here: https://developer.apple.com/library/ios/documentation/HealthKit/Reference/HKWorkout_Class/#//apple_ref/c/tdef/HKWorkoutActivityType * Read more here: https://developer.apple.com/library/ios/documentation/HealthKit/Reference/HKWorkout_Class/#//apple_ref/c/tdef/HKWorkoutActivityType
*/ */
activityType?: string; // activityType?: string;
/** /**
* 'hour', 'week', 'year' or 'day', default 'day' * 'hour', 'week', 'year' or 'day', default 'day'
@ -18,6 +18,12 @@ export interface HealthKitOptions {
*/ */
amount?: number; amount?: number;
/**
* specifies if the data returned by querySampleType() should be sorted by
* end date in ascending order, default is false
*/
ascending?: boolean;
/** /**
* *
*/ */
@ -63,6 +69,11 @@ export interface HealthKitOptions {
*/ */
extraData?: any; extraData?: any;
/**
* limits the maximum number of records returned by querySampleType()
*/
limit?: number;
/** /**
* *
*/ */