Skip to content

Commit d5a414c

Browse files
authored
Don't use noErrorTruncation when printing types with maximumLength set (#62091)
1 parent f14b5c8 commit d5a414c

File tree

3 files changed

+4208
-1
lines changed

3 files changed

+4208
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6156,7 +6156,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
61566156
verbosityLevel?: number,
61576157
out?: WriterContextOut,
61586158
): string {
6159-
const noTruncation = compilerOptions.noErrorTruncation ||
6159+
const noTruncation = !maximumLength && compilerOptions.noErrorTruncation ||
61606160
flags & TypeFormatFlags.NoTruncation;
61616161
const typeNode = nodeBuilder.typeToTypeNode(
61626162
type,

0 commit comments

Comments
 (0)