Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[api-extractor] Add support for "@defaultvalue" #837

Merged
merged 4 commits into from
Sep 24, 2018

Conversation

octogonz
Copy link
Collaborator

This PR updates updates the doc comment parser to accept TSDoc's @defaultvalue tag proposed in microsoft/tsdoc#27.

A couple notes:

  • For now API Extractor ignores the text content. After we finish integrating the TSDoc engine, we can pass the @defaultvalue content to the the documentation pipeline.

  • The TSDoc standard wants multiword tags to be camelCase (@defaultValue) in strict mode. However, API Extractor historically used all lower case, so we preserve that convention in this PR. We'll fix the casing when API Extractor 6.x brings along all the other TSDoc conventions.

@kkjeer @cliffkoh

…for now. We'll postpone passing it through to the documentation pipeline until after TSDoc is integrated.
Copy link
Contributor

@cliffkoh cliffkoh left a comment

Choose a reason for hiding this comment

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

What about the far more common @default form?

@octogonz
Copy link
Collaborator Author

What about the far more common @default form?

@cliffkoh please see the discussion for
microsoft/tsdoc#27

It's an open discussion so feel free to propose a different approach.

@octogonz
Copy link
Collaborator Author

octogonz commented Sep 22, 2018

:shipit:

Approved with PullApprove

@octogonz octogonz merged commit 20f6e13 into master Sep 24, 2018
@octogonz octogonz deleted the pgonzal/ae-default-tag branch October 3, 2018 23:37
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.

3 participants