MCPcopy Create free account
hub / github.com/nodejs/node / isTypicalNondistributiveConditional

Function isTypicalNondistributiveConditional

test/fixtures/snapshot/typescript.js:62513–62515  ·  view source on GitHub ↗
(root)

Source from the content-addressed store, hash-verified

62511 return constraint && (isGenericObjectType(constraint) || isGenericIndexType(constraint)) ? cloneTypeParameter(p) : p;
62512 }
62513 function isTypicalNondistributiveConditional(root) {
62514 return !root.isDistributive && isSingletonTupleType(root.node.checkType) && isSingletonTupleType(root.node.extendsType);
62515 }
62516 function isSingletonTupleType(node) {
62517 return ts.isTupleTypeNode(node) &&
62518 ts.length(node.elements) === 1 &&

Callers 2

_loop_18Function · 0.85

Calls 1

isSingletonTupleTypeFunction · 0.85

Tested by

no test coverage detected