﻿{%- if HasDescription -%}
/** {{ Description }} */
{%- endif -%}
{% if ExportTypes %}export {% endif %}type {{ ClassName }} = {% if HasInheritance %}{{ Inheritance | replace : ' extends ', '' | strip_newlines | strip }} & {% endif %}{
{%- for property in Properties -%}
{%-     if property.HasDescription -%}
  /** {{ property.Description }} */
{%-     endif -%}
  {% if property.IsReadOnly %}readonly {% endif %}{{ property.InterfaceName }}{% if property.IsOptional %}?{% endif %}: {{ property.Type }}{{ property.TypePostfix }};
  {%- endfor -%}
{%- if HasIndexerProperty -%}
  [key: string]: {{ IndexerPropertyValueType }};
{%- endif -%}
}