Get semantic errors back from the compiler.

TypeScript compiler has a getSemanticDiagnostics() method that takes
a filename and returns any errors in the TypeScript file. The
emit method that generates the JavaScript file does not return these
errors.