fix: types for request permission
Currently returns void rather than a promise which causes TypeScript compilation to fail.
This commit is contained in:
parent
4173318379
commit
b06d68e39e
2
lib/index.d.ts
vendored
2
lib/index.d.ts
vendored
@ -954,7 +954,7 @@ declare module "react-native-firebase" {
|
||||
* IOS
|
||||
* Requests app notification permissions in an Alert dialog.
|
||||
*/
|
||||
requestPermissions(): void
|
||||
requestPermissions(): Promise<{ granted: boolean }>;
|
||||
|
||||
/**
|
||||
* Sets the badge number on the iOS app icon.
|
||||
|
Loading…
x
Reference in New Issue
Block a user