Skip to content

Commit b166cc5

Browse files
Simon Bang Terkildsendanielsogl
Simon Bang Terkildsen
authored andcommitted
fix(local-notifications): update type of the every property (#2825)
1 parent 543fa64 commit b166cc5

File tree

1 file changed

+53
-1
lines changed
  • src/@ionic-native/plugins/local-notifications

1 file changed

+53
-1
lines changed

src/@ionic-native/plugins/local-notifications/index.ts

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,58 @@ export enum ELocalNotificationTriggerUnit {
1616
WEEK_OF_MONTH = 'weekOfMonth'
1717
}
1818

19+
export interface ILocalNotificationEvery {
20+
/**
21+
* The minute.
22+
*/
23+
minute?: number;
24+
25+
/**
26+
* The hour.
27+
*/
28+
hour?: number;
29+
30+
/**
31+
* The day.
32+
*/
33+
day?: number;
34+
35+
/**
36+
* The day of week.
37+
*/
38+
weekday?: number;
39+
40+
/**
41+
* The week of yeaday of the ardinal week.
42+
*/
43+
week?: number;
44+
45+
/**
46+
* The day of the ordinal week.
47+
*/
48+
weekdayOrdinal?: number;
49+
50+
/**
51+
* The week of month.
52+
*/
53+
weekOfMonth?: number;
54+
55+
/**
56+
* The month.
57+
*/
58+
month?: number;
59+
60+
/**
61+
* The quarter.
62+
*/
63+
quarter?: number;
64+
65+
/**
66+
* The year.
67+
*/
68+
year?: number;
69+
}
70+
1971
export interface ILocalNotificationTrigger {
2072
/** ***** FIX ***** */
2173

@@ -47,7 +99,7 @@ export interface ILocalNotificationTrigger {
4799
/**
48100
* The unit
49101
*/
50-
every?: ELocalNotificationTriggerUnit;
102+
every?: ELocalNotificationTriggerUnit | ILocalNotificationEvery;
51103

52104
/**
53105
* The end of the repeating notification

0 commit comments

Comments
 (0)