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
constm2=match.in<{id: 0|1|2}>().at("id",{// Parameter 'o' implicitly has any type"0": (o)=>o.id,// correctly inferrednumber: (o)=>o.id,});// can be resolved with explicit annotationconstm=match.in<{id: 0|1|2}>().at("id",{"0": (o: {id: 0})=>o.id})// or better yet, just chain the `.match` off `.at`instead of using the second paramconstm=match.in<{id: 0|1|2}>().at("id").match({"0": o=>o.id,// correctly inferrednumber: o=>o.id})
My instinct says this may be fixable but the validation + completions setup here is already quite temperamental, so leaving it as is for now.
The text was updated successfully, but these errors were encountered:
My instinct says this may be fixable but the validation + completions setup here is already quite temperamental, so leaving it as is for now.
The text was updated successfully, but these errors were encountered: