-
-
Notifications
You must be signed in to change notification settings - Fork 734
Variables in separate export statement get doc of export statement, not doc of declaration #1901
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
Comments
Duplicate of #1886, this is working as intended. You could toss a |
I see, thanks! |
Is there a particular reason why doc for functions don't get overridden by the export statement comment though? |
That looks like an oversight + bug to me, didn't see it the first time I looked at it |
... and fixing it is really annoying. I'm tempted to instead make export comments only do a thing for modules/namespaces... |
Going to do this as a part of 0.23's breaking changes. |
Search terms
export variable
Steps to reproduce the bug
Generated doc:
See also: facebook/docusaurus#7060 and deploy preview for this bug in action.
Expected Behavior
The function
foo
correctly gets the doc of declaration. Variables should behave the same.Actual Behavior
The variable constants get the doc of the export statement, which is a copyright header.
Environment
The text was updated successfully, but these errors were encountered: