Skip to content

Commit

Permalink
Update event.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
garv-shah authored May 19, 2022
1 parent 5c7457c commit c20397e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -932,11 +932,11 @@ export default class ICalEvent {
* ```javascript
* const cal = ical();
* const event = cal.createEvent();
* const alarm = event.createAlarm({type: 'display', trigger: 300});
* const alarm = event.createAlarm({type: ICalAlarmType.display, trigger: 300});
*
* // add another alarm
* event.createAlarm({
* type: 'audio',
* type: ICalAlarmType.audio,
* trigger: 300, // 5min before event
* });
* ```
Expand All @@ -963,8 +963,8 @@ export default class ICalEvent {
* const event = ical().createEvent();
*
* cal.alarms([
* {type: 'display', trigger: 600},
* {type: 'audio', trigger: 300}
* {type: ICalAlarmType.display, trigger: 600},
* {type: ICalAlarmType.audio, trigger: 300}
* ]);
*
* cal.alarms(); // --> [ICalAlarm, ICalAlarm]
Expand Down

0 comments on commit c20397e

Please sign in to comment.