AboutSupportDeveloper GuideVersion 35.120.79.5

Type alias MenuResult<Data>

MenuResult<Data>: ClickedMenuResult<Data> | ClosedMenuResult

Whether the user clicked on a menu item or the menu was closed (user clicked elsewhere).

Type Parameters

  • Data extends unknown = unknown

    User-defined shape for data returned upon menu item click. Should be a union of all possible data shapes for the entire menu, and the click handler should process these with a "reducer" pattern.