Jexah
Jexah

Reputation: 183

How do I force a compile on code that has errors?

The current API I am using hooks into C++ code, which has it's own includes. I want to reference these libraries (through the C++ code) inside of the TS code I am writing (which the C++ reads and behaves accordingly). It shows errors in VS, which is fine, as I know what the errors are, and that it won't cause any trouble down the line. I have copied the code into the Play section on TS website, and used that JS with no problems. I want to know how to compile the TS code into JS code using VS, ignoring errors (bonus points for selective ignorance).

Upvotes: 1

Views: 2129

Answers (1)

Ryan Cavanaugh
Ryan Cavanaugh

Reputation: 221332

This is already the behavior. The TypeScript compiler will emit JS unless you have parse errors (i.e. syntax problems).

Upvotes: 2

Related Questions