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

Function getSimplifiedTypeOrConstraint

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

Source from the content-addressed store, hash-verified

58824 return hasNonCircularBaseConstraint(type) ? getConstraintFromIndexedAccess(type) : undefined;
58825 }
58826 function getSimplifiedTypeOrConstraint(type) {
58827 var simplified = getSimplifiedType(type, /*writing*/ false);
58828 return simplified !== type ? simplified : getConstraintOfType(type);
58829 }
58830 function getConstraintFromIndexedAccess(type) {
58831 if (isMappedTypeGenericIndexedAccess(type)) {
58832 // For indexed access types of the form { [P in K]: E }[X], where K is non-generic and X is generic,

Callers 2

structuredTypeRelatedToFunction · 0.85

Calls 2

getSimplifiedTypeFunction · 0.85
getConstraintOfTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…