Headless CMS and Content Managment Hub
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

10 lines
446 B

{%- if HasDescription -%}
/** {{ Description }} */
{%- endif -%}
{%- if ExportTypes %}export {% endif %}type {{ Name }} = {% for enumeration in Enums %}{%- if Enums.first.Value != enumeration.Value %} | {% endif %}{{ enumeration.Value }}{% endfor %};
export const {{ Name | uppercamelcase }}Values: ReadonlyArray<{{ Name }}> = [
{% for enumeration in Enums -%}
{{ enumeration.Value }}{% unless forloop.last %},{% endunless %}
{% endfor -%}
];