Skip to content

Commit 2e390bc

Browse files
author
Rodrigo Gomez Palacio
authored
Merge pull request OneSignal#1162 from IkeyBenz/patch-1
[patch] make handler for promptForPushNotificationsWithUserResponse r…
2 parents 95a04ab + e6ccaa0 commit 2e390bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ declare module 'react-native-onesignal' {
182182
* @param {(response:boolean)=>void} handler
183183
* @returns void
184184
*/
185-
promptForPushNotificationsWithUserResponse(handler?: (response: boolean) => void): void;
185+
promptForPushNotificationsWithUserResponse(handler: (response: boolean) => void): void;
186186

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

0 commit comments

Comments
 (0)