From c20397ecc2c6459fd5cb4df6c16e0b12ad3406d2 Mon Sep 17 00:00:00 2001 From: Garv Shah <64292655+garv-shah@users.noreply.github.com> Date: Fri, 20 May 2022 09:16:22 +1000 Subject: [PATCH] Update event.ts --- src/event.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/event.ts b/src/event.ts index 7cf43d9db..34ebab3e1 100755 --- a/src/event.ts +++ b/src/event.ts @@ -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 * }); * ``` @@ -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]