Basic support for JSDoc @param {function}#561
Basic support for JSDoc @param {function}#561angelozerr wants to merge 1 commit intoternjs:masterfrom
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/