Bump TS devDep to 5.3, hack dtsBundler to remove new comments (#56554)

This commit is contained in:
Jake Bailey
2023-11-27 09:26:24 -08:00
committed by GitHub
parent d4fbc9b57d
commit b334e073d5
4 changed files with 35 additions and 11 deletions

View File

@@ -3147,7 +3147,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
else if (location.kind === SyntaxKind.ConditionalType) {
// A type parameter declared using 'infer T' in a conditional type is visible only in
// the true branch of the conditional type.
useResult = lastLocation === (location as ConditionalTypeNode).trueType;
useResult = lastLocation === location.trueType;
}
if (useResult) {