refactor(): update return value in hasPermission() (#2023)

This commit is contained in:
Rene Escobar 2017-10-05 23:21:34 -04:00 committed by Ibby Hadeed
parent 6ca5beaf0b
commit 3d0a12d40d

View File

@ -71,10 +71,10 @@ export class Firebase extends IonicNativePlugin {
/**
* Check permission to receive push notifications
* @return {Promise<any>}
* @return {Promise<{isEnabled: boolean}>}
*/
@Cordova()
hasPermission(): Promise<any> { return; }
hasPermission(): Promise<{isEnabled: boolean}> { return; }
/**
* Set icon badge number. Set to 0 to clear the badge.