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

Function eachTypeRelatedToSomeType

test/fixtures/snapshot/typescript.js:65301–65313  ·  view source on GitHub ↗
(source, target)

Source from the content-addressed store, hash-verified

65299 return someTypeRelatedToType(source, target, /*reportErrors*/ false, 1 /* IntersectionState.Source */);
65300 }
65301 function eachTypeRelatedToSomeType(source, target) {
65302 var result = -1 /* Ternary.True */;
65303 var sourceTypes = source.types;
65304 for (var _i = 0, sourceTypes_1 = sourceTypes; _i < sourceTypes_1.length; _i++) {
65305 var sourceType = sourceTypes_1[_i];
65306 var related = typeRelatedToSomeType(sourceType, target, /*reportErrors*/ false);
65307 if (!related) {
65308 return 0 /* Ternary.False */;
65309 }
65310 result &= related;
65311 }
65312 return result;
65313 }
65314 function typeRelatedToSomeType(source, target, reportErrors) {
65315 var targetTypes = target.types;
65316 if (target.flags & 1048576 /* TypeFlags.Union */) {

Callers 1

structuredTypeRelatedToFunction · 0.85

Calls 1

typeRelatedToSomeTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…