otris / jsdoc-tsd

JSDoc template for generating TypeScript definition files based on JSDoc comments.
MIT License
29 stars 7 forks source link

Array of module types generated as `any[]` #52

Closed whitlockjc closed 5 years ago

whitlockjc commented 6 years ago

Let's say I have a function that has a @returns {module:sway~Operation[]}, the generated TSD has any[]. For example, this JSDoc is generated as this TSD. It should be Operation[] and not any[].

wehrstedt commented 6 years ago

Modules are quite tricky to handle, I don't know when I have time to check this. If you like you can write a test for your case like this one (should not be that hard) and debug the parse-function or the prepareResults-function. I assume that theres a problem with the function mapVariableType, should be pretty easy to debug