You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// constants.d.ts/** A constant */declareconstconstant1=1;/** Another constant */declareconstconstant2=true;/** * bar * @param a foo */declarefunctionfoo(a: number): void;/** * copyright */export{constant1,constant2,foo,};
Duplicate of #1886, this is working as intended. You could toss a @module tag in the copyright comment, or make it a non-JSDoc comment which would prevent it from being associated with the export declaration
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: