naive perf change

This commit is contained in:
Pranav Senthilnathan (from Dev Box)
2023-10-17 13:28:45 -07:00
parent b4787652d2
commit 8e76d1644e
+1 -1
View File
@@ -16939,7 +16939,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
if (includes & (TypeFlags.Enum | TypeFlags.Literal | TypeFlags.UniqueESSymbol | TypeFlags.TemplateLiteral | TypeFlags.StringMapping) || includes & TypeFlags.Void && includes & TypeFlags.Undefined) {
removeRedundantLiteralTypes(typeSet, includes, !!(unionReduction & UnionReduction.Subtype));
}
if (includes & TypeFlags.StringLiteral && includes & TypeFlags.TemplateLiteral) {
if (unionReduction === UnionReduction.Subtype && (includes & TypeFlags.StringLiteral && includes & TypeFlags.TemplateLiteral)) {
removeStringLiteralsMatchedByTemplateLiterals(typeSet);
}
if (unionReduction === UnionReduction.Subtype) {