Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

218
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!