It doesn't seem possible to report properties on a class using this library. The example below works well in vanilla JSDoc, but the properties don't show up anywhere. The method does show up in the YAML although it doesn't mark it as async.
How do properties need to be annotated so that they turn up in the DocFX YAML?
/**
* A fruit
* @param name {string} - The name of the fruit
* @property color {string} - The fruit's color
* @property weight {float} - The fruit's weight.
* @property sourceFarm {Object} - The farm the fruit was grown in.
*/
class Fruit {
constructor(name) {
this.name = name;
let fruitData = getFruitData(name);
this.color = fruitData.color;
this.weight = fruitData.weight;
this.sourceFarm = fruitData.sourceFarm;
/** Eat the fruit */
async function eat() {
// Eat the fruit...
}
}
It doesn't seem possible to report properties on a class using this library. The example below works well in vanilla JSDoc, but the properties don't show up anywhere. The method does show up in the YAML although it doesn't mark it as async.
How do properties need to be annotated so that they turn up in the DocFX YAML?
JSDoc output:
Doc2FX output: