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

Function isOrHasGenericConditional

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

Source from the content-addressed store, hash-verified

63893 return false;
63894 }
63895 function isOrHasGenericConditional(type) {
63896 return !!(type.flags & 16777216 /* TypeFlags.Conditional */ || (type.flags & 2097152 /* TypeFlags.Intersection */ && ts.some(type.types, isOrHasGenericConditional)));
63897 }
63898 function elaborateError(node, source, target, relation, headMessage, containingMessageChain, errorOutputContainer) {
63899 if (!node || isOrHasGenericConditional(target))
63900 return false;

Callers 1

elaborateErrorFunction · 0.85

Calls 1

someMethod · 0.80

Tested by

no test coverage detected