MCPcopy Index your code
hub / github.com/nodejs/node / getActualTypeVariable

Function getActualTypeVariable

test/fixtures/snapshot/typescript.js:62499–62508  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

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;

Callers 6

getImpliedConstraintFunction · 0.85
_loop_18Function · 0.85
inferFromTypesFunction · 0.85

Calls 1

getIndexedAccessTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…