OptionallabelAn explicit label. When present, it is preserved without translation.
OptionalroleElectron's built-in behavior identifier, such as copy or fileMenu.
OptionalsubmenuA nested menu template, or another submenu value understood by Electron.
A structural subset of Electron.MenuItemConstructorOptions. We don't import the
electronpackage (it's not needed at runtime, and pulling its types in would force a hard peer dependency), so this package works against any object shaped like a menu item — including Electron's own MenuItemConstructorOptions, which satisfies this interface.