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

Function removeDefinitelyFalsyTypes

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

Source from the content-addressed store, hash-verified

67600 type.flags & 117724 /* TypeFlags.PossiblyFalsy */;
67601 }
67602 function removeDefinitelyFalsyTypes(type) {
67603 return getFalsyFlags(type) & 117632 /* TypeFlags.DefinitelyFalsy */ ?
67604 filterType(type, function (t) { return !(getFalsyFlags(t) & 117632 /* TypeFlags.DefinitelyFalsy */); }) :
67605 type;
67606 }
67607 function extractDefinitelyFalsyTypes(type) {
67608 return mapType(type, getDefinitelyFalsyPartOfType);
67609 }

Callers 2

isValidSpreadTypeFunction · 0.85

Calls 2

getFalsyFlagsFunction · 0.85
filterTypeFunction · 0.85

Tested by

no test coverage detected