tsconfig.json 中有哪些关键配置?开启 strict 意味着什么?

常用配置:

strictNullChecks(strict 之一)最重要:null/undefined 不再能赋给任意类型,必须显式处理,能挡掉大量「Cannot read property of null」运行时错误。

同分类其他题目