Is it possible to be warned when comparing a non-null value to null in Typescript?

前端 未结 0 1503
长情又很酷
长情又很酷 2020-11-28 12:11

Assuming --strictNullChecks is on.

When I create a variable and I implicitly say that it can\'t be null (e.g. a number) and then I compare the value of this variable

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