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

157
Views
Is there a TypeScript compiler API for general inferred type information from JavaScript code?

I was reading the type inference documentation for TypeScript, which seem to target (quite reasonably) cases where TypeScript can surely identify types. I am curious about whether the compiler can be used to access generally inferred type information about JavaScript code. For example, is there a compiler API that would read code such as:

function f(x) {
  x.q = g(x.p);
  return x.h();
}

and output information of the form: "x has a type that, at least, has a readable property called p, a writable property called q, and a callable property/method called h"? This is intended at a toy example, and if such an API exists, I am curious about how general it is (i.e., how precise it is for more complex cases).

about 4 years ago · Juan Pablo Isaza
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!