antd-mobile
Version:
<div align="center">
8 lines (7 loc) • 320 B
TypeScript
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>;