mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-26 20:14:05 -05:00
better error message
This commit is contained in:
@@ -20018,7 +20018,7 @@ namespace ts {
|
||||
const augmentsTags = getAllJSDocTagsOfKind(classLike, SyntaxKind.JSDocAugmentsTag);
|
||||
Debug.assert(augmentsTags.length > 0);
|
||||
if (augmentsTags.length > 1) {
|
||||
error(augmentsTags[1], Diagnostics.The_total_number_of_augments_and_extends_tags_allowed_for_a_single_class_declaration_is_at_most_1);
|
||||
error(augmentsTags[1], Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);
|
||||
}
|
||||
|
||||
const name = getIdentifierFromEntityNameExpression(node.class.expression);
|
||||
|
||||
@@ -3527,7 +3527,7 @@
|
||||
"category": "Error",
|
||||
"code": 8024
|
||||
},
|
||||
"The total number of `@augments` and `@extends` tags allowed for a single class declaration is at most 1.": {
|
||||
"Class declarations cannot have more than one `@augments` or `@extends` tag.": {
|
||||
"category": "Error",
|
||||
"code": 8025
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user