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

Function isUnitType

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

Source from the content-addressed store, hash-verified

67477 return !(type.flags & (109440 /* TypeFlags.Unit */ | 131072 /* TypeFlags.Never */));
67478 }
67479 function isUnitType(type) {
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 */);

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…