Skip to content

Commit

Permalink
fix(local-notifications): update type of the every property (#2825)
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Bang Terkildsen authored and danielsogl committed Dec 1, 2018
1 parent 543fa64 commit b166cc5
Showing 1 changed file with 53 additions and 1 deletion.
54 changes: 53 additions & 1 deletion src/@ionic-native/plugins/local-notifications/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 ***** */

Expand Down Expand Up @@ -47,7 +99,7 @@ export interface ILocalNotificationTrigger {
/**
* The unit
*/
every?: ELocalNotificationTriggerUnit;
every?: ELocalNotificationTriggerUnit | ILocalNotificationEvery;

/**
* The end of the repeating notification
Expand Down

0 comments on commit b166cc5

Please sign in to comment.