Skip to content

Commit

Permalink
chore: fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed Dec 7, 2023
1 parent deac496 commit a0ecd44
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/NewPicker/PickerInput/hooks/useRangeValue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export function useCalendarValue<MergedValueType extends object[]>(mergedValue:
return [calendarValue, setCalendarValue] as const;
}

export function useInnerValue<ValueType extends object[], DateType extends ValueType[number]>(
export function useInnerValue<ValueType extends DateType[], DateType extends object = any>(
generateConfig: GenerateConfig<DateType>,
locale: Locale,
formatList: FormatType[],
Expand Down Expand Up @@ -143,10 +143,7 @@ export function useInnerValue<ValueType extends object[], DateType extends Value
return [mergedValue, setInnerValue, calendarValue, triggerCalendarChange] as const;
}

export default function useRangeValue<
ValueType extends object[],
DateType extends ValueType[number],
>(
export default function useRangeValue<ValueType extends DateType[], DateType extends object = any>(
info: Pick<
RangePickerProps<DateType>,
'generateConfig' | 'locale' | 'allowEmpty' | 'order' | 'picker'
Expand Down

0 comments on commit a0ecd44

Please sign in to comment.