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

Function getReducedUnionType

test/fixtures/snapshot/typescript.js:59357–59367  ·  view source on GitHub ↗
(unionType)

Source from the content-addressed store, hash-verified

59355 return type;
59356 }
59357 function getReducedUnionType(unionType) {
59358 var reducedTypes = ts.sameMap(unionType.types, getReducedType);
59359 if (reducedTypes === unionType.types) {
59360 return unionType;
59361 }
59362 var reduced = getUnionType(reducedTypes);
59363 if (reduced.flags & 1048576 /* TypeFlags.Union */) {
59364 reduced.resolvedReducedType = reduced;
59365 }
59366 return reduced;
59367 }
59368 function isNeverReducedProperty(prop) {
59369 return isDiscriminantWithNeverType(prop) || isConflictingPrivateProperty(prop);
59370 }

Callers 1

getReducedTypeFunction · 0.85

Calls 1

getUnionTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…