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

Function getConstraintTypeFromMappedType

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

Source from the content-addressed store, hash-verified

58633 (type.typeParameter = getDeclaredTypeOfTypeParameter(getSymbolOfNode(type.declaration.typeParameter)));
58634 }
58635 function getConstraintTypeFromMappedType(type) {
58636 return type.constraintType ||
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)) :

Callers 13

resolveMappedTypeMembersFunction · 0.85
isGenericMappedTypeFunction · 0.85
instantiateMappedTypeFunction · 0.85
structuredTypeRelatedToFunction · 0.85
mappedTypeRelatedToFunction · 0.85
inferFromObjectTypesFunction · 0.85

Calls 2

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…