( date: DateValue, minValue?: DateValue | null, maxValue?: DateValue | null )
| 22 | import {DateValue} from './types'; |
| 23 | |
| 24 | export function isInvalid( |
| 25 | date: DateValue, |
| 26 | minValue?: DateValue | null, |
| 27 | maxValue?: DateValue | null |
| 28 | ): boolean { |
| 29 | return ( |
| 30 | (minValue != null && date.compare(minValue) < 0) || |
| 31 | (maxValue != null && date.compare(maxValue) > 0) |
| 32 | ); |
| 33 | } |
| 34 | |
| 35 | export function alignCenter( |
| 36 | date: CalendarDate, |
no test coverage detected