Skip to content

Commit

Permalink
fix(firebase-x): adjust typings for hasPermission (#3161)
Browse files Browse the repository at this point in the history
Current version of plugin has change, described in https://github.com/dpa99c/cordova-plugin-firebasex#breaking-api-changes, this commit fixed `hasPermission()` method typings
  • Loading branch information
AlexanderVagner authored and danielsogl committed Sep 13, 2019
1 parent 8b3b2a4 commit a46e308
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/@ionic-native/plugins/firebase-x/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,10 @@ export class FirebaseX extends IonicNativePlugin {

/**
* Check permission to receive push notifications and return hasPermission: true. iOS only (Android will always return true).
* @return {Promise<{isEnabled: boolean}>}
* @return {Promise<boolean>}
*/
@Cordova()
hasPermission(): Promise<{ isEnabled: boolean }> {
hasPermission(): Promise<boolean> {
return;
}

Expand Down

0 comments on commit a46e308

Please sign in to comment.