by japink.m » Thu May 21, 2015 9:22 pm
Already any progess on @this matter?
I want to properly JSDoc type several constructors like the following:
/**
* @type{{sKey:String, aForm:Array, sMethod:String, aArguments:Array}} oSHORTCUT
* @properties={typeid:35,uuid:"ADA39EDF-12AD-4DD0-8EB2-1B5B199E44CF",variableType:-4}
*/
var oSHORTCUT = function(){
this.sKey = '';
this.aForm = [];
this.sMethod = '';
this.aArguments = [];
};
The @type declaration isn't working of course. I have been playing around with @this and @constructor. Even tried @class, @property although Servoy doesn't seem to know these types.
Can anybody tell me how to do this? And can somebody please point me to JSdoc documentation which is understandable, even for me?