Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe the type here is a bit more complex
can you check menu.jsx file?
its
rendererProps
.everything which is passed to
{Renderer && Renderer(rendererProps)}
so apparently we're also passing by mistake
innerProps
, theonScroll
, etc.what a mess 🤦🏼♂️
you can give it an any in the meantime if stuff gets too complicated (see what I did in
valueRenderer
, they needed theDropdownOption
stuff, so I had to add it, but basicallyDropdownOption
isany
, so the allprops
becameany
at the bundle, so I've worked hard for nothing 🙃)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that it is a mess, but isn't it still better to keep it this way then changing it to
any
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
they would have TS issues in the current way if they try to consume something which isn't in your type
we can try that and if they complain we'll release a fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested it with current implementations and it worked properly, I will keep an eye on it and change if necessary