diff --git a/lib/index.d.ts b/lib/index.d.ts index 65bf3579..1c5450de 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -1106,6 +1106,9 @@ declare module 'react-native-firebase' { deleteChannel(channelId: string): Promise; } + type BackgroundFetchResultValue = string; + type CompletionHandler = (backgroundFetchResult: BackgroundFetchResultValue) => void; + interface Notifications { android: AndroidNotifications; @@ -1135,7 +1138,7 @@ declare module 'react-native-firebase' { ): () => any; onNotificationDisplayed( - listener: (notification: Notification) => any + listener: (notification: Notification, done: CompletionHandler) => Promise ): () => any; onNotificationOpened(