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

Function unwrapNondistributiveConditionalTuple

test/fixtures/snapshot/typescript.js:62528–62530  ·  view source on GitHub ↗

* We syntactually check for common nondistributive conditional shapes and unwrap them into * the intended comparison - we do this so we can check if the unwrapped types are generic or * not and appropriately defer condition calculation

(root, type)

Source from the content-addressed store, hash-verified

62526 * not and appropriately defer condition calculation
62527 */
62528 function unwrapNondistributiveConditionalTuple(root, type) {
62529 return isTypicalNondistributiveConditional(root) && isTupleType(type) ? getTypeArguments(type)[0] : type;
62530 }
62531 function getConditionalType(root, mapper, aliasSymbol, aliasTypeArguments) {
62532 var result;
62533 var extraTypes;

Callers 1

_loop_18Function · 0.85

Calls 3

isTupleTypeFunction · 0.85
getTypeArgumentsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…