import type { MenuItem as UIMenuItem } from '@wangs-ui/core/dist/types/components/menuitem/menuitem.type'; import { WangsIcons } from '../icon'; type MenuItem = UIMenuItem & { icon?: WangsIcons }; /** * * WangsVue menu components share a common api to specify the menuitems and submenus. * * @module menuitem * */ /** * Custom command event. * @todo next release should be able to change see menuItem.command */ export interface MenuItemCommandEvent { /** * Browser event. */ originalEvent: Event; /** * Menuitem instance. */ item: MenuItem; /** * Optional */ [key: string]: any; } export type { MenuItem };