Skip to content

Commit

Permalink
fix(onesignal): fix getPermissionSubscriptionState return type (#1742)
Browse files Browse the repository at this point in the history
  • Loading branch information
neoassyrian authored and ihadeed committed Jun 29, 2017
1 parent 62c39b3 commit 3c125bb
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/@ionic-native/plugins/onesignal/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

/**
*
Expand Down

0 comments on commit 3c125bb

Please sign in to comment.