Skip to content

Commit b1fe0a6

Browse files
committed
fix: TS define update
1 parent d7f63e5 commit b1fe0a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/RangePicker.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ interface MergedRangePickerProps<DateType>
9797

9898
function InternalRangePicker<DateType>(
9999
props: RangePickerProps<DateType> & {
100-
pickerRef: React.Ref<Picker>;
100+
pickerRef: React.Ref<Picker<DateType>>;
101101
},
102102
) {
103103
const {
@@ -126,7 +126,7 @@ function InternalRangePicker<DateType>(
126126
onFocus,
127127
onBlur,
128128
} = props as MergedRangePickerProps<DateType> & {
129-
pickerRef: React.Ref<Picker>;
129+
pickerRef: React.Ref<Picker<DateType>>;
130130
};
131131

132132
const formatList = toArray(
@@ -360,7 +360,7 @@ function InternalRangePicker<DateType>(
360360
class RangePicker<DateType> extends React.Component<
361361
RangePickerProps<DateType>
362362
> {
363-
pickerRef = React.createRef<HTMLInputElement>();
363+
pickerRef = React.createRef<Picker<DateType>>();
364364

365365
focus = () => {
366366
if (this.pickerRef.current) {

0 commit comments

Comments
 (0)