From bb465d5414fd5a071b0f44b61ddabb63eaa68e47 Mon Sep 17 00:00:00 2001 From: James Laidlaw <78901538+James-Laidlaw@users.noreply.github.com> Date: Tue, 21 Jun 2022 16:55:11 -0600 Subject: [PATCH] Retyped calendar date slotprop --- src/components/calendar/Calendar.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/calendar/Calendar.d.ts b/src/components/calendar/Calendar.d.ts index a835ff953..d60d36e1c 100755 --- a/src/components/calendar/Calendar.d.ts +++ b/src/components/calendar/Calendar.d.ts @@ -3,6 +3,8 @@ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; type CalendarValueType = Date | Date[] | undefined; +type CalendarSlotDateType = { day: number; month: number; year: number; today: boolean; selectable: boolean } + type CalendarSelectionModeType = 'single' | 'multiple' | 'range' | undefined; type CalendarViewType = 'date' | 'month' | 'year' | undefined; @@ -267,7 +269,7 @@ export interface CalendarSlots { /** * Value of the component. */ - date: CalendarValueType; + date: CalendarSlotDateType; }) => VNode[]; /** * Custom decade template.