[types] Add missing constructors

This commit is contained in:
Chris Bianca 2018-04-13 08:14:28 +01:00
parent c1abfcf002
commit c27918c53c
1 changed files with 8 additions and 2 deletions

10
lib/index.d.ts vendored
View File

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