diff --git a/index.d.ts b/index.d.ts index f49031180e564970743f24f2359d7e24fd244bad..b66f0df171b681b29488cb4c15b2d71ea78b1ef7 100644 --- a/index.d.ts +++ b/index.d.ts @@ -25,7 +25,7 @@ declare module "react-native-fcm" { const Local = "local_notification"; } - export interface Notification { + export interface Notification { collapse_key: string; opened_from_tray: boolean; from: string; @@ -37,6 +37,7 @@ declare module "react-native-fcm" { local_notification?: boolean; _notificationType: string; finish(type?: string): void; + [key: string]: any; } export interface LocalNotification { @@ -59,12 +60,12 @@ declare module "react-native-fcm" { auto_cancel?: boolean; group?: string; picture?: string; - my_custom_data?: string; ongoing?: boolean; lights?: boolean; + [key: string]: any; } - export interface ScheduleLocalNotification extends LocalNotification{ + export interface ScheduleLocalNotification extends LocalNotification { id: string; fire_date: number; repeat_interval?: "week" | "day" | "hour"