Skip to content

Commit a35d99b

Browse files
committed
tweak fix
1 parent 07cda04 commit a35d99b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6267,7 +6267,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
62676267
return true;
62686268
}
62696269
if (requiresAddingUndefined && annotationType) {
6270-
annotationType = getOptionalType(annotationType, !isParameter(node));
6270+
annotationType = addOptionality(annotationType, !isParameter(node));
62716271
}
62726272
return !!annotationType && typeNodeIsEquivalentToType(node, type, annotationType) && existingTypeNodeIsNotReferenceOrIsReferenceWithCompatibleTypeArgumentCount(existing, type);
62736273
},

0 commit comments

Comments
 (0)