[microsoft/TypeScript] Add support for pedantic property access (#40171)
DRANK
<!-- Thank you for submitting a pull request! Please verify that: * [ ] There is an associated issue in the `Backlog` milestone (**required**) * [ ] Code is up-to-date with the `master` branch * [ ] You've successfully run `gulp runtests` locally * [ ] There are new or updated unit tests validating the change Refer to CONTRIBUTING.MD for more details. https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md --> Fixes #40170
1 comments
TypeScript4.2で入る --noPropertyAccessFromIndexSignature の実装。インデックスシグネチャで定義されたプロパティにアクセスするときは obj.foo ではなく obj["foo"] しなければならなくなる。個人的には無理に使わなくてもいいかなという印象。あとeslint周りと衝突しそう。