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

Function getConstraintDeclaration

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

Source from the content-addressed store, hash-verified

60061 !!(type.flags & 2097152 /* TypeFlags.Intersection */) && !isGenericType(type) && ts.some(type.types, isValidIndexKeyType);
60062 }
60063 function getConstraintDeclaration(type) {
60064 return ts.mapDefined(ts.filter(type.symbol && type.symbol.declarations, ts.isTypeParameterDeclaration), ts.getEffectiveConstraintOfTypeParameter)[0];
60065 }
60066 function getInferredTypeParameterConstraint(typeParameter, omitTypeReferences) {
60067 var _a;
60068 var inferences;

Callers 2

Calls 1

filterMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…