Hello,
I'm wondering how I could document an object/array whose properties holding common properties, which structure could be the following
var myVar = {};
myVar.aformname1= {};
myVar.aformname1.property1IsString= 'A';
myVar.aformname1.property2IsBoolean = true;
myVar.aformname1.property3IsObject= {};
myVar.aformname1.property4IsArrayOfString= [];
myVar.aformname1.property4IsArrayOfNumber= [];
myVar.aformname2= {};
myVar.aformname2.property1IsString= 'A';
myVar.aformname2.property2IsBoolean = true;
myVar.aformname2.property3IsObject= {};
myVar.aformname2.property4IsArrayOfString= [];
myVar.aformname2.property4IsArrayOfNumber= [];
So the 'aformname2' should be dynamic, and the rest are common properties associated
At the moment, my JSDoc works without the dynamic part of it, with a lot of expected reptitions that I'm sure I cas avoid, but I can't figure out how
@type{{
aformname1:{
property1IsString:String,
property2IsBoolean:Boolean,
property3IsObject:{};
property4IsArrayOfString:Array<String>,
property4IsArrayOfNumber:Array<Number>
},
aformname2:{
property1IsString:String,
property2IsBoolean:Boolean,
property3IsObject:{};
property4IsArrayOfString:Array<String>,
property4IsArrayOfNumber:Array<Number>
}
}}
Is there any way for this ?
Thanks
Ugo