You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(combineWithAllErrors([result1,result2,result3]).isErr()){console.log("some error")returnerr();}// We know for sure know that result1, result2, and result3 are ok:result1.value;// TS2339: property 'value' does not exist on type 'Result' // ^^ it seems typescript doesn't know?
I am forced to do:
if(combineWithAllErrors([result1,result2,result3]).isErr()){console.log("some error")returnerr();}if(result1.isErr()){return1asany;}console.log(result1.value);// works
Can we do something about the fact that combineWithAllErrors doesn't narrow down the type for the items in the provided list?
The text was updated successfully, but these errors were encountered:
I am forced to do:
Can we do something about the fact that combineWithAllErrors doesn't narrow down the type for the items in the provided list?
The text was updated successfully, but these errors were encountered: