index.d.ts 457 B

123456789101112
  1. import type { MaybeRef, VueNode } from '../../_util/type';
  2. import type { ModalFuncProps } from '../Modal';
  3. import type { ModalStaticFunctions } from '../confirm';
  4. export type ModalFuncWithRef = (props: MaybeRef<ModalFuncProps>) => {
  5. destroy: () => void;
  6. update: (configUpdate: ModalFuncProps) => void;
  7. };
  8. declare function useModal(): readonly [
  9. Omit<ModalStaticFunctions<ModalFuncWithRef>, 'warn'>,
  10. () => VueNode
  11. ];
  12. export default useModal;