-
Notifications
You must be signed in to change notification settings - Fork 117
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
feat: Add functionality to export doc strings on struct fields and enum variants #228
Conversation
Notes:
Should be
Great observation! This likely means that in case the format feature is off we will have to either:
Sadly there is no reasonable way to document enum variants, regardless of tagging, we should keep this to struct fields (which, on the bright side, will affect fields inside an enum's struct variant) |
This is an "extension" of #187 and tries to also export doc strings not only on "full types" but also on the fields/variants of structs/enums.
Example
is exported as
Comments
JSDocs are only shows when starting in a new line
This of course interferes with the "format" feature and because of the requirement to start in a new line, all tests I guess.
JSDocs are not applicable to unions (enums)
See microsoft/tsdoc#164
This might depend on whether the enum is tagged internally/externally, etc.