From a46e308ea8beea02a114eaa023340bcff47f3a75 Mon Sep 17 00:00:00 2001 From: Alexander Vagner Date: Fri, 13 Sep 2019 15:38:23 +0300 Subject: [PATCH] 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 --- src/@ionic-native/plugins/firebase-x/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/@ionic-native/plugins/firebase-x/index.ts b/src/@ionic-native/plugins/firebase-x/index.ts index aa9a9bd44..e2aea91c6 100644 --- a/src/@ionic-native/plugins/firebase-x/index.ts +++ b/src/@ionic-native/plugins/firebase-x/index.ts @@ -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} */ @Cordova() - hasPermission(): Promise<{ isEnabled: boolean }> { + hasPermission(): Promise { return; }