Typewriter: generate TypeScript parameter properties
<p>Currently I am using Typewriter for automatic generation of TypeScript class from my C# classes. Lets say I have this very simple C# class:</p>

<pre><code>[Dto]
public class MyDto
{
    public string Prop1 { get; set; }

    public string Prop2 { get; set; }
}
</code></pre>

<p>Also I have this simple typewriter template:</p>

<pre><code>$Classes(c =&gt; c.Attributes.Any(x =&gt; x.Name == "Dto"))[
export class $Name {
    constructor(
        $Properties[
            public $name: string,
        ]
    ) { }
}]
</code></pre>

<p>The issue I have with this template is that there is a trailing comma after the last constructor parameter property in the generated ts class:</p>

<pre><code>export class MyDto {
    constructor(
            public prop1: string,
            public prop2: string,     /* &lt;---- notice the comma here */
    ) { }
}
</code></pre>

<p>I would like to have the properties of the C# class generated as parameter properties in the TypeScript class, but with the example above the generated TypeScript is not valid. Is there a way to achieve this with a Typewriter template?</p>