From 68204612bed1378c6e76c451839f62ed670c67a6 Mon Sep 17 00:00:00 2001 From: Christian Seidel Date: Thu, 11 Jul 2024 07:39:08 +0200 Subject: [PATCH] fix: change return type of 'Select' --- src/Select/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Select/index.tsx b/src/Select/index.tsx index b1983b60..8d909c92 100644 --- a/src/Select/index.tsx +++ b/src/Select/index.tsx @@ -5,7 +5,6 @@ import React, { ForwardedRef, forwardRef, ReactElement, - ReactNode, RefAttributes, useCallback, } from 'react'; @@ -86,7 +85,7 @@ export const Select = forwardRef< TOption extends BaseOptionType | DefaultOptionType = DefaultOptionType, >( props: SelectProps & RefAttributes, -) => ReactNode) & { +) => ReactElement) & { Option: typeof AntdSelect.Option; OptGroup: typeof AntdSelect.OptGroup; };