ics icon indicating copy to clipboard operation
ics copied to clipboard

ValidationError on alarm passed

Open DanielNoveo opened this issue 4 years ago • 0 comments

I am not able to pass a description into alarm object image

And this field also is not described on Alarm interface image

But compiled JS seems trying to concat it image

Result ICS alarm:

BEGIN:VALARM
ACTION:DISPLAY
REPEAT:1
TRIGGER:-PT1M
END:VALARM

ICS validator output (https://icalendar.org/validator.html): image

DanielNoveo avatar Jan 14 '22 09:01 DanielNoveo

Same for me, did you find any solution for this?

igordanilovski avatar Aug 13 '22 17:08 igordanilovski

Same for me, did you find any solution for this?

Do not even tried bro. I think it is lib issue)

DanielNoveo avatar Aug 19 '22 05:08 DanielNoveo

I've made a PR tackling this issue (#220). But in the case it's not merged, a hack-around like this could help:

const myAlarm: Alarm & { description?: string } = {
  action: "display",
  description: "Starts in 10 minutes",
  trigger: {
    minutes: 10,
    before: true,
  },
};

TiE23 avatar Aug 22 '22 18:08 TiE23