Update ts types

This commit is contained in:
Ryan Grey 2018-08-10 10:15:04 +01:00
parent ab42108234
commit a8b4435abf
1 changed files with 4 additions and 1 deletions

5
lib/index.d.ts vendored
View File

@ -1106,6 +1106,9 @@ declare module 'react-native-firebase' {
deleteChannel(channelId: string): Promise<void>;
}
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>
): () => any;
onNotificationOpened(