UNPKG

maz-ui

Version:

A standalone components library for Vue.Js 3 & Nuxt.Js 3

30 lines (29 loc) 925 B
import { App } from 'vue'; import { ToastOptions } from './types'; export declare class ToastHandler { private readonly app; private readonly globalOptions?; constructor(app: App, globalOptions?: ToastOptions | undefined); private show; private getLocalOptions; message(message: string, options?: ToastOptions): { destroy: () => void; close: () => any; }; success(message: string, options?: Omit<ToastOptions, 'type'>): { destroy: () => void; close: () => any; }; error(message: string, options?: Omit<ToastOptions, 'type'>): { destroy: () => void; close: () => any; }; info(message: string, options?: Omit<ToastOptions, 'type'>): { destroy: () => void; close: () => any; }; warning(message: string, options?: Omit<ToastOptions, 'type'>): { destroy: () => void; close: () => any; }; }