(types, flag)
| 61530 | return ts.every(types, function (t) { return !!(t.flags & 1048576 /* TypeFlags.Union */) && ts.some(t.types, function (tt) { return !!(tt.flags & flag); }); }); |
| 61531 | } |
| 61532 | function removeFromEach(types, flag) { |
| 61533 | for (var i = 0; i < types.length; i++) { |
| 61534 | types[i] = filterType(types[i], function (t) { return !(t.flags & flag); }); |
| 61535 | } |
| 61536 | } |
| 61537 | // If the given list of types contains more than one union of primitive types, replace the |
| 61538 | // first with a union containing an intersection of those primitive types, then remove the |
| 61539 | // other unions and return true. Otherwise, do nothing and return false. |
no test coverage detected