@selenite/commons
Version:
This typescript package provides a set of frequently used utilities, types and svelte actions for building projects with Typescript and Svelte.
17 lines (16 loc) • 458 B
TypeScript
/**
* A menu item contains the necessary information to render a menu item in the context menu.
*/
export type MenuItem = {
id: string;
/** The label of the menu item */
label: string;
/** The description of the menu item */
description: string;
/** The search tags of the menu item */
tags: string[];
/** The path of the menu item */
path: string[];
/** Action to execute on selection */
action: () => void;
};