public virtual void WriteProperty(StringBuilder result, TsProperty property) { result.Append(" "); if (property.IsStatic) { result.Append("static "); } result.Append(property.Name); if (!string.IsNullOrEmpty(property.Type)) { result.Append($": {GetTypescriptType(property)}"); } if (property.Value != null) { result.Append($" = {GetValueString(property.Value)}"); } result.Append($"{(property.TsType.Type == "enum" ? "," : ";")}\r\n"); }
public virtual string GetTypescriptType(TsProperty property) { return(property.Type); }