fix(onesignal): fix getPermissionSubscriptionState return type (#1742)

This commit is contained in:
neoassyrian 2017-06-29 16:42:09 +10:00 committed by Ibby Hadeed
parent 62c39b33c6
commit 3c125bbc84

View File

@ -574,12 +574,11 @@ export class OneSignal extends IonicNativePlugin {
/** /**
* Get the current notification and permission state. Returns a OSPermissionSubscriptionState type described below. * Get the current notification and permission state. Returns a OSPermissionSubscriptionState type described below.
* You can pass true later to opt users back into notifications.
* *
* @param {boolean} enable * @returns {Promise<OSPermissionSubscriptionState>}
*/ */
@Cordova({ sync: true }) @Cordova()
getPermissionSubscriptionState(): OSPermissionSubscriptionState { return; } getPermissionSubscriptionState(): Promise<OSPermissionSubscriptionState> { return; }
/** /**
* *