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.
The
renderMenuItemChildrenproperty's type is(option: Option, ...) => JSX.Element, withOptiondefined asstring | Record<string, any>. This means that implementors ofrenderMenuItemChildrenneed to handle both astringand aRecord<string, any>(by casting onto the right type).However, the actual type of "Option" should be inferred from the type of the
optionsparameters.Pull request forthcoming.