Page 1 of 1

JSDoc and @type

Posted: Wed Jul 02, 2008 8:52 pm
by Gary
It is silly, but JSDoc and JSDoc-toolkit do not expect { } around the class type for the @type parameter. I've been using JSDoc-Tookit lately and I couldn't figure out why all of the property types were missing. Once I changed

Code: Select all

/**
 * @type {String}
 */
to

Code: Select all

/**
 *@type String
 */
my property types showed up. This wouldn't be a bug for you except Spket likes to auto-complete comments for properties with the { } around the type class.

-Gary