Retyped calendar date slotprop

pull/2704/head
James Laidlaw 2022-06-21 16:55:11 -06:00 committed by GitHub
parent 7a38d05b7a
commit bb465d5414
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 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.