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

Function isUnitLikeType

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

Source from the content-addressed store, hash-verified

67480 return !!(type.flags & 109440 /* TypeFlags.Unit */);
67481 }
67482 function isUnitLikeType(type) {
67483 return type.flags & 2097152 /* TypeFlags.Intersection */ ? ts.some(type.types, isUnitType) :
67484 !!(type.flags & 109440 /* TypeFlags.Unit */);
67485 }
67486 function extractUnitType(type) {
67487 return type.flags & 2097152 /* TypeFlags.Intersection */ ? ts.find(type.types, isUnitType) || type : type;
67488 }

Callers 2

narrowTypeByEqualityFunction · 0.85

Calls 1

someMethod · 0.80

Tested by

no test coverage detected