Optional
argsThe arguments for the command.
The default value is an empty object.
Optional
commandThe command to execute when the item is triggered.
The default value is an empty string.
Optional
rankMenu item rank
Optional
submenuThe submenu for a 'submenu'
type item.
The default value is null
.
Optional
typeThe type of the menu item.
The default value is 'command'
.
An options object for creating a menu item.