From 5ed7da0ed4c47452ad4edf2b876eef8b7a7af3d7 Mon Sep 17 00:00:00 2001 From: lijianan <574980606@qq.com> Date: Tue, 7 Mar 2023 16:41:43 +0800 Subject: [PATCH] type: add ref type (#41104) --- components/rate/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/rate/index.tsx b/components/rate/index.tsx index 14ed8efba5..2028b8b6fa 100644 --- a/components/rate/index.tsx +++ b/components/rate/index.tsx @@ -1,7 +1,7 @@ import StarFilled from '@ant-design/icons/StarFilled'; import classNames from 'classnames'; import RcRate from 'rc-rate'; -import type { RateProps as RcRateProps } from 'rc-rate/lib/Rate'; +import type { RateProps as RcRateProps, RateRef } from 'rc-rate/lib/Rate'; import * as React from 'react'; import { ConfigContext } from '../config-provider'; import Tooltip from '../tooltip'; @@ -16,7 +16,7 @@ interface RateNodeProps { index: number; } -const Rate = React.forwardRef((props, ref) => { +const Rate = React.forwardRef((props, ref) => { const { prefixCls, className,