From 70a9394e735c25a28b3d983c81ece561303989b7 Mon Sep 17 00:00:00 2001 From: Daniel Prado Date: Tue, 24 Oct 2017 10:55:57 -0200 Subject: [PATCH] Fix typings --- index.d.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.d.ts b/index.d.ts index f490311..b66f0df 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" -- 2.26.2