[types] Add missing typescript statics for messaging, notifications and links
This commit is contained in:
parent
1838089684
commit
590d69ce89
|
@ -30,9 +30,9 @@ declare module "react-native-firebase" {
|
||||||
firestore: FirebaseModuleAndStatics<RNFirebase.firestore.Firestore, RNFirebase.firestore.FirestoreStatics>;
|
firestore: FirebaseModuleAndStatics<RNFirebase.firestore.Firestore, RNFirebase.firestore.FirestoreStatics>;
|
||||||
iid: FirebaseModuleAndStatics<RNFirebase.iid.InstanceId>
|
iid: FirebaseModuleAndStatics<RNFirebase.iid.InstanceId>
|
||||||
// invites: FirebaseModuleAndStatics<RNFirebase.invites.Invites>
|
// invites: FirebaseModuleAndStatics<RNFirebase.invites.Invites>
|
||||||
links: FirebaseModuleAndStatics<RNFirebase.links.Links>;
|
links: FirebaseModuleAndStatics<RNFirebase.links.Links, RNFirebase.links.LinksStatics>;
|
||||||
messaging: FirebaseModuleAndStatics<RNFirebase.messaging.Messaging>;
|
messaging: FirebaseModuleAndStatics<RNFirebase.messaging.Messaging, RNFirebase.messaging.MessagingStatics>;
|
||||||
notifications: FirebaseModuleAndStatics<RNFirebase.notifications.Notifications>;
|
notifications: FirebaseModuleAndStatics<RNFirebase.notifications.Notifications, RNFirebase.notifications.NotificationsStatics>;
|
||||||
// perf: FirebaseModuleAndStatics<RNFirebase.perf.Perf>;
|
// perf: FirebaseModuleAndStatics<RNFirebase.perf.Perf>;
|
||||||
storage: FirebaseModuleAndStatics<RNFirebase.storage.Storage>;
|
storage: FirebaseModuleAndStatics<RNFirebase.storage.Storage>;
|
||||||
// utils: FirebaseModuleAndStatics<RNFirebase.utils.Utils>;
|
// utils: FirebaseModuleAndStatics<RNFirebase.utils.Utils>;
|
||||||
|
@ -940,6 +940,10 @@ declare module "react-native-firebase" {
|
||||||
setTo(to: string): RemoteMessage
|
setTo(to: string): RemoteMessage
|
||||||
setTtl(ttl: number): RemoteMessage
|
setTtl(ttl: number): RemoteMessage
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface MessagingStatics {
|
||||||
|
RemoteMessage: RemoteMessage;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace iid {
|
namespace iid {
|
||||||
|
@ -1287,6 +1291,24 @@ declare module "react-native-firebase" {
|
||||||
thumbnailClippingRect: any
|
thumbnailClippingRect: any
|
||||||
thumbnailTime: string
|
thumbnailTime: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface NotificationsStatics {
|
||||||
|
Android: {
|
||||||
|
Action: Android.Action,
|
||||||
|
BadgeIconType: Android.BadgeIconType,
|
||||||
|
Category: Android.Category,
|
||||||
|
Channel: Android.Channel,
|
||||||
|
ChannelGroup: Android.ChannelGroup,
|
||||||
|
Defaults: Android.Defaults,
|
||||||
|
GroupAlert: Android.GroupAlert,
|
||||||
|
Importance: Android.Importance,
|
||||||
|
Priority: Android.Priority,
|
||||||
|
RemoteInput: Android.RemoteInput,
|
||||||
|
SemanticAction: Android.SemanticAction,
|
||||||
|
Visibility: Android.Visibility,
|
||||||
|
};
|
||||||
|
Notification: Notification;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace crash {
|
namespace crash {
|
||||||
|
@ -1426,6 +1448,10 @@ declare module "react-native-firebase" {
|
||||||
setImageUrl(imageUrl: string): DynamicLink
|
setImageUrl(imageUrl: string): DynamicLink
|
||||||
setTitle(title: string): DynamicLink
|
setTitle(title: string): DynamicLink
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface LinksStatics {
|
||||||
|
DynamicLink: DynamicLink;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace firestore {
|
namespace firestore {
|
||||||
|
|
Loading…
Reference in New Issue