Doc comment missing when generating declarations for const
methods from js files
#35933
Labels
Domain: Comment Emit
The issue relates to the emission of comments when compiling
Domain: Declaration Emit
The issue relates to the emission of d.ts files
Domain: JavaScript
The issue relates to JavaScript specifically
Effort: Moderate
Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".
Help Wanted
You can do this
Milestone
TypeScript Version: 3.8.0-dev.20191228
Search Terms: declarations js missing jsdoc
Code
index.js(!):
tsconfig.json:
Expected behavior:
index.d.ts
Actual behavior:
index.d.ts
Playground Link: http://www.typescriptlang.org/play/?target=2&module=0&ts=3.8.0-dev.20191228&useJavaScript=true#code/PQKhCgAIUhbBPSATA9gY0mltYFMB2ALlCMOFvgM6GQAekAvJABQCGAlIwHyQDeUkQQCdchAK5D8kAOTSA3OAC+C8KAjRIlXBSTJ0mbHiIkyAMzH40hAJYopAI2ad+g4aIlSADAsXhwsFCQxABtcADpcWgAHFCFCSkY+WgAaSHtFIA
Related Issues: #22037 #5550
Current workaround:
Converting those methods to the
function
syntax, solves the issue for now.The text was updated successfully, but these errors were encountered: