TypeScript · Senior · Question 19 of 75
What's the risk of enabling skipLibCheck: true?
- ✓Correct answer: Errors inside
.d.tsfiles, including your own, go unnoticed - 2Types from
node_modulesstop being used entirely - 3Compilation becomes noticeably slower
Explanation
The flag skips checking declaration files - builds are faster and don't break because of conflicts between @types. But errors in declarations (including your own .d.ts) remain unnoticed. It doesn't prevent using library types.