mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-09 00:52:42 -05:00
Update LKG
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user