UNPKG

antd-mobile

Version:
8 lines (7 loc) 324 B
import { DialogProps } from './index'; import type { ReactNode } from 'react'; export declare type DialogAlertProps = Omit<DialogProps, 'visible' | 'closeOnAction' | 'actions'> & { confirmText?: ReactNode; onConfirm?: () => void | Promise<void>; }; export declare function alert(p: DialogAlertProps): Promise<void>;