Hi all,
I'm trying to annotate a method that takes an array of strings and an
array of objects as its parameters.
Following the Annotating JavaScript document, I tried this:
[
https://developers.google.com/closure/compiler/docs/js-for-compiler]
* @param {Array<string>} columns The names of the columns in this
* data source.
* @param {Array<Object>} data The initial contents of the data
* source, which can be an empty array. Rows can be added using
But JsDoc doesn't like this at all, and it nests my Method Detail under my
class's Parameters section, in fixed font, which looks horrible.
The JsDoc wiki seems to think we should use array syntax instead,
something like this:
[
https://code.google.com/p/jsdoc-toolkit/wiki/TagParam#Parameter_Type_Information]
* @param {String[]} columns The names of the columns in this
* data source.
* @param {Object[]} data The initial contents of the data
* source, which can be an empty array. Rows can be added using
But since this isn't documented as supported by Closure Compiler, does it
work and will it be supported in future? And what's the proper way to do
this that's supported by both Closure and JsDoc?
Cheers, Chris.
--
_____ __ _
\ __/ / ,__(_)_ | Chris Wilson <
chri...@qwirx.com> Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Ruby/Perl/SQL Developer |
\__/_/_/_//_/___/ | We are GNU : free your mind & your software |