[email protected] type level problem
just curious what happen here, is my Option usage is wrong?
i wanna check is Some is null for retry, because i can't use async inside match or map


9 Replies
Do you have this in a repository or something so I can check?
umm sadly is not yet, because im in rewriting to using your new rewrite of Result and i think my screenshot already showing every context, i can comeback later and tag you when rewriting is done for full context

I'd really love to compress types anytime
But nevertheless you have a pretty complex match that can be simplified
Something like
But lemme try to investigate this
wait, let me finish rewriting because i found another weird type problem, i will tag you later
Nevertheless in case of doubt, you can cast it using
as Option<GplResponse<T>[] | null>
just to report, that this one caused "expression is not callable" problem
also "value: If<Success, T, never>" corrently infer value instead of any type

this one if "value: T" any is infer from Result.err

Ooh, good catch, thank you
I should have the PR done in around 30 minutes, I want to add type tests to ensure this never happens again :)
Sorry, I'll have the PR done tomorrow... I got an infinite loop issue in my bot that I need to investigate
take your time, because i see a lot similiar behaviour at other methods too