maz-ui
Version:
A standalone components library for Vue.Js 3 & Nuxt.Js 3
16 lines (15 loc) • 544 B
TypeScript
import type { App } from 'vue';
import type { Props as MazDialogPromiseProps } from '../../../components/MazDialogPromise.vue';
export type DialogOptions = Partial<Omit<MazDialogPromiseProps, 'modelValue'>> & {
promiseCallback?: () => unknown;
};
export declare class DialogHandler {
private readonly app;
private readonly globalOptions;
constructor(app: App, globalOptions?: DialogOptions);
open(options: DialogOptions): {
promise: Promise<unknown>;
destroy: () => void;
close: () => void;
};
}