fix(local-notifications): update type of the every property (#2825)

This commit is contained in:
Simon Bang Terkildsen 2018-12-01 16:06:27 +01:00 committed by Daniel
parent 543fa64b35
commit b166cc51ea

View File

@ -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