Project

General

Profile

Actions

Task #87758

closed

Evaluate function syntax style of TypeScript class functions

Added by Frank Nägler about 5 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend JavaScript
Target version:
-
Start date:
2019-02-21
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Sprint Focus:

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.

Actions

Also available in: Atom PDF