(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 */); |
| 67485 | } |
| 67486 | function extractUnitType(type) { |
| 67487 | return type.flags & 2097152 /* TypeFlags.Intersection */ ? ts.find(type.types, isUnitType) || type : type; |
| 67488 | } |
no test coverage detected