How can TypeScript detect always reached or unreachable code blocks?

前端 未结 0 1294
旧时难觅i
旧时难觅i 2020-12-11 22:53

For example:

const a = true;
if (!a) {
    // not reachable, but no warning here
}

Are there any ways

相关标签:
回答
  • 消灭零回复
提交回复
热议问题