JSDoc and @type

Bug Reports and Fixes
Post Reply
Gary
Posts: 18
Joined: Fri May 30, 2008 5:57 pm

JSDoc and @type

Post by Gary » Wed Jul 02, 2008 8:52 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests