1

Defined a class as per How to document ECMA6 classes with JSDoc? :

/**
 * Class representing some action
 */
class someActionClass {}

Now how should I define its instance? Could it be as below:

/**
* <WHAT GOES HERE?>
*/
someAction = new someActionClass();
Ulysses
  • 5,616
  • 7
  • 48
  • 84

1 Answers1

1

Variable type can be specified with @type tag:

/**
 * @type {someActionClass}
 */
var someAction = new someActionClass();
Estus Flask
  • 206,104
  • 70
  • 425
  • 565