Skip to content

Commit 6a73988

Browse files
committed
Improve the punctuation for some errors
1 parent bab0548 commit 6a73988

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

apps/api-extractor/src/enhancers/DocCommentEnhancer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export class DocCommentEnhancer {
181181

182182
if (!inheritDocTag.declarationReference) {
183183
this._collector.messageRouter.addAnalyzerIssue(ExtractorMessageId.UnresolvedInheritDocBase,
184-
'The `@inheritDoc` tag needs a TSDoc declaration reference; signature matching is not supported yet',
184+
'The @inheritDoc tag needs a TSDoc declaration reference; signature matching is not supported yet',
185185
astDeclaration);
186186
return;
187187
}
@@ -201,7 +201,7 @@ export class DocCommentEnhancer {
201201

202202
if (referencedAstDeclaration instanceof ResolverFailure) {
203203
this._collector.messageRouter.addAnalyzerIssue(ExtractorMessageId.UnresolvedInheritDocReference,
204-
'The `@inheritDoc` reference could not be resolved: ' + referencedAstDeclaration.reason, astDeclaration);
204+
'The @inheritDoc reference could not be resolved: ' + referencedAstDeclaration.reason, astDeclaration);
205205
return;
206206
}
207207

apps/api-extractor/src/enhancers/ValidationEnhancer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ export class ValidationEnhancer {
4040
if (exportName[0] !== '_') {
4141
collector.messageRouter.addAnalyzerIssue(
4242
ExtractorMessageId.InternalMissingUnderscore,
43-
`The name ${exportName} should be prefixed with an underscore`
44-
+ ` because the declaration is marked as "@internal"`,
43+
`The name "${exportName}" should be prefixed with an underscore`
44+
+ ` because the declaration is marked as @internal`,
4545
astSymbol,
4646
{ exportName }
4747
);

0 commit comments

Comments
 (0)