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

Function intersectTypes

test/fixtures/snapshot/typescript.js:58280–58282  ·  view source on GitHub ↗
(type1, type2)

Source from the content-addressed store, hash-verified

58278 setStructuredTypeMembers(type, emptySymbols, callSignatures, constructSignatures, indexInfos);
58279 }
58280 function intersectTypes(type1, type2) {
58281 return !type1 ? type2 : !type2 ? type1 : getIntersectionType([type1, type2]);
58282 }
58283 function findMixins(types) {
58284 var constructorTypeCount = ts.countWhere(types, function (t) { return getSignaturesOfType(t, 1 /* SignatureKind.Construct */).length > 0; });
58285 var mixinFlags = ts.map(types, isMixinConstructorType);

Callers 4

isIntersectionEmptyFunction · 0.85
structuredTypeRelatedToFunction · 0.85

Calls 1

getIntersectionTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…