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

Function getNameTypeFromMappedType

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

Source from the content-addressed store, hash-verified

58637 (type.constraintType = getConstraintOfTypeParameter(getTypeParameterFromMappedType(type)) || errorType);
58638 }
58639 function getNameTypeFromMappedType(type) {
58640 return type.declaration.nameType ?
58641 type.nameType || (type.nameType = instantiateType(getTypeFromTypeNode(type.declaration.nameType), type.mapper)) :
58642 undefined;
58643 }
58644 function getTemplateTypeFromMappedType(type) {
58645 return type.templateType ||
58646 (type.templateType = type.declaration.type ?

Callers 9

resolveMappedTypeMembersFunction · 0.85
hasDistributiveNameTypeFunction · 0.85
structuredTypeRelatedToFunction · 0.85
mappedTypeRelatedToFunction · 0.85
inferFromObjectTypesFunction · 0.85
checkMappedTypeFunction · 0.85

Calls 2

instantiateTypeFunction · 0.85
getTypeFromTypeNodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…