fix: types for request permission

Currently returns void rather than a promise which causes TypeScript compilation to fail.
This commit is contained in:
Ifiok Jr 2018-03-23 06:32:32 +00:00 committed by GitHub
parent 4173318379
commit b06d68e39e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

2
lib/index.d.ts vendored
View File

@ -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.