otris/jsdoc-tsd

Array of module types generated as `any[]`

Closed this issue · 1 comments

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[].

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