-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Please allow jsdoc at function parameter #7533
Comments
Note that placing an inline comment where you have it poses challenges if you have more than one parameter, as JsDoc @ tags are separated by newlines. The Google closure compiler does support just adding a type immediately before the parameter (e.g. |
Great! Thanks. Interesting that I notice using the second form you show only works with a line break before the param. We should probably not require this (i.e. just allow it inline). |
Note: Closure supports inline types as you mention, but in Closure, functions have other non-type "stuff" they worry about. For example optional params are written Another way of saying this is that |
@martine I believe that optionality is indeed a type level concern. |
Should be fixed in the next release of TypeScript TS 2.1. |
Some function take complicate type such as function callback. I want to document it inline at the parameter but it seem salsa don't parse jsdoc there
The text was updated successfully, but these errors were encountered: