Why does making this variable nullable produce a linting error in VSCode?

前端 未结 0 562
深忆病人
深忆病人 2021-02-05 06:26

The two statements below seem to be equivalent to me, but one of them triggers a linting warning from TSLint in VSCode. Why?


const task: Task | undefined = this.         


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