All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.ts.enum.liquid Maven / Gradle / Ivy

There is a newer version: 0.4.0
Show newest version
"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}};




© 2015 - 2024 Weber Informatics LLC | Privacy Policy