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

232
Visualizações
How to exclude folder from typescript check, but still compile

I want to build libs/libb with libs/libb/tsconfig.json. In this tsconfig I have an option "noImplicitAny": true. But file in libb imports file from liba. This file contains a function with arguments with any type. So I can't build libb. How to exclude liba folder from check, but still compile it if liba imports it? Here is a minimal reproducible example https://github.com/NazarKalytiuk/typescript-kcf5m9

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

0

You can explicitly annotate the parameters as any:

a.ts:

// before
export function testA(a, b) {
    console.log('Hello')
}

// after
export function testA(a: any, b: any) {
    console.log('Hello')
}

And if you can't modify the source TypeScript file that you're importing, you can use a // @ts-ignore comment directive before the line that's causing the problem:

b.ts:

// @ts-ignore
import {testA} from "../liba/a"

function testB(a: number, b: number) {
    console.log('Hello')
    testA(1,2);
}
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