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

typescript-angular.modelGenericEnums.mustache Maven / Gradle / Ivy

There is a newer version: 3.0.0-rc1
Show newest version
{{#hasEnums}}

export namespace {{classname}} {
{{#vars}}
    {{#isEnum}}
    export type {{enumName}} = {{#allowableValues}}{{#enumVars}}{{{value}}}{{^-last}} | {{/-last}}{{/enumVars}}{{/allowableValues}};
    export const {{enumName}} = {
    {{#allowableValues}}
    {{#enumVars}}
        {{name}}: {{{value}}} as {{enumName}}{{^-last}},{{/-last}}
    {{/enumVars}}
    {{/allowableValues}}
    };
    {{/isEnum}}
{{/vars}}
}{{/hasEnums}}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy