diff --git a/components/popconfirm/index.tsx b/components/popconfirm/index.tsx index 9263c11357..5e3e8b5661 100644 --- a/components/popconfirm/index.tsx +++ b/components/popconfirm/index.tsx @@ -9,7 +9,7 @@ import { cloneElement } from '../_util/reactNode'; import type { ButtonProps, LegacyButtonType } from '../button/button'; import { ConfigContext } from '../config-provider'; import Popover from '../popover'; -import type { AbstractTooltipProps } from '../tooltip'; +import type { AbstractTooltipProps, TooltipRef } from '../tooltip'; import PurePanel, { Overlay } from './PurePanel'; import usePopconfirmStyle from './style'; @@ -37,7 +37,7 @@ export interface PopconfirmState { open?: boolean; } -const Popconfirm = React.forwardRef((props, ref) => { +const Popconfirm = React.forwardRef((props, ref) => { const { prefixCls: customizePrefixCls, placement = 'top',