From c2ace560c187656bf54e557b48131d1c1d9ec3cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Burzy=C5=84ski?= Date: Wed, 22 Mar 2023 10:48:03 +0100 Subject: [PATCH] type: fixed `InternalTreeSelect`'s generic signature (#41386) --- components/tree-select/index.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/components/tree-select/index.tsx b/components/tree-select/index.tsx index 059cc17c35a9..90bd4e76caae 100644 --- a/components/tree-select/index.tsx +++ b/components/tree-select/index.tsx @@ -66,7 +66,10 @@ export interface TreeSelectProps< rootClassName?: string; } -const InternalTreeSelect = ( +const InternalTreeSelect = < + ValueType = any, + OptionType extends BaseOptionType | DefaultOptionType = BaseOptionType, +>( { prefixCls: customizePrefixCls, size: customizeSize, @@ -92,7 +95,7 @@ const InternalTreeSelect = , + }: TreeSelectProps, ref: React.Ref, ) => { const {