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

Function isTypeSubsetOf

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

Source from the content-addressed store, hash-verified

69855 return source.flags & 1048576 /* TypeFlags.Union */ ? !ts.forEach(source.types, function (t) { return !ts.contains(types, t); }) : ts.contains(types, source);
69856 }
69857 function isTypeSubsetOf(source, target) {
69858 return source === target || target.flags & 1048576 /* TypeFlags.Union */ && isTypeSubsetOfUnion(source, target);
69859 }
69860 function isTypeSubsetOfUnion(source, target) {
69861 if (source.flags & 1048576 /* TypeFlags.Union */) {
69862 for (var _i = 0, _a = source.types; _i < _a.length; _i++) {

Callers 4

hasExcessPropertiesFunction · 0.85
getTypeAtFlowBranchLabelFunction · 0.85
getTypeAtFlowLoopLabelFunction · 0.85

Calls 1

isTypeSubsetOfUnionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…