handlebars.javascript.es6.enumClass.mustache Maven / Gradle / Ivy
{{#emitJSDoc}} /**
* Allowed values for the {{baseName}}
property.
* @enum {{braces "left"}}{{datatype}}{{braces "right"}}
* @readonly
*/{{/emitJSDoc}}
export default {{datatypeWithEnum}} = {
{{#allowableValues}}
{{#enumVars}}
{{#emitJSDoc}}
/**
* value: {{{value}}}
* @const
*/
{{/emitJSDoc}}
"{{name}}": {{{value}}}{{^@last}},
{{/@last}}
{{/enumVars}}
{{/allowableValues}}
};