* Invokes union simplification logic to determine if an intersection is considered empty as a union constituent
(type1, type2)
| 62379 | * Invokes union simplification logic to determine if an intersection is considered empty as a union constituent |
| 62380 | */ |
| 62381 | function isIntersectionEmpty(type1, type2) { |
| 62382 | return !!(getUnionType([intersectTypes(type1, type2), neverType]).flags & 131072 /* TypeFlags.Never */); |
| 62383 | } |
| 62384 | function substituteIndexedMappedType(objectType, index) { |
| 62385 | var mapper = createTypeMapper([getTypeParameterFromMappedType(objectType)], [index]); |
| 62386 | var templateMapper = combineTypeMappers(objectType.mapper, mapper); |
no test coverage detected
searching dependent graphs…