minishouyin/node_modules/antd/lib/modal/useModal/HookModal.d.ts

19 lines
590 B
TypeScript
Raw Permalink Normal View History

2025-11-12 11:35:57 +08:00
import * as React from 'react';
import type { ConfigUpdate } from '../confirm';
import type { ModalFuncProps } from '../interface';
export interface HookModalProps {
afterClose: () => void;
config: ModalFuncProps;
onConfirm?: (confirmed: boolean) => void;
/**
* Do not throw if is await mode
*/
isSilent?: () => boolean;
}
export interface HookModalRef {
destroy: () => void;
update: (config: ConfigUpdate) => void;
}
declare const _default: React.ForwardRefExoticComponent<HookModalProps & React.RefAttributes<HookModalRef>>;
export default _default;