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

Function getReducedApparentType

test/fixtures/snapshot/typescript.js:59145–59151  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

59143 t;
59144 }
59145 function getReducedApparentType(type) {
59146 // Since getApparentType may return a non-reduced union or intersection type, we need to perform
59147 // type reduction both before and after obtaining the apparent type. For example, given a type parameter
59148 // 'T extends A | B', the type 'T & X' becomes 'A & X | B & X' after obtaining the apparent type, and
59149 // that type may need further reduction to remove empty intersections.
59150 return getReducedType(getApparentType(getReducedType(type)));
59151 }
59152 function createUnionOrIntersectionProperty(containingType, name, skipObjectFunctionPropertyAugment) {
59153 var _a, _b;
59154 var singleProp;

Callers 7

getPropertiesOfTypeFunction · 0.85
forEachPropertyOfTypeFunction · 0.85
getPropertyOfTypeFunction · 0.85
getSignaturesOfTypeFunction · 0.85
getIndexInfosOfTypeFunction · 0.85
getNarrowedTypeOfSymbolFunction · 0.85

Calls 2

getReducedTypeFunction · 0.85
getApparentTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…