From c27918c53c0468b2907208dcd5d6c52ce7d39eaa Mon Sep 17 00:00:00 2001 From: Chris Bianca Date: Fri, 13 Apr 2018 08:14:28 +0100 Subject: [PATCH] [types] Add missing constructors --- lib/index.d.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/index.d.ts b/lib/index.d.ts index 0e096ce8..b457f4cb 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -923,7 +923,7 @@ declare module "react-native-firebase" { unsubscribeFromTopic(topic: string): void } - interface RemoteMessage { + class RemoteMessage { collapseKey?: string data: Object from?: string @@ -933,6 +933,8 @@ declare module "react-native-firebase" { to?: string ttl?: number + constructor(); + setCollapseKey(collapseKey: string): RemoteMessage setData(data: Object): RemoteMessage setMessageId(messageId: string): RemoteMessage @@ -1016,6 +1018,8 @@ declare module "react-native-firebase" { subtitle?: string title: string + constructor(); + setBody(body: string): Notification setData(data: any): Notification setNotificationId(notificationId: string): Notification @@ -1400,13 +1404,15 @@ declare module "react-native-firebase" { onLink(listener: (url: string) => void): () => void; } - interface DynamicLink { + class DynamicLink { analytics: AnalyticsParameters android: AndroidParameters ios: IOSParameters itunes: ITunesParameters navigation: NavigationParameters social: SocialParameters + + constructor(link: string, dynamicLinkDomain: string); } interface AnalyticsParameters {