From 927f06d96c1259c1e283854320408ba3fa8a69db Mon Sep 17 00:00:00 2001 From: Gerrit Birkeland Date: Wed, 19 Feb 2025 20:22:17 -0700 Subject: [PATCH] Fix #2860 --- src/lib/internationalization/locales/en.cts | 2 ++ src/lib/utils/options/sources/typedoc.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/internationalization/locales/en.cts b/src/lib/internationalization/locales/en.cts index 7e0cef9fd..315e838fa 100644 --- a/src/lib/internationalization/locales/en.cts +++ b/src/lib/internationalization/locales/en.cts @@ -328,6 +328,8 @@ export = { "If set and no @summary tag is specified, TypeDoc will use the first paragraph of comments as the short summary in the module/namespace view", help_jsDocCompatibility: "Sets compatibility options for comment parsing that increase similarity with JSDoc comments", + help_suppressCommentWarningsInDeclarationFiles: + "Prevents warnings due to unspecified tags from being reported in comments within .d.ts files.", help_commentStyle: "Determines how TypeDoc searches for comments", help_useTsLinkResolution: "Use TypeScript's link resolution when determining where @link tags point. This only applies to JSDoc style comments", diff --git a/src/lib/utils/options/sources/typedoc.ts b/src/lib/utils/options/sources/typedoc.ts index b5370a9f2..e28d4575a 100644 --- a/src/lib/utils/options/sources/typedoc.ts +++ b/src/lib/utils/options/sources/typedoc.ts @@ -743,7 +743,7 @@ export function addTypeDocOptions(options: Pick) { options.addDeclaration({ name: "suppressCommentWarningsInDeclarationFiles", - help: (i18n) => i18n.help_lang(), + help: (i18n) => i18n.help_suppressCommentWarningsInDeclarationFiles(), type: ParameterType.Boolean, defaultValue: true, });