From 96e9b19732f4bc59c7525a12083e002ee2f75616 Mon Sep 17 00:00:00 2001 From: Mark de Groot Date: Wed, 15 Apr 2020 21:21:18 +0200 Subject: [PATCH] fix(health): HealthQueryOptionsAggregated bucket optional (#3370) As said in the comment: `if specified, aggregation is grouped an array of "buckets" (windows of time),` the `bucket` field in `HealthQueryOptionsAggregated` should be optional. --- src/@ionic-native/plugins/health/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/health/index.ts b/src/@ionic-native/plugins/health/index.ts index 4d3b78c2..3d2623be 100644 --- a/src/@ionic-native/plugins/health/index.ts +++ b/src/@ionic-native/plugins/health/index.ts @@ -75,7 +75,7 @@ export interface HealthQueryOptionsAggregated { * if specified, aggregation is grouped an array of "buckets" (windows of time), * supported values are: 'hour', 'day', 'week', 'month', 'year'. */ - bucket: string; + bucket?: string; /** * In Android, it is possible to query for "raw" steps or to select those as filtered by the Google Fit app.