Skip to content

Commit a5e123d

Browse files
Update LKG
1 parent 8bc0204 commit a5e123d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/_tsc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -50327,7 +50327,7 @@ function createTypeChecker(host) {
5032750327
return true;
5032850328
}
5032950329
if (requiresAddingUndefined && annotationType) {
50330-
annotationType = getOptionalType(annotationType, !isParameter(node));
50330+
annotationType = addOptionality(annotationType, !isParameter(node));
5033150331
}
5033250332
return !!annotationType && typeNodeIsEquivalentToType(node, type, annotationType) && existingTypeNodeIsNotReferenceOrIsReferenceWithCompatibleTypeArgumentCount(existing, type);
5033350333
}

lib/typescript.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -54930,7 +54930,7 @@ function createTypeChecker(host) {
5493054930
return true;
5493154931
}
5493254932
if (requiresAddingUndefined && annotationType) {
54933-
annotationType = getOptionalType(annotationType, !isParameter(node));
54933+
annotationType = addOptionality(annotationType, !isParameter(node));
5493454934
}
5493554935
return !!annotationType && typeNodeIsEquivalentToType(node, type, annotationType) && existingTypeNodeIsNotReferenceOrIsReferenceWithCompatibleTypeArgumentCount(existing, type);
5493654936
}

0 commit comments

Comments
 (0)