JSDoc and Objects

I am getting a number of warnings related to object definitions in the JSDocs can anyone point me in the right direction to fix this.

Essentially I have a global object defined

/**

  • @type Object
  • @properties={typeid:35,uuid:“05B329D5-0097-428D-A3DA-B35116469610”,variableType:-4}
    */
    var _security = new Object();

How do you add child elements like

globals._security.branch = 11

Because when I do I am getting

“The property branch is undefined for the javascript type Object”

So I guess where is the property branch defined ?

Many thanks
Gordon

http://wiki.servoy.com/display/public/D … sing+JSDoc

see Object type and then the:

{ {name:String, age:Number}}
An object with a “name” and “age” key, with resp. a string and number value

there is a bug in 6.0.1 where that specific type doesn’t completely work (because of some stripping of {}) that is fixed for 6.0.2

Hi Johan

Sorry to be dim, but is this the format ?

@type Object {{desk:Number, branch:Number}}

Cheers
Gordon

No, loose the “Object”, the double braces already define that it is an object:

/** @type {{desk:Number, branch:Number}} */

Fab thanks !

It could be nice to know that ServoyCamp has a full session on JSDoc Integration & Auto-completion by Paul Bakker this november. :)