diff --git a/src/PickerInput/RangePicker.tsx b/src/PickerInput/RangePicker.tsx index 7c0b4a258..def1d0542 100644 --- a/src/PickerInput/RangePicker.tsx +++ b/src/PickerInput/RangePicker.tsx @@ -46,7 +46,10 @@ function separateConfig(config: T | [T, T] | null | undefined, defaultConfig: return [singleConfig, singleConfig]; } -export type RangeValueType = [start?: DateType | null, end?: DateType | null]; +export type RangeValueType = [ + start: DateType | null | undefined, + end: DateType | null | undefined, +]; export interface BaseRangePickerProps extends Omit, 'showTime' | 'id'> {