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

Function getBaseConstraintOrType

test/fixtures/snapshot/typescript.js:58942–58944  ·  view source on GitHub ↗

* This is similar to `getBaseConstraintOfType` except it returns the input type if there's no base constraint, instead of `undefined` * It also doesn't map indexes to `string`, as where this is used this would be unneeded (and likely undesirable)

(type)

Source from the content-addressed store, hash-verified

58940 * It also doesn't map indexes to `string`, as where this is used this would be unneeded (and likely undesirable)
58941 */
58942 function getBaseConstraintOrType(type) {
58943 return getBaseConstraintOfType(type) || type;
58944 }
58945 function hasNonCircularBaseConstraint(type) {
58946 return getResolvedBaseConstraint(type) !== circularConstraintType;
58947 }

Calls 1

getBaseConstraintOfTypeFunction · 0.85

Tested by

no test coverage detected