vim-jsdoc icon indicating copy to clipboard operation
vim-jsdoc copied to clipboard

@return if function returns undefined

Open lyosha-v opened this issue 12 years ago • 3 comments

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}

lyosha-v avatar Jun 04 '14 13:06 lyosha-v

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.

heavenshell avatar Jun 04 '14 15:06 heavenshell

Looks great, thanks a lot.

lyosha-v avatar Jun 04 '14 18:06 lyosha-v

Merged to master. Thx.

heavenshell avatar Jun 14 '14 07:06 heavenshell