Documenting export class expresion - not works
Author: tomaszdrozdzCreated Jun 15, 2026Updated Jun 17, 2026
I follow https://jsdoc.app/howto-es2015-classes
/** Class representing a point1. */
const Point1 = class {
/** This is x */
x; }This works nice.
- In my_module documentation I see
Classes
Point1- and in Point1 documentation I see
my_module~Point1()
Class representing a point1.
Constructor
new Point1()
Members
x
This is xThis does not work at all.
/** Class representing a point2. */
export const Point2 = class {
/** This is x */
x; }- In my_module documentation I see
Members
(static, constant) Point2- and there is no separate documentation page for Point2
This works only partially.
/** Class representing a point3.
* @class */
export const Point3 = class {
/** This is x */
x; }- In my_module documentation I see
Classes
Point3- but in Point3 documentation I see only
my_module.Point3()
Class representing a point3.Is this a bug or ?
How can I document exported class expression ?
Source: jsdoc/jsdoc