Version: 0.0.15-alpha0.0.16-alpha0.0.21-alpha0.0.22-alpha0.0.23-alpha0.0.24-alpha0.0.25-alpha0.0.26-alpha0.0.28-alpha0.0.290.0.300.0.310.0.320.0.330.0.340.0.350.0.360.0.370.0.380.0.390.0.400.0.411.20.01.21.01.21.11.21.21.21.31.21.41.21.51.21.61.21.71.21.81.22.01.22.11.22.21.22.31.22.41.23.01.23.11.23.21.23.31.23.41.24.01.24.11.24.21.24.31.24.41.24.51.25.01.25.11.26.01.27.01.28.01.31.01.31.11.36.01.36.11.36.21.40.01.40.11.40.21.40.31.40.41.40.51.40.61.40.71.40.81.40.91.40.101.40.111.40.121.40.131.40.141.40.151.40.161.40.171.40.18
import { Disposable } from "../index";
/** Provides a registry for menu items that you'd like to appear in the application menu. */
export interface MenuManager {
/** Adds the given items to the application menu. */
add(items: readonly MenuOptions[]): Disposable;
/** Refreshes the currently visible menu. */
update(): void;
}
export interface MenuOptions {
/** The menu itme's label. */
label: string;
/** An array of sub menus. */
submenu?: readonly MenuOptions[] | undefined;
/** The command to trigger when the item is clicked. */
command?: string | undefined;