I'm wondering how to documenting jQuery plugin by using JSDoc? My code is:
/**
* The default configurations of ments
* @typedef {Object} CommentConfig
...
*/
/**
* Show ments
* @method ments
* @version 1.0.1
* @param {CommentConfig} options Configuration of ment
*/
$.fnments = function (options) {
// ..
}
I want @method
is $.fnments
but it doesn't work.
I'm wondering how to documenting jQuery plugin by using JSDoc? My code is:
/**
* The default configurations of ments
* @typedef {Object} CommentConfig
...
*/
/**
* Show ments
* @method ments
* @version 1.0.1
* @param {CommentConfig} options Configuration of ment
*/
$.fn.ments = function (options) {
// ..
}
I want @method
is $.fn.ments
but it doesn't work.
1 Answer
Reset to default 7Acording to JSDoc3 docs you should use @external
in your case:
/**
* The jQuery plugin namespace.
* @external "jQuery.fn"
* @see {@link http://docs.jquery./Plugins/Authoring The jQuery Plugin Guide}
*/
/**
* Show ments
* @function external:"jQuery.fn".ments
*/