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.