(value: DateRangeInputValue)
| 50 | } |
| 51 | |
| 52 | export function isValidRelativeDateInterval(value: DateRangeInputValue): value is DateIntervalString { |
| 53 | return typeof value === 'string' && DATE_RANGE_INPUT_RELATIVE_RANGES.some(range => range.value === value) |
| 54 | } |
| 55 | |
| 56 | export function isValidAbsoluteDateRange(value: DateRangeInputValue): value is DateTimeStringArray { |
| 57 | const YYYY_MM_DD_REGEX = /^\d{4}-\d{2}-\d{2}$/ |
no outgoing calls
no test coverage detected