-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Add support for @template JSDoc #1178
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
Comments
+1 for this |
This tag appears to be undocumented but supported in WebStorm for this same purpose so may be reasonable to go ahead with it (http://stackoverflow.com/questions/16017627/document-generic-type-parameters-in-jsdoc). |
Carried over from #5854, it was pointed out that Closure Compiler documents this feature. |
I'm not sure what is the final syntax for documenting generic arguments. Can you point to documentation or briefly describe, please? |
@Liero see the examples at https://github.com/Microsoft/TypeScript/wiki/JsDoc-support-in-JavaScript |
@RyanCavanaugh is it in nightly? I check and The "@template T Inferred ...." is treated as part of summary. |
@unional can you log a new issue with more details |
Done. 🌷 |
so narrowing generic type same question: https://stackoverflow.com/questions/44080759/is-it-possible-to-constrain-a-generic-type-defined-in-a-jsdoc-template-declarat |
I just came to ask the same question, but it seems like the answer is no. |
Looking at the closure documentation for |
Hi, it will be useful to be able to document generic parameters:
The text was updated successfully, but these errors were encountered: