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

Function isIntersectionEmpty

test/fixtures/snapshot/typescript.js:62381–62383  ·  view source on GitHub ↗

* Invokes union simplification logic to determine if an intersection is considered empty as a union constituent

(type1, type2)

Source from the content-addressed store, hash-verified

62379 * Invokes union simplification logic to determine if an intersection is considered empty as a union constituent
62380 */
62381 function isIntersectionEmpty(type1, type2) {
62382 return !!(getUnionType([intersectTypes(type1, type2), neverType]).flags & 131072 /* TypeFlags.Never */);
62383 }
62384 function substituteIndexedMappedType(objectType, index) {
62385 var mapper = createTypeMapper([getTypeParameterFromMappedType(objectType)], [index]);
62386 var templateMapper = combineTypeMappers(objectType.mapper, mapper);

Callers 1

Calls 2

getUnionTypeFunction · 0.85
intersectTypesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…