Skip to content

Add "supportForTags" field to tsdoc.json schema#277

Merged
octogonz merged 8 commits intomasterfrom
octogonz/tsdoc-config-features
Jan 22, 2021
Merged

Add "supportForTags" field to tsdoc.json schema#277
octogonz merged 8 commits intomasterfrom
octogonz/tsdoc-config-features

Conversation

@octogonz
Copy link
Collaborator

This PR also adds the ability to generate a tsdoc.json file containing the TSDocConfiguration state.

* Removes all items from the `tagDefinitions` array.
*/
public clearTagDefinitions(): void {
this._tagDefinitions.length = 0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this really clear the array? Why not just

Suggested change
this._tagDefinitions.length = 0;
this._tagDefinitions = [];

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's the only way to clear a readonly array. I think this is a better practice than replacing the object with [ ].

@octogonz octogonz merged commit cbe0ae4 into master Jan 22, 2021
@octogonz octogonz deleted the octogonz/tsdoc-config-features branch January 22, 2021 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants