Skip to content

Commit

Permalink
Merge pull request #1162 from IkeyBenz/patch-1
Browse files Browse the repository at this point in the history
[patch] make handler for promptForPushNotificationsWithUserResponse r…
  • Loading branch information
rgomezp authored Jul 9, 2021
2 parents 95a04ab + e6ccaa0 commit 2e390bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ declare module 'react-native-onesignal' {
* @param {(response:boolean)=>void} handler
* @returns void
*/
promptForPushNotificationsWithUserResponse(handler?: (response: boolean) => void): void;
promptForPushNotificationsWithUserResponse(handler: (response: boolean) => void): void;

/**
* Only applies to iOS (does nothing on Android as it always silently registers)
Expand Down Expand Up @@ -461,4 +461,4 @@ declare module 'react-native-onesignal' {
}
const OneSignal: OneSignal;
export default OneSignal;
}
}

0 comments on commit 2e390bc

Please sign in to comment.