@byloth/vuert
Version:
The headless alerts, modals, notifications & popups library for Vue.js craftsmen. ℹ
10 lines (9 loc) • 403 B
TypeScript
import type { IAction, ActionCallback, ActionOptions } from "../types/action/index.js";
export default class Action<R = void> implements IAction<R> {
readonly id: symbol;
readonly type: "primary" | "secondary" | "alternative";
readonly icon?: string | undefined;
readonly label: string;
readonly callback: ActionCallback<R | undefined>;
constructor(options: ActionOptions<R>);
}