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

Function getTemplateTypeFromMappedType

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

Source from the content-addressed store, hash-verified

58642 undefined;
58643 }
58644 function getTemplateTypeFromMappedType(type) {
58645 return type.templateType ||
58646 (type.templateType = type.declaration.type ?
58647 instantiateType(addOptionality(getTypeFromTypeNode(type.declaration.type), /*isProperty*/ true, !!(getMappedTypeModifiers(type) & 4 /* MappedTypeModifiers.IncludeOptional */)), type.mapper) :
58648 errorType);
58649 }
58650 function getConstraintDeclarationForMappedType(type) {
58651 return ts.getEffectiveConstraintOfTypeParameter(type.declaration.typeParameter);
58652 }

Callers 11

resolveMappedTypeMembersFunction · 0.85
getTypeOfMappedSymbolFunction · 0.85
structuredTypeRelatedToFunction · 0.85
mappedTypeRelatedToFunction · 0.85
indexSignaturesRelatedToFunction · 0.85
inferReverseMappedTypeFunction · 0.85
inferToMappedTypeFunction · 0.85
inferFromObjectTypesFunction · 0.85

Calls 4

instantiateTypeFunction · 0.85
addOptionalityFunction · 0.85
getTypeFromTypeNodeFunction · 0.85
getMappedTypeModifiersFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…