esdoc / esdoc

ESDoc - Good Documentation for JavaScript
https://esdoc.org
MIT License
2.74k stars 204 forks source link

Enhancement: allow one-line class member definition #387

Open Fr0sT-Brutal opened 7 years ago

Fr0sT-Brutal commented 7 years ago

Make sure these boxes are checked before submitting your issue - thank you! (If your issue is neither a both bug nor a request, please write in a free style)

Short summary of your issue

Currently class members must be defined with at least two lines:

/** public prop
    @type {number} 
    */
    this.pub = value;

Would be nice if one-line definitions are allowed too

/** @type {number} - public prop */
    this.pub = value;

Moreover, docs already state it is possible: https://esdoc.org/manual/usage/tags.html#for-member-and-variable => #type-syntax

Your environment

cipri-tom commented 7 years ago

unfortunately, the docs (no longer?) state that it is possible. But it would be very useful, indeed !