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.