(typeSet, includes, types)
| 61462 | // Add the given types to the given type set. Order is preserved, freshness is removed from literal |
| 61463 | // types, duplicates are removed, and nested types of the given kind are flattened into the set. |
| 61464 | function addTypesToIntersection(typeSet, includes, types) { |
| 61465 | for (var _i = 0, types_12 = types; _i < types_12.length; _i++) { |
| 61466 | var type = types_12[_i]; |
| 61467 | includes = addTypeToIntersection(typeSet, includes, getRegularTypeOfLiteralType(type)); |
| 61468 | } |
| 61469 | return includes; |
| 61470 | } |
| 61471 | function removeRedundantPrimitiveTypes(types, includes) { |
| 61472 | var i = types.length; |
| 61473 | while (i > 0) { |
no test coverage detected