MenuItem: {
    action: (() => void);
    description: string;
    id: string;
    label: string;
    path: string[];
    tags: string[];
}

A menu item contains the necessary information to render a menu item in the context menu.

Type declaration

  • action: (() => void)

    Action to execute on selection

      • (): void
      • Returns void

  • description: string

    The description of the menu item

  • id: string
  • label: string

    The label of the menu item

  • path: string[]

    The path of the menu item

  • tags: string[]

    The search tags of the menu item