How can I document a type in webstorm using just jsdoc?
问题 When I write the following code, the annotator tells me that BrowserSelector is not defined in the second typedef: /** * @typedef {{name: String, minVer: Number, maxVer: Number}} BrowserSelector */ /** * @typedef {{type:String, browser: BrowserSelector, attribute: Object}} Selector */ I believe it is not associating the type with the name. How can I do that? I would prefer not to add actual code for it, just jsdoc comments. 回答1: I'm using this comment style for 'struct' like types: /** *