mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-01 02:53:03 +08:00
refactor(): update return value in hasPermission() (#2023)
This commit is contained in:
parent
6ca5beaf0b
commit
3d0a12d40d
@ -71,10 +71,10 @@ export class Firebase extends IonicNativePlugin {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Check permission to receive push notifications
|
* Check permission to receive push notifications
|
||||||
* @return {Promise<any>}
|
* @return {Promise<{isEnabled: boolean}>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
hasPermission(): Promise<any> { return; }
|
hasPermission(): Promise<{isEnabled: boolean}> { return; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set icon badge number. Set to 0 to clear the badge.
|
* Set icon badge number. Set to 0 to clear the badge.
|
||||||
|
Loading…
Reference in New Issue
Block a user