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
I'd also prefer that, in previous versions of jsdoc it hasn't been very good at getting "what is exported" correct.
We'd also need to extrapolate from what is exported, other things that should be exported.
For example, consider a function that takes an interface as an arg. The function will be marked as exported, but the interface likely won't be. In the TS definitions, both should be exported.
I'd love to rework the logic to work this way instead, and if you are up for it I'm happy to accept a PR.
Sure, I'll try to implement such a backward walk from exports.
Actually, assuming this strategy could help with the handling of exports = module.exports = myExport patterns for issue#96, so I may give it a try in PR#98.
While working on PR#98 for 'export default' support, I wondered what would be the best strategy:
My feeling is that it would be better to have tsd-jsdoc be based on what is exported:
module.exports
for the following common export pattern:issue#96 / PR#98 would be a prerequisite for this kind of evolution.
The text was updated successfully, but these errors were encountered: