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
the type parameter used to find a type R is using currently PropertySignatureCache that is meant to be used to store properties name. (I'm not sure if can always work). Example 2 give more explanation about this
type should have a prop with number 0 /// it works
type2 should have a prop with string '' // it doesn't work
The reason is failing is because we are not storing the generic correctly from Test<'a'> or Test<'b'> and we are not getting the correct property T because of the same reason of Example 1
The text was updated successfully, but these errors were encountered:
I've found a couple of issues related to indexed access type
NOTE: in definitely typed test results this may be references as
Cannot read property 'declarations' of undefined
Example 1
This will fail to get R[U] for 2 reasons;
Example 2
type should have a prop with number 0 /// it works
type2 should have a prop with string '' // it doesn't work
The reason is failing is because we are not storing the generic correctly from Test<'a'> or Test<'b'> and we are not getting the correct property T because of the same reason of Example 1
The text was updated successfully, but these errors were encountered: