Task #87758
Updated by Frank Nägler almost 6 years ago
In TypeScript files, we currently use two different kind function syntax in classes.
Variant 1)
<pre><code class="javascript">
class Foo {
public bar = (baz: string): void => {
}
}
</code></pre>
Variant 2)
<pre><code class="javascript">
class Foo {
public bar(baz: string): void {
}
}
</code></pre>
We should use only one style and add it to tslinter if possible.
I would prefer variant 2, because of better reading.