Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

291
Visualizações
No Typescript error for unresolved types in .d.ts files?

enter image description here

For as long as I can remember, Typescript didn't warn about unresolved/undefined types in .d.ts files. I could run tsc and it wouldn't have any errors. I already have noImplicitAny enabled. This file is also in my tsconfig's include. Is this expected or is there an issue with my setup? Is there a way to make this an error?

Here's a related question specifically about VS Code (Is there a way to make VSCode show errors for unresolved types in .d.ts files?), I'm experiencing the same issue in VS Code, but even tsc has the issue.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

I was looking for an answer to the same question. In my case, it turned out that I was using a framework (SvelteKit) that had skipLibCheck: true in the default tsconfig.json. So it wasn't just the imports: there was no type checking at all in my .d.ts files. Maybe this is the same for you?

Note that setting skipLibCheck: false (the default if it's not set) can have some other consequences relating to performance and possible conflicts between .d.ts files in your node_modules. See the documentation on skipLibCheck.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda