Closed jbhoot closed 2 years ago
@jayesh-bhoot I assume that something is wrong on your side, on my end the type is inferred and narrowed correctly:
it works fine with flow
as well:
You are right. This problem shows up on IntelliJ WebStorm, but not on Visual Studio Code.
For a function
the return type is inferred as
which is technically true, but I would have preferred the inferred type to be the same as that of
R.fromPredicate()
Right now, I need to specify the return type explicitly as