Closed MangelMaxime closed 1 day ago
Superceded by #3904
P.S. @MangelMaxime Apologies, that was a bit lazy of me, feel free to revert #3904 and resubmit it yourself, if needed.
Oh no problem, the solution was so simple...
I was so focused on looking for | undefined
that I didn't see the optional argument in the method 🤦♂️
And that's probably what caused me to try to restrict where we typed Async in this PR too.
Thank you for taking a look.
I was looking at fixing #3864, and it seems like my fix works for the code provided in the issue:
However, it fails on more complex code and I don't understand why.
I don't understand where TypeScript infer the type to
XX | undefined
we never seems to use it inside ofAsyncBuilder
.@ncave Do you have an idea?