Darragh ORiordan

  • About
  • Articles
  • Projects
  • Hire

Stay up to date

Subscribe to the newsletter to stay up to date with articles, news and much more!

Read the Privacy Policy.

Socials & Contact

  • Follow on Twitter
  • Follow on GitHub
  • Follow on LinkedIn
  • mailto:darragh.oriordan(AT)gmail.com

Sitemap

AboutArticlesProjectsHire

© 2025 Darragh ORiordan. All rights reserved.

How to fix custom type definitions not being type checked

  • #developer-experience
Photo by Cookie the Pom on UnsplashSeptember 23, 2022

If you have a custom types file (e.g. myTypes.d.ts) but you get no errors from the type checker and compiler in typescript even though you know there are issues in the file you might have skipLibCheck turned on.

To fix this issue and have typescript check custom type files for errors simply set

{
  "skipLibCheck": true
}

in your tsconfig.json

SkipLibCheck option

"This can save time during compilation at the expense of type-system accuracy. "

It causes typescript to ignore .d.ts files in certain scenarios. If you want all of your .d.ts files to be type checked you should turn off this option.

Read more about it here: https://www.typescriptlang.org/tsconfig#skipLibCheck

Hey! Are you a developer?

🚀 Set Up Your Dev Environment in Minutes, Not Hours!

Tired of spending hours setting up a new development machine? I used to be, too—until I automated the entire process!

Now, I just run a single script, grab a coffee, and let my setup take care of itself.

Save 30+ hours configuring a new Mac or Windows (WSL) development environment.
Ensure consistency across all your machines.
Eliminate tedious setup and get coding faster!
Get Instant Access →