Merge pull request #2704 from James-Laidlaw/patch-3

Retyped calendar date slotprop
pull/2727/head
Tuğçe Küçükoğlu 2022-06-28 15:19:58 +03:00 committed by GitHub
commit 9a9d5fe54b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,8 @@ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
type CalendarValueType = Date | Date[] | undefined; type CalendarValueType = Date | Date[] | undefined;
type CalendarSlotDateType = { day: number; month: number; year: number; today: boolean; selectable: boolean }
type CalendarSelectionModeType = 'single' | 'multiple' | 'range' | undefined; type CalendarSelectionModeType = 'single' | 'multiple' | 'range' | undefined;
type CalendarViewType = 'date' | 'month' | 'year' | undefined; type CalendarViewType = 'date' | 'month' | 'year' | undefined;
@ -267,7 +269,7 @@ export interface CalendarSlots {
/** /**
* Value of the component. * Value of the component.
*/ */
date: CalendarValueType; date: CalendarSlotDateType;
}) => VNode[]; }) => VNode[];
/** /**
* Custom decade template. * Custom decade template.