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

Function eachTypeContainedIn

test/fixtures/snapshot/typescript.js:69854–69856  ·  view source on GitHub ↗
(source, types)

Source from the content-addressed store, hash-verified

69852 return witnesses;
69853 }
69854 function eachTypeContainedIn(source, types) {
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 }

Callers 1

Calls 2

forEachMethod · 0.65
containsMethod · 0.45

Tested by

no test coverage detected