Skip to content

Commit 020a81d

Browse files
author
Matt Lewis
committed
fix: restore TS 2.3 compatibility
1 parent 0ab984c commit 020a81d

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/calendar-utils.ts

+9-7
Original file line numberDiff line numberDiff line change
@@ -761,13 +761,15 @@ export function getDayViewHourGrid({
761761
return hours;
762762
}
763763

764-
export enum EventValidationErrorMessage {
765-
NotArray = 'Events must be an array',
766-
StartPropertyMissing = 'Event is missing the `start` property',
767-
StartPropertyNotDate = 'Event `start` property should be a javascript date object. Do `new Date(event.start)` to fix it.',
768-
EndPropertyNotDate = 'Event `end` property should be a javascript date object. Do `new Date(event.end)` to fix it.',
769-
EndsBeforeStart = 'Event `start` property occurs after the `end`'
770-
}
764+
export const EventValidationErrorMessage = {
765+
NotArray: 'Events must be an array',
766+
StartPropertyMissing: 'Event is missing the `start` property',
767+
StartPropertyNotDate:
768+
'Event `start` property should be a javascript date object. Do `new Date(event.start)` to fix it.',
769+
EndPropertyNotDate:
770+
'Event `end` property should be a javascript date object. Do `new Date(event.end)` to fix it.',
771+
EndsBeforeStart: 'Event `start` property occurs after the `end`'
772+
};
771773

772774
export function validateEvents(
773775
events: CalendarEvent[],

0 commit comments

Comments
 (0)