Skip to content

Commit

Permalink
type: fixed InternalTreeSelect's generic signature (ant-design#41386)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist authored and RedJue committed Apr 25, 2023
1 parent d6c005c commit 009f2b8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions components/tree-select/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ export interface TreeSelectProps<
rootClassName?: string;
}

const InternalTreeSelect = <OptionType extends BaseOptionType | DefaultOptionType = BaseOptionType>(
const InternalTreeSelect = <
ValueType = any,
OptionType extends BaseOptionType | DefaultOptionType = BaseOptionType,
>(
{
prefixCls: customizePrefixCls,
size: customizeSize,
Expand All @@ -92,7 +95,7 @@ const InternalTreeSelect = <OptionType extends BaseOptionType | DefaultOptionTyp
showArrow,
treeExpandAction,
...props
}: TreeSelectProps<OptionType>,
}: TreeSelectProps<ValueType, OptionType>,
ref: React.Ref<BaseSelectRef>,
) => {
const {
Expand Down

0 comments on commit 009f2b8

Please sign in to comment.