Issue Task Closed

#87758Evaluate function syntax style of TypeScript class functions

Frank Nägler 02/21/19, 08:54 updated 01/06/21, 08:22

Description

In TypeScript files, we currently use two different kind function syntax in classes.

Variant 1)

class Foo {
  public bar = (baz: string): void => {

  }
}

Variant 2)

class Foo {
  public bar(baz: string): void {

  }
}

We should use only one style and add it to tslinter if possible.
I would prefer variant 2, because of better reading.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.