-
Notifications
You must be signed in to change notification settings - Fork 708
New issue
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
Support for documenting params with named types #2147
Comments
Copying this in from #2456:
|
I have come across this too. Any update? I get warnings (similar to #2483):
Granted the output provides a link to the interface and the interface is documented, however VSCode with eslint-plugin-jsdoc issues warnings if the destructured |
Just switched from eslint-plugin-jsdoc to eslint-plugin-tsdoc and now I can remove the |
What do you think about the integration of this feature after the current release, @Gerrit0 ? |
It is still planned to happen at some point, that's why the issue is still open. |
Thank you :) |
Search Terms
@params params named types function
Problem
When documenting functions, it happens that params use named types. If this type is used only once in the while code, it is fine, but if this type is reused multiple times, it would be handy to document it within the function using it:
Here the comments for
fn1
wont be picked up, nor in HTML or JSON output.Suggested Solution
Include all the
@params
tags within the function comments in the result JSON.I did not try to clone the code yet and run it, but it seems to me that somewhere around here we look for comments which have
@param paranName comment
withparamName
matching the name in the code. I guess we could return all comments which start byparanName.
. And then it would be for the users to implement their own way of dealing with it while processing the JSON output.I have attached a little example project (with the same code I pasted up in the issue, and commands etc)
tsdoc-param-functions.zip
What do you think ?
The text was updated successfully, but these errors were encountered: