mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-31 18:49:43 +08:00
fix(local-notifications): update type of the every property (#2825)
This commit is contained in:
parent
b9e9aa184e
commit
31e4058257
@ -16,6 +16,58 @@ export enum ELocalNotificationTriggerUnit {
|
|||||||
WEEK_OF_MONTH = 'weekOfMonth'
|
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 {
|
export interface ILocalNotificationTrigger {
|
||||||
/** ***** FIX ***** */
|
/** ***** FIX ***** */
|
||||||
|
|
||||||
@ -47,7 +99,7 @@ export interface ILocalNotificationTrigger {
|
|||||||
/**
|
/**
|
||||||
* The unit
|
* The unit
|
||||||
*/
|
*/
|
||||||
every?: ELocalNotificationTriggerUnit;
|
every?: ELocalNotificationTriggerUnit | ILocalNotificationEvery;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The end of the repeating notification
|
* The end of the repeating notification
|
||||||
|
Loading…
Reference in New Issue
Block a user