@@ -22,16 +22,16 @@ interface CalendarStateBase {
2222 /** The date range that is currently visible in the calendar. */
2323 readonly visibleRange : RangeValue < CalendarDate > ,
2424 /** The minimum allowed date that a user may select. */
25- readonly minValue ?: DateValue ,
25+ readonly minValue ?: DateValue | null ,
2626 /** The maximum allowed date that a user may select. */
27- readonly maxValue ?: DateValue ,
27+ readonly maxValue ?: DateValue | null ,
2828 /** The time zone of the dates currently being displayed. */
2929 readonly timeZone : string ,
3030 /**
3131 * The current validation state of the selected value.
3232 * @deprecated Use `isValueInvalid` instead.
3333 */
34- readonly validationState : ValidationState ,
34+ readonly validationState : ValidationState | null ,
3535 /** Whether the calendar is invalid. */
3636 readonly isValueInvalid : boolean ,
3737 /** The currently focused date. */
@@ -108,17 +108,17 @@ export interface CalendarState extends CalendarStateBase {
108108
109109export interface RangeCalendarState extends CalendarStateBase {
110110 /** The currently selected date range. */
111- readonly value : RangeValue < DateValue > ,
111+ readonly value : RangeValue < DateValue > | null ,
112112 /** Sets the currently selected date range. */
113- setValue ( value : RangeValue < DateValue > ) : void ,
113+ setValue ( value : RangeValue < DateValue > | null ) : void ,
114114 /** Highlights the given date during selection, e.g. by hovering or dragging. */
115115 highlightDate ( date : CalendarDate ) : void ,
116116 /** The current anchor date that the user clicked on to begin range selection. */
117117 readonly anchorDate : CalendarDate | null ,
118118 /** Sets the anchor date that the user clicked on to begin range selection. */
119119 setAnchorDate ( date : CalendarDate | null ) : void ,
120120 /** The currently highlighted date range. */
121- readonly highlightedRange : RangeValue < CalendarDate > ,
121+ readonly highlightedRange : RangeValue < CalendarDate > | null ,
122122 /** Whether the user is currently dragging over the calendar. */
123123 readonly isDragging : boolean ,
124124 /** Sets whether the user is dragging over the calendar. */
0 commit comments