Browse Source

type: replace unknown with TooltipRef (#43452)

pull/43453/head
thinkasany 1 year ago
committed by GitHub
parent
commit
56e6102523
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      components/popconfirm/index.tsx

4
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<unknown, PopconfirmProps>((props, ref) => {
const Popconfirm = React.forwardRef<TooltipRef, PopconfirmProps>((props, ref) => {
const {
prefixCls: customizePrefixCls,
placement = 'top',

Loading…
Cancel
Save