Skip to content

Commit

Permalink
fix self-check
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Dec 20, 2024
1 parent 1a8f1cc commit 709b33d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compiler/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18117,7 +18117,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
removeFromEach(typeSet, TypeFlags.Undefined);
result = getUnionType([getIntersectionType(typeSet, flags), containedUndefinedType], UnionReduction.Literal, aliasSymbol, aliasTypeArguments);
}
else if (every(typeSet, t => !!(t.flags & TypeFlags.Union && ((t as UnionType).types[0].flags & TypeFlags.Null || (t as UnionType).types[1].flags & TypeFlags.Null)))) {
else if (every(typeSet, (t): boolean => !!(t.flags & TypeFlags.Union && ((t as UnionType).types[0].flags & TypeFlags.Null || (t as UnionType).types[1].flags & TypeFlags.Null)))) {

Check failure on line 18120 in src/compiler/checker.ts

View workflow job for this annotation

GitHub Actions / self-check

't' is of type 'unknown'.
removeFromEach(typeSet, TypeFlags.Null);
result = getUnionType([getIntersectionType(typeSet, flags), nullType], UnionReduction.Literal, aliasSymbol, aliasTypeArguments);
}
Expand Down Expand Up @@ -18434,7 +18434,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
}
newTexts.push(text);
if (every(newTexts, t => t === "")) {
if (every(newTypes, t => !!(t.flags & TypeFlags.String))) {
if (every(newTypes, (t): boolean => !!(t.flags & TypeFlags.String))) {
return stringType;
}
// Normalize `${Mapping<xxx>}` into Mapping<xxx>
Expand Down

0 comments on commit 709b33d

Please sign in to comment.