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

Function getConstraintOfType

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

Source from the content-addressed store, hash-verified

58812 return ts.arrayFrom(props.values());
58813 }
58814 function getConstraintOfType(type) {
58815 return type.flags & 262144 /* TypeFlags.TypeParameter */ ? getConstraintOfTypeParameter(type) :
58816 type.flags & 8388608 /* TypeFlags.IndexedAccess */ ? getConstraintOfIndexedAccess(type) :
58817 type.flags & 16777216 /* TypeFlags.Conditional */ ? getConstraintOfConditionalType(type) :
58818 getBaseConstraintOfType(type);
58819 }
58820 function getConstraintOfTypeParameter(typeParameter) {
58821 return hasNonCircularBaseConstraint(typeParameter) ? getConstraintFromTypeParameter(typeParameter) : undefined;
58822 }

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…