mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 00:12:53 +08:00
fix(onesignal): fix getPermissionSubscriptionState return type (#1742)
This commit is contained in:
parent
62c39b33c6
commit
3c125bbc84
@ -574,12 +574,11 @@ export class OneSignal extends IonicNativePlugin {
|
||||
|
||||
/**
|
||||
* 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 })
|
||||
getPermissionSubscriptionState(): OSPermissionSubscriptionState { return; }
|
||||
@Cordova()
|
||||
getPermissionSubscriptionState(): Promise<OSPermissionSubscriptionState> { return; }
|
||||
|
||||
/**
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user