node.js - In JetBrains WebStorm 6, NodeJS/Javascript how can you define, in the comments a JSON example? -


i have function json parameter comes same structure each time.

/**  * @param box {object} */ function testbox( box ) 

i looking way instruct autocomplete of structure insert in input parameter aside fact {object}. looking avoid typos in coding function.

i have noticed if add structured json var, later in function ide hints of structure, in case of function parameter, don't such thing.

how might 1 this?

please, see following thread: https://groups.google.com/forum/?fromgroups#!topic/jsdoc-users/vr5rez1i8jc - recommended way of documenting using @typedef webstorm support jsdoc @typedef annotation. in case oif problems resolving/typehinting, please, feel free file bug http://youtrack.jetbrains.com/issues/web


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -