UNPKG

@byloth/vuert

Version:

The headless alerts, modals, notifications & popups library for Vue.js craftsmen. ℹ

16 lines (15 loc) 620 B
import type { IAlert, AlertOptions } from "../types/alert/index.js"; import Action from "./action.js"; export default class Alert<R = void, P extends Record<string, unknown> = never> implements IAlert<R, P> { readonly id: symbol; readonly type: "info" | "success" | "warning" | "error" | "question"; readonly priority: "high" | "normal" | "low"; readonly icon?: string; readonly title?: string; readonly message?: string; readonly payload?: P; readonly actions: Action<R>[]; readonly dismissible: boolean; readonly timeout: number; constructor(options: AlertOptions<R, P>); }