deepsourcestatus / test-repository

Found explicit type declarations JS-0331
Anti-pattern
Major
8 months ago8 months old
Type number trivially inferred from a number literal, remove type annotation
 1export default class Calculator {
 2  static sum(a: number = 0, b: number) { 3    return a + b;
 4  }
 5