[types] Add missing constructors
This commit is contained in:
parent
c1abfcf002
commit
c27918c53c
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue