Reported by [community thread](https://community.sonarsource.com/t/typescript-mistake-in-noncompliant-code-example/102806)