node-ical icon indicating copy to clipboard operation
node-ical copied to clipboard

Incorrect type for summary field of VEvent type.

Open gabibianconi opened this issue 2 years ago • 2 comments

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 avatar May 11 '23 18:05 gabibianconi

+1

gabibianconi avatar Aug 29 '24 15:08 gabibianconi