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

Function getTypeFromInference

test/fixtures/snapshot/typescript.js:68312–68316  ·  view source on GitHub ↗
(inference)

Source from the content-addressed store, hash-verified

68310 !!getUnmatchedProperty(target, source, /*requireOptionalProperties*/ false, /*matchDiscriminantProperties*/ false);
68311 }
68312 function getTypeFromInference(inference) {
68313 return inference.candidates ? getUnionType(inference.candidates, 2 /* UnionReduction.Subtype */) :
68314 inference.contraCandidates ? getIntersectionType(inference.contraCandidates) :
68315 undefined;
68316 }
68317 function hasSkipDirectInferenceFlag(node) {
68318 return !!getNodeLinks(node).skipDirectInference;
68319 }

Callers 2

inferReverseMappedTypeFunction · 0.85
getInferredTypeFunction · 0.85

Calls 2

getUnionTypeFunction · 0.85
getIntersectionTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…