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

Function check

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

Source from the content-addressed store, hash-verified

56935 function hasBaseType(type, checkBase) {
56936 return check(type);
56937 function check(type) {
56938 if (ts.getObjectFlags(type) & (3 /* ObjectFlags.ClassOrInterface */ | 4 /* ObjectFlags.Reference */)) {
56939 var target = getTargetType(type);
56940 return target === checkBase || ts.some(getBaseTypes(target), check);
56941 }
56942 else if (type.flags & 2097152 /* TypeFlags.Intersection */) {
56943 return ts.some(type.types, check);
56944 }
56945 return false;
56946 }
56947 }
56948 // Appends the type parameters given by a list of declarations to a set of type parameters and returns the resulting set.
56949 // The function allocates a new array if the input type parameter set is undefined, but otherwise it modifies the set

Callers 2

hasBaseTypeFunction · 0.70

Calls 8

getTargetTypeFunction · 0.85
getBaseTypesFunction · 0.85
canBeConvertedToClassFunction · 0.85
canBeConvertedToAsyncFunction · 0.85
someMethod · 0.80
forEachChildMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…