vim-jsdoc
vim-jsdoc copied to clipboard
@return if function returns undefined
Plugin adds empty @return param, if I don't specify the type of returned value. Like this:
/**
* log
*
* @param {string} value
* @return
*/
function log(value) {
console.log(value);
}
(implemented here: https://github.com/heavenshell/vim-jsdoc/blob/master/autoload/jsdoc.vim#L96)
Isn't it better to specify the type explicitly by default. Like:
* @return {undefined}
I implemented in feature_return_type branch. Could you try this? https://github.com/heavenshell/vim-jsdoc/tree/feature_return_type
If it works fine, I'll merge to master.
Looks great, thanks a lot.
Merged to master. Thx.