UNPKG

jenesius-vue-modal

Version:

The progressive and simple modal system for Vue.js v3

9 lines (8 loc) 608 B
import { ModalOptions } from "../utils/Modal"; import { WrapComponent } from "../utils/types"; /** * @description Method push modalComponent with provided options and then wait until current component will trigger event * Modal.EVENT_PROMPT. After triggering will close the modal window and return provided data to event. * @warning In new version I will change declaration of current method. Type declaration will be added for returned value. */ export default function promptModal<P extends WrapComponent>(component: P | string, props?: any, options?: Partial<ModalOptions>): Promise<unknown>;