Skip to content

Commit 60479e7

Browse files
committed
improve doc comments
1 parent 3dbca7c commit 60479e7

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

tsdoc/schemas/tsdoc.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
},
4040

4141
"reportUnsupportedHtmlElements": {
42-
"description": "Whether an error should be reported when an unsupported HTML element is encountered in a doc comment. Defaults to \"true\" if \"supportedHtmlElements\" contains at least one item, \"false\" if not.",
42+
"description": "Whether an error should be reported when an unsupported HTML element is encountered in a doc comment. Defaults to \"true\" if the \"supportedHtmlElements\" field is present, \"false\" if not.",
4343
"type": "boolean"
4444
},
4545

tsdoc/src/configuration/TSDocConfiguration.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,13 @@ export class TSDocConfiguration {
185185
}
186186

187187
/**
188-
* Calls {@link TSDocConfiguration.setSupportForTag} for multiple tag definitions.
188+
* Specifies whether the tag definition is supported in this configuration.
189+
* This operation sets {@link TSDocValidationConfiguration.reportUnsupportedTags} to `true`.
190+
*
191+
* @remarks
192+
* The parser may issue warnings for unsupported tags.
193+
* If a tag is "defined" this means that the parser recognizes it and understands its syntax.
194+
* Whereas if a tag is "supported", this means it is defined AND the application implements the tag.
189195
*/
190196
public setSupportForTags(tagDefinitions: ReadonlyArray<TSDocTagDefinition>, supported: boolean): void {
191197
for (const tagDefinition of tagDefinitions) {
@@ -194,7 +200,8 @@ export class TSDocConfiguration {
194200
}
195201

196202
/**
197-
* Overwrite the supported HTML elements.
203+
* Assigns the `supportedHtmlElements` property, replacing any previous elements.
204+
* This operation sets {@link TSDocValidationConfiguration.reportUnsupportedHtmlElements} to `true`.
198205
*/
199206
public setSupportedHtmlElements(htmlTags: string[]): void {
200207
this._supportedHtmlElements.clear();

0 commit comments

Comments
 (0)