templates.ts.enum.liquid Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of recipe-generator Show documentation
Show all versions of recipe-generator Show documentation
Generates ingredients and implementation hooks for the Recipe framework
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class {{enum.name}} {
constructor(value) {
this.value = value;
}
getValue() {
return this.value;
}
toJSON() {
return this.value;
}
}
{% for value in enum.values %}
{{enum.name}}.{{value}} = new {{enum.name}}("{{value}}");
{% endfor %}
exports.{{enum.name}} = {{enum.name}};