I'm wondering how to documenting jQuery plugin by using JSDoc? My code is:
/**
* The default configurations of comments
* @typedef {Object} CommentConfig
...
*/
/**
* Show comments
* @method comments
* @version 1.0.1
* @param {CommentConfig} options Configuration of comment
*/
$.fn.comments = function (options) {
// ..
}
I want @method
is $.fn.comments
but it doesn't work.