Closed cberthou closed 2 weeks ago
I have a PR for this if you feel it can bring value to the project.
Thank you for creating this issue and your PR! I am very interested in improving it. I will try to have a closer look in about two weeks.
This is now implemented and will be available with the next version. Thank you for your feedback!
v1.0.0-beta.4 is available
For now, findItem returns the input type event when trying to narrow the typing using type predicates. For example :
It would be cool to get better type narrowing. For now, you have to do this, which feels weird given that findItem exists :