Skip to content

Commit

Permalink
Update LKG
Browse files Browse the repository at this point in the history
  • Loading branch information
typescript-bot committed Jan 8, 2025
1 parent 8bc0204 commit a5e123d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/_tsc.js
Original file line number Diff line number Diff line change
Expand Up @@ -50327,7 +50327,7 @@ function createTypeChecker(host) {
return true;
}
if (requiresAddingUndefined && annotationType) {
annotationType = getOptionalType(annotationType, !isParameter(node));
annotationType = addOptionality(annotationType, !isParameter(node));
}
return !!annotationType && typeNodeIsEquivalentToType(node, type, annotationType) && existingTypeNodeIsNotReferenceOrIsReferenceWithCompatibleTypeArgumentCount(existing, type);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -54930,7 +54930,7 @@ function createTypeChecker(host) {
return true;
}
if (requiresAddingUndefined && annotationType) {
annotationType = getOptionalType(annotationType, !isParameter(node));
annotationType = addOptionality(annotationType, !isParameter(node));
}
return !!annotationType && typeNodeIsEquivalentToType(node, type, annotationType) && existingTypeNodeIsNotReferenceOrIsReferenceWithCompatibleTypeArgumentCount(existing, type);
}
Expand Down

0 comments on commit a5e123d

Please sign in to comment.