bad.ts 121 B

1234
  1. // bad 给变量指定了没必要的类型声明
  2. let foo1: number = 1;
  3. let bar1: string = '';
  4. let baz1: boolean = true;