Oui enfin je pose une question 
Dites moi, comment vous faite en JSdoc pour déclarer le type des éléments d'un Array ?
Pour ma part je fais comme ceci :
* @param forms {Array}.QuestionFormValidator
1 2 3 4 5 6 7 8 9 10 11
|
/**
* Create the manager
* @constructor
* @param tabs {AdvancedTabs}
* @param navigationBtn {NavigationBtn}
* @param forms {Array}.QuestionFormValidator
*/
initialize: function(tabs, navigationBtn, forms) {
} |
Edit :
En lisant un peu mieux la doc :
http://code.google.com/p/jsdoc-toolkit/wiki/TagParam
en lisant mieux la doc :
Use the [] notation after a type to indicate an array of those types.
/**
* @param {String[]} aliases
*/
Donc résultat, je me coucherai moins bête ce soir :o
Partager