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,