From b06d68e39e7e82230f476b176440b6110324e5d0 Mon Sep 17 00:00:00 2001 From: Ifiok Jr Date: Fri, 23 Mar 2018 06:32:32 +0000 Subject: [PATCH] fix: types for request permission Currently returns void rather than a promise which causes TypeScript compilation to fail. --- lib/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.d.ts b/lib/index.d.ts index 29b931f1..205580ac 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -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.