Skip to content

Commit 90dade9

Browse files
author
Armando Aguirre Sepulveda
committed
Changed elided comment
1 parent 5891f32 commit 90dade9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7292,7 +7292,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
72927292
i++;
72937293
if (checkTruncationLength(context) && (i + 2 < types.length - 1)) {
72947294
if (context.flags & NodeBuilderFlags.NoTruncation) {
7295-
return [addSyntheticLeadingComment(factory.createKeywordTypeNode(SyntaxKind.AnyKeyword), SyntaxKind.MultiLineCommentTrivia, "elided")];
7295+
return [addSyntheticLeadingComment(factory.createKeywordTypeNode(SyntaxKind.AnyKeyword), SyntaxKind.MultiLineCommentTrivia, `... ${types.length - i} more elided ...`)];
72967296
}
72977297
result.push(factory.createTypeReferenceNode(`... ${types.length - i} more ...`, /*typeArguments*/ undefined));
72987298
const typeNode = typeToTypeNodeHelper(types[types.length - 1], context);

0 commit comments

Comments
 (0)