Commit be7a3e1
authored
[patch] make handler for promptForPushNotificationsWithUserResponse required in index.d.ts
The original types suggest that the handler is optional. However, running `OneSignal.promptForPushNotificationsWithUserRespons()`(without providing a handler) results in an "Invariant Violation: A valid callback must be supplied" error.
Seeing as all the other methods have their handlers as required, I figured the bug was with the types and not the actual implementation.1 parent 7bf6cfa commit be7a3e1
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| |||
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
396 | | - | |
| 396 | + | |
0 commit comments