How do I get a description of the typedef property rendered correctly by WebStorm?

Here is my javascript code that uses some JSDoc typedefs:

/**
 * @typedef {Object} BuildOptions
 * @property {string} tag - Name of build tag
 */

/**
 * @param {BuildOptions} options
 */
Builder.prototype.build = function(options) {
    // ...
}

      

In my function build

, when I type options.t

and request completion, WebStorm (8.0.4) correctly offers me the property tag

, but does not show me as the property Name of build tag

description.

Does anyone know how to write the correct Jpedit typedef property description for WebStorm to render it correctly?

+3


source to share





All Articles