2 ms·
Good thing is that the only thing it does is type-checking. So if you miss some edge case it won't influence at all how your ts code works. The only thing is i
by scotty79 5y ago
Good thing is that the only thing it does is type-checking. So if you miss some edge case it won't influence at all how your ts code works.
The only thing is it may not catch some type error, which JS already does none of and TS can skip wherever you want or even implicitly and people are fine with that.
If I get 98% of TS typechecking 10 times faster. It's a huge win.
- simplify 5y agoYou're vastly underestimating the advanced type system features TypeScript requires to typecheck even the most basic JavaScript code. It would be more like 10% rather than 98%. Intersection and union types are no joke, and are notoriously difficult to make performant.
- pjmlp 5y agoI just saw an example where the upcoming 4.6 will improve the clever use of recursive types done by some libraries. Give the people a turing complete type system and they will write a complete application with it.