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

Function getContravariantInference

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

Source from the content-addressed store, hash-verified

69123 return candidates;
69124 }
69125 function getContravariantInference(inference) {
69126 return inference.priority & 416 /* InferencePriority.PriorityImpliesCombination */ ? getIntersectionType(inference.contraCandidates) : getCommonSubtype(inference.contraCandidates);
69127 }
69128 function getCovariantInference(inference, signature) {
69129 // Extract all object and array literal types and replace them with a single widened and normalized type.
69130 var candidates = unionObjectAndArrayLiteralCandidates(inference.candidates);

Callers 1

getInferredTypeFunction · 0.85

Calls 2

getIntersectionTypeFunction · 0.85
getCommonSubtypeFunction · 0.85

Tested by

no test coverage detected