Skip to content

@eightkk/vue-weave / core / validateCalendarEvents

Function: validateCalendarEvents() ​

validateCalendarEvents(events, resources?): void

Defined in: src/core/eventCalendar.ts:569

Check the events and resources of EventCalendar: IDs are non-empty and unique (Invalid event ID: …, Duplicate event ID: …, the same for resource), intervals are finite with start <= end (RangeError), and every resourceId names a resource when resources is given (Unknown resource in event <id>: <resourceId>). A seriesId must be a non-empty string (Invalid series ID: …) and a recurrenceId finite (RangeError).

Parameters ​

events ​

readonly CalendarEvent<unknown>[]

resources? ​

readonly CalendarResource[]

Returns ​

void

Released under the MIT License.