title: How to check TypeScript code for syntax errors from a command line?
body: <p>I have a code that generates TypeScript classes, and as a build/test step, I would like to check the generated files for syntax correctness.</p>
  <p>I have looked at <a href="https://www.typescriptlang.org/docs/handbook/compiler-options.html" rel="noreferrer">TypeScript compiler options</a> but see no such option.</p>
  <ul>
  <li>How can I check the syntax?</li>
  </ul>
  <p>I don't want a full compilation because the referred types are not reachable at that build step (they are in a different module to which the generated sources are added later).</p>