We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Potentially related issues:
Nested function's JSDoc is lost after compilation when returned in an object, but works as expected when inlined in the return.
Playground link with relevant code
Input
function x() { function u() {} /** * lol */ function y() { } return { u, y, /** * lol2 */ z() { } } }
Output .d.ts
.d.ts
declare function x(): { u: () => void; y: () => void; /** * lol2 */ z(): void; };
In the above example, the .d.ts files won't contain y's JSDoc, but only z's.
y
z
Both JSDoc are preserved.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug Report
Potentially related issues:
🔎 Search Terms
Nested function's JSDoc is lost after compilation when returned in an object, but works as expected when inlined in the return.
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
💻 Code
Input
Output
.d.ts
🙁 Actual behavior
In the above example, the
.d.ts
files won't containy
's JSDoc, but onlyz
's.🙂 Expected behavior
Both JSDoc are preserved.
The text was updated successfully, but these errors were encountered: