Hacker News new | ask | show | jobs
by paulddraper 1133 days ago
TS compiler should have an CLI option to compile without type checks.

TS features don't need types to produce output[1] and this is supported by the compiler; it just doesn't have a CLI option.

Compiling without types is supported the compiler itself (this is what Babel does).

[1] Except const enum and export *

1 comments

It's really VERY easy to use something like esbuild or SWC though and just use TS for doing checks on the side. SWC would have ripped the TS annotations out of the top 100 TS projects on GitHub before I even finished typing this sentence.