Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValidationError on alarm passed #205

Closed
DanielNoveo opened this issue Jan 14, 2022 · 3 comments
Closed

ValidationError on alarm passed #205

DanielNoveo opened this issue Jan 14, 2022 · 3 comments

Comments

@DanielNoveo
Copy link

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

@igordanilovski
Copy link

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

@DanielNoveo
Copy link
Author

DanielNoveo commented Aug 19, 2022

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

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

@TiE23
Copy link
Contributor

TiE23 commented Aug 22, 2022

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,
  },
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants