Control-Flow Analysis for Bracketed Element Access
TL;DR
ブラケット指定のプロパティで初期化忘れに気づけるようになった。
Prev
const key = "KEY";
class Foo {
[key]: string;
foo: string; // ❌ ERROR
constructor(str: string) { }
}
Current
const key = "KEY";
class Foo {
[key]: string; // ❌ ERROR
foo: string; // ❌ ERROR
constructor(str: string) { }
}
Last updated