fix(firebase-x): adjust typings for hasPermission (#3161)

Current version of plugin has change, described in https://github.com/dpa99c/cordova-plugin-firebasex#breaking-api-changes, this commit fixed `hasPermission()` method typings
This commit is contained in:
Alexander Vagner 2019-09-13 15:38:23 +03:00 committed by Daniel Sogl
parent 8b3b2a4b27
commit a46e308ea8

View File

@ -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;
}