From 31e405825766c5dd5c6576e3674586ecc7b9bdf6 Mon Sep 17 00:00:00 2001 From: Simon Bang Terkildsen Date: Sat, 1 Dec 2018 16:06:27 +0100 Subject: [PATCH] fix(local-notifications): update type of the every property (#2825) --- .../plugins/local-notifications/index.ts | 54 ++++++++++++++++++- 1 file changed, 53 insertions(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/local-notifications/index.ts b/src/@ionic-native/plugins/local-notifications/index.ts index bd6917ebc..406df36fb 100755 --- a/src/@ionic-native/plugins/local-notifications/index.ts +++ b/src/@ionic-native/plugins/local-notifications/index.ts @@ -16,6 +16,58 @@ export enum ELocalNotificationTriggerUnit { WEEK_OF_MONTH = 'weekOfMonth' } +export interface ILocalNotificationEvery { + /** + * The minute. + */ + minute?: number; + + /** + * The hour. + */ + hour?: number; + + /** + * The day. + */ + day?: number; + + /** + * The day of week. + */ + weekday?: number; + + /** + * The week of yeaday of the ardinal week. + */ + week?: number; + + /** + * The day of the ordinal week. + */ + weekdayOrdinal?: number; + + /** + * The week of month. + */ + weekOfMonth?: number; + + /** + * The month. + */ + month?: number; + + /** + * The quarter. + */ + quarter?: number; + + /** + * The year. + */ + year?: number; +} + export interface ILocalNotificationTrigger { /** ***** FIX ***** */ @@ -47,7 +99,7 @@ export interface ILocalNotificationTrigger { /** * The unit */ - every?: ELocalNotificationTriggerUnit; + every?: ELocalNotificationTriggerUnit | ILocalNotificationEvery; /** * The end of the repeating notification