From c559a0cde8c714527672443c3e7d8cf41621451e Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Mon, 22 Mar 2021 23:20:46 +0100 Subject: [PATCH] fix ts-ignore necessity --- helpers/ical.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/helpers/ical.ts b/helpers/ical.ts index 61c704c..04a0c9c 100644 --- a/helpers/ical.ts +++ b/helpers/ical.ts @@ -39,7 +39,7 @@ Buchungs-Link: ${getBaseURL()}/booking/${booking.uuid} } export function generateBookedCalendar(bookings: Booking[]): string { - const events = bookings.map((booking) => ({ + const events = bookings.map((booking): { productId: string; calName: string; start: [number, number, number]; startOutputType: 'local' | 'utc'; duration: { days: number }; title: string; description: string; status: EventStatus } => ({ productId: 'app.vercel.pfadi-bussle/ics', calName: 'Pfadi-Bussle Buchungen', start: convertDay(booking.days[0]), @@ -60,8 +60,6 @@ Link: ${getBaseURL()}/admin/booking/${booking.uuid} : ('TENTATIVE' as EventStatus), })) - // FIXME: startOutputType does not like 'local' - // @ts-ignore const { error, value } = createEvents(events) if (error) {