Skip to content

Commit 7ebf615

Browse files
authored
chore: Update RangeValueType def (#719)
1 parent 5335996 commit 7ebf615

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/PickerInput/RangePicker.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ function separateConfig<T>(config: T | [T, T] | null | undefined, defaultConfig:
4646
return [singleConfig, singleConfig];
4747
}
4848

49-
export type RangeValueType<DateType> = [start?: DateType | null, end?: DateType | null];
49+
export type RangeValueType<DateType> = [
50+
start: DateType | null | undefined,
51+
end: DateType | null | undefined,
52+
];
5053

5154
export interface BaseRangePickerProps<DateType extends object>
5255
extends Omit<SharedPickerProps<DateType>, 'showTime' | 'id'> {

0 commit comments

Comments
 (0)