type: add ref type (#41104)

pull/41033/head^2
lijianan 2 years ago committed by GitHub
parent 767db3c6ca
commit 5ed7da0ed4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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<unknown, RateProps>((props, ref) => {
const Rate = React.forwardRef<RateRef, RateProps>((props, ref) => {
const {
prefixCls,
className,

Loading…
Cancel
Save