1.1.0 • Published 8 years ago

jsdoc-enum-generator v1.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
8 years ago

jsdoc-typedef-generator

A simple generator to generate JSDoc enum properties to avoid code duplication.

The generator converts

/**
 * @enum {string} MY_ENUM
 */
 
 const MY_ENUM = {
    /** This is the first. It's important. **/
    VAL_ONE: 'first',
    /** This is the second. It's important, too. **/
    CAL_TWO: 'second',
 };

to

/**
 * @enum {string} MY_ENUM
 * @property {string} first - This is the first. It's important.
 * @property {string} second - This is the second. It's important, too.
 */
 
 const MY_ENUM = {
    /** This is the first. It's important. **/
    VAL_ONE: 'first',
    /** This is the second. It's important, too. **/
    CAL_TWO: 'second',
 };
1.1.0

8 years ago

1.0.0

8 years ago