UNPKG

antd-mobile

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