You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, when documenting these API's, we have to resort to something like:
/*** Does some async thing!* @argument {string} foo This is very unimportant.* @argument {function} callback When we've finished our calculation, we call this function and provide it two arguments -- the first is an error, which will be `null` if everything works out okay, and the second is an instance of `HolyGrail` which will make all your dreams come true. */
someAsyncFunction: function(foo,callback){// ...}
This seems less than ideal. JSDoc provides the @callback tag, which might be the optimal solution here. What do you think?
The text was updated successfully, but these errors were encountered:
Yeah, I think I agree here. I was also planning on adding support for the @typedef tag soon as well; I think @callback support could be added around the same time.
This is a pretty common trope in JS code:
or as in underscore or lazy.js:
Right now, when documenting these API's, we have to resort to something like:
This seems less than ideal. JSDoc provides the
@callback
tag, which might be the optimal solution here. What do you think?The text was updated successfully, but these errors were encountered: