diff --git a/src/@ionic-native/plugins/health/index.ts b/src/@ionic-native/plugins/health/index.ts index ed54ead6c..acfa5a4e2 100644 --- a/src/@ionic-native/plugins/health/index.ts +++ b/src/@ionic-native/plugins/health/index.ts @@ -219,7 +219,7 @@ export class Health { * In Android 6 and over, this function will also ask for some dynamic permissions if needed * (e.g. in the case of "distance", it will need access to ACCESS_FINE_LOCATION). * - * @param {Array} datatypes a list of data types you want to be granted access to. + * @param {(string|{ read: string[], write: string[] })[]} datatypes a list of data types you want to be granted access to. * * ``` * [ @@ -234,17 +234,17 @@ export class Health { * @return {Promise} */ @Cordova() - requestAuthorization(datatypes: Array): Promise { return; } + requestAuthorization(datatypes: (string|{ read: string[], write: string[] })[]): Promise { return; } /** * Check if the app has authorization to read/write a set of datatypes. * This function is similar to requestAuthorization() and has similar quirks. * - * @param {Array} datatypes a list of data types you want to be granted access to + * @param {(string|{ read: string[], write: string[] })[]} datatypes a list of data types you want to check access of, same as in requestAuthorization * @return {Promise} Returns a promise that resolves with a boolean that indicates the authorization status */ @Cordova() - isAuthorized(datatypes: Array): Promise { return; } + isAuthorized(datatypes: (string|{ read: string[], write: string[] })[]): Promise { return; } /** * Gets all the data points of a certain data type within a certain time window.