(type)
| 59108 | return type.resolvedApparentType || (type.resolvedApparentType = getResolvedApparentTypeOfMappedType(type)); |
| 59109 | } |
| 59110 | function getResolvedApparentTypeOfMappedType(type) { |
| 59111 | var typeVariable = getHomomorphicTypeVariable(type); |
| 59112 | if (typeVariable && !type.declaration.nameType) { |
| 59113 | var constraint = getConstraintOfTypeParameter(typeVariable); |
| 59114 | if (constraint && isArrayOrTupleType(constraint)) { |
| 59115 | return instantiateType(type, prependTypeMapping(typeVariable, constraint, type.mapper)); |
| 59116 | } |
| 59117 | } |
| 59118 | return type; |
| 59119 | } |
| 59120 | function isMappedTypeGenericIndexedAccess(type) { |
| 59121 | var objectType; |
| 59122 | return !!(type.flags & 8388608 /* TypeFlags.IndexedAccess */ && ts.getObjectFlags(objectType = type.objectType) & 32 /* ObjectFlags.Mapped */ && |
no test coverage detected