Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(health): add wrapper for cordova-plugin-health #1039

Merged
merged 10 commits into from
Mar 2, 2017
4 changes: 2 additions & 2 deletions src/plugins/health.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export class Health {
*
* This function is only available on Android.
*
* @return successCallback: {type: function()}, called if the function was called
* @return {Promise<any>} {type: function()}, called if the function was called
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of this should be removed:

 {type: function()}, called if the function was called
     * errorCallback: {type: function(err)}, called if something went wrong		     * errorCallback: {type: function(err)}, called if something went wrong

All what it needs is @return {Promise<any>}

You can add additional description such as:

@returns {Promise<any>} returns a promise that resolves when (something happens) and rejects if (something else happens).

* errorCallback: {type: function(err)}, called if something went wrong
*/
@Cordova({
Expand Down Expand Up @@ -229,7 +229,7 @@ export class Health {
*
* @param {Array<String>} datatypes a list of data types you want to be granted access to
*
* @return successCallback: {type: function}, called if all OK
* @return {Promise<any>}: {type: function}, called if all OK
* errorCallback: {type: function(err)}, called if something went wrong,
* err contains a textual description of the problem

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra lines like this one should be removed

Expand Down