tsconfig’s skipLibCheck

Official Documentation: https://www.typescriptlang.org/tsconfig#skipLibCheck

Some library may not coagulate all of their .d.ts files to single behemoth. If you set skipLibCheck to true, those typings will not be checked.

Sample case: Intertia React Package @ 1.0.14 (NPM Artifact link). The .d.ts files were split to several files.

Fails to set skipLibCheck will makes your IDE tells you that the typing for certain parts are missing.

Disclaimer:

Not all articles here are meant to be correct. My notes might be wrong or may no longer be relevant. If you want to try things here, please proceed with caution.


Posted

in

by

Tags: