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

typescript-fetch.modelEnumInterfaces.mustache Maven / Gradle / Ivy

There is a newer version: 7.6.0
Show newest version
{{#stringEnums}}
/**
 * {{#lambda.indented_star_1}}{{{unescapedDescription}}}{{/lambda.indented_star_1}}
 * @export
 * @enum {string}
 */
export enum {{classname}} {
{{#allowableValues}}
{{#enumVars}}
    {{{name}}} = {{{value}}}{{^-last}},{{/-last}}
{{/enumVars}}
{{/allowableValues}}
}
{{/stringEnums}}{{^stringEnums}}
/**
 * {{#lambda.indented_star_1}}{{{unescapedDescription}}}{{/lambda.indented_star_1}}
 * @export
 */
export const {{classname}} = {
{{#allowableValues}}
{{#enumVars}}
    {{{name}}}: {{{value}}}{{^-last}},{{/-last}}
{{/enumVars}}
{{/allowableValues}}
} as const;
export type {{classname}} = typeof {{classname}}[keyof typeof {{classname}}];
{{/stringEnums}}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy