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
Expected behavior:
Should compile since Boxed has index signature. T with constraint Boxed should also be indexable, with T[K] constrained by Boxed's value type, in this case, {value: any}
Actual behavior:
Error, Property 'value' does not exist on type 'T[K]'
The text was updated successfully, but these errors were encountered:
Related: #12311
TypeScript Version: nightly
Code
Expected behavior:
Should compile since
Boxed
has index signature. T with constraintBoxed
should also be indexable, withT[K]
constrained byBoxed
's value type, in this case,{value: any}
Actual behavior:
Error,
Property 'value' does not exist on type 'T[K]'
The text was updated successfully, but these errors were encountered: