(type)
| 62497 | return links.resolvedType; |
| 62498 | } |
| 62499 | function getActualTypeVariable(type) { |
| 62500 | if (type.flags & 33554432 /* TypeFlags.Substitution */) { |
| 62501 | return type.baseType; |
| 62502 | } |
| 62503 | if (type.flags & 8388608 /* TypeFlags.IndexedAccess */ && (type.objectType.flags & 33554432 /* TypeFlags.Substitution */ || |
| 62504 | type.indexType.flags & 33554432 /* TypeFlags.Substitution */)) { |
| 62505 | return getIndexedAccessType(getActualTypeVariable(type.objectType), getActualTypeVariable(type.indexType)); |
| 62506 | } |
| 62507 | return type; |
| 62508 | } |
| 62509 | function maybeCloneTypeParameter(p) { |
| 62510 | var constraint = getConstraintOfTypeParameter(p); |
| 62511 | return constraint && (isGenericObjectType(constraint) || isGenericIndexType(constraint)) ? cloneTypeParameter(p) : p; |
no test coverage detected
searching dependent graphs…