-
Notifications
You must be signed in to change notification settings - Fork 378
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
Basic support for JSDoc @param {function} #561
Conversation
Is this specified somewhere? I can't find anything about it on in the JSDoc docs. |
Wow, that's a strange community. They seem entirely unable to deal with recursive syntax, or to grasp the fact that typedefs could already play the part of defining function types, or to notice that callback isn't a proper name for all function types. So, um, when something is finally decided on, I guess we could support it. I'd also be okay with supporting the much saner Google Closure syntax. But I'd want an actually useful implementation that also parses parameter and return types -- just saying that something is a function can already be done by using |
Yes you are right we can use But my orignal problem is for my tern-lint. I have a validator which validates if a token is a function. To do that I do |
I didn't know |
👍 sign up |
There was no further response for five months, so I assumed the discussion was over. |
This PR provides a basic support for JSDoc {function} :
It should be improved to :
In other words it should be cool to have the same features than JetBrains. See http://blog.jetbrains.com/webide/2012/10/validating-javascript-code-with-jsdoc-types-annotations/