From a5e123d9e0690fcea92878ea8a0a382922009fc9 Mon Sep 17 00:00:00 2001 From: TypeScript Bot Date: Wed, 8 Jan 2025 00:16:22 +0000 Subject: [PATCH] Update LKG --- lib/_tsc.js | 2 +- lib/typescript.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/_tsc.js b/lib/_tsc.js index ffb38a01be4fa..d1ea13710bd93 100644 --- a/lib/_tsc.js +++ b/lib/_tsc.js @@ -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); } diff --git a/lib/typescript.js b/lib/typescript.js index 23672a730afdc..fa7c62f9a01aa 100644 --- a/lib/typescript.js +++ b/lib/typescript.js @@ -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); }