UNPKG

vue3-use-modal

Version:

vue3-use-modal is vue3(vue-next) plugin that provide easy use of modal. It is not only component based but also lets using modal either asynchronous or synchronous behavior.

9 lines (8 loc) 298 B
import { AddModalProxyParams } from './modal-proxy'; export interface Modal extends AddModalProxyParams { id: number; resolve: PromiseResolve; reject: PromiseReject; } export declare type PromiseResolve = (value: any) => void; export declare type PromiseReject = (reason: any) => void;