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

Function hasPrimitiveConstraint

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

Source from the content-addressed store, hash-verified

69103 s.aliasSymbol && s.aliasTypeArguments && s.aliasSymbol === t.aliasSymbol);
69104 }
69105 function hasPrimitiveConstraint(type) {
69106 var constraint = getConstraintOfTypeParameter(type);
69107 return !!constraint && maybeTypeOfKind(constraint.flags & 16777216 /* TypeFlags.Conditional */ ? getDefaultConstraintOfConditionalType(constraint) : constraint, 131068 /* TypeFlags.Primitive */ | 4194304 /* TypeFlags.Index */ | 134217728 /* TypeFlags.TemplateLiteral */ | 268435456 /* TypeFlags.StringMapping */);
69108 }
69109 function isObjectLiteralType(type) {
69110 return !!(ts.getObjectFlags(type) & 128 /* ObjectFlags.ObjectLiteral */);
69111 }

Callers 1

getCovariantInferenceFunction · 0.85

Calls 3

maybeTypeOfKindFunction · 0.85

Tested by

no test coverage detected