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
// When obtaining apparent type of *contextual* type we don't want to get apparent type of mapped types.
29211
+
// That would evaluate mapped types with array or tuple type constraints too eagerly
29212
+
// and thus it would prevent `getTypeOfPropertyOfContextualType` from obtaining per-position contextual type for elements of array literal expressions.
29213
+
// Apparent type of other mapped types is already the mapped type itself so we can just avoid calling `getApparentType` here for all mapped types.
29214
+
t => getObjectFlags(t) & ObjectFlags.Mapped ? t : getApparentType(t),
0 commit comments