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

Incorrect type for summary field of VEvent type. #266

Open
gabibianconi opened this issue May 11, 2023 · 1 comment
Open

Incorrect type for summary field of VEvent type. #266

gabibianconi opened this issue May 11, 2023 · 1 comment

Comments

@gabibianconi
Copy link

gabibianconi commented May 11, 2023

The interface is like

 export interface VEvent extends BaseComponent {
    type: 'VEVENT';
    summary: string;
    ...
  }

but it should be like:

 export interface VEvent extends BaseComponent {
    type: 'VEVENT';
    summary: { params: {ENCODING: string}, val: string};
    ...
  }

This is a log of a VEvent event:

{
  type: 'VEVENT',
  params: [],
  dtstamp: 2023-05-11T13:11:58.000Z,
  lastmodified: 2023-05-11T13:11:13.000Z,
  created: 2023-05-11T15:00:00.000Z,
  sequence: '1',
  organizer: { params: { CN: 'Something' }, val: 'https://some.url.edu/something/' },
  contact: 'https://some.url.edu/something/rsvp_boot?id=123#event_host',
  categories: [ 'SOMETHING', 'Something/Otherthing' ],
  start: 2023-04-23T16:00:00.000Z { tz: 'Etc/UTC' },
  datetype: 'date-time',
  end: 2023-04-23T19:00:00.000Z { tz: 'Etc/UTC' },
  uid: 'abc1232023_10:11:[email protected]',
  summary: {
    params: { ENCODING: 'QUOTED-PRINTABLE' },
    val: 'A string string string'
  },
  location: 'The location',
  url: 'https://some.url.edu/rsvp?id=123',
  description: 'Description'
}
@gabibianconi
Copy link
Author

+1

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

1 participant