mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-22 01:19:36 +08:00
Fix 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:
parent
8b3b2a4b27
commit
650615e883
@ -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).
|
* 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()
|
@Cordova()
|
||||||
hasPermission(): Promise<{ isEnabled: boolean }> {
|
hasPermission(): Promise<boolean> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user