You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The renderMenuItemChildren property's type is (option: Option, ...) => JSX.Element, with Option defined as string | Record<string, any>. This means that implementors of renderMenuItemChildren need to handle both a string and a Record<string, any> (by casting onto the right type).
However, the actual type of "Option" should be inferred from the type of the options parameters.
Pull request forthcoming.
ericgio, Lukasvo, charlesroelli, LukeNotable, strongui and 1 more