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
javascript webstorm jsdoc


source to share


No one has answered this question yet

Check out similar questions:

5722
How can I remove a property from a JavaScript object?
3796
How do you get the timestamp in JavaScript?
2886
How do I clone a JavaScript object correctly?
2701
How do I get the values ​​of a query string in JavaScript?
2284
How can I combine properties of two JavaScript objects dynamically?
2170
How do I get children from the $ (this) selector?
2102
How do I get the current date in JavaScript?
1485
How can I render a JavaScript object?
1435
How to efficiently count the number of keys / properties of an object in JavaScript?
1367
How can I check if an object has a specific property in JavaScript?



All Articles
Loading...
X
Show
Funny
Dev
Pics