Skip to content

Commit 3dbca7c

Browse files
committed
replace setReportUnsupportedHtmlElements method with setter
1 parent 5cba6a4 commit 3dbca7c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tsdoc-config/src/TSDocConfigFile.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,10 @@ export class TSDocConfigFile {
179179
return this._reportUnsupportedHtmlElements;
180180
}
181181

182+
public set reportUnsupportedHtmlElements(value: boolean | undefined) {
183+
this._reportUnsupportedHtmlElements = value;
184+
}
185+
182186
/**
183187
* Removes all items from the `tagDefinitions` array.
184188
*/
@@ -246,10 +250,6 @@ export class TSDocConfigFile {
246250
this._supportedHtmlElements = undefined;
247251
}
248252

249-
public setReportUnsupportedHtmlElements(reportUnsupportedHtmlElements: boolean): void {
250-
this._reportUnsupportedHtmlElements = reportUnsupportedHtmlElements;
251-
}
252-
253253
/**
254254
* Removes all entries from the "supportForTags" map.
255255
*/
@@ -599,7 +599,7 @@ export class TSDocConfigFile {
599599
configFile.addSupportedHtmlElement(htmlElement);
600600
}
601601

602-
configFile.setReportUnsupportedHtmlElements(configuration.validation.reportUnsupportedHtmlElements);
602+
configFile.reportUnsupportedHtmlElements = configuration.validation.reportUnsupportedHtmlElements;
603603

604604
return configFile;
605605
}

0 commit comments

Comments
 (0)