3 ms·
The typing is nice, but shit like enums are a plague in TS. Non-standard crap that will probably never be standard, and in some cases actually are present (in a
by shados 9y ago
The typing is nice, but shit like enums are a plague in TS. Non-standard crap that will probably never be standard, and in some cases actually are present (in a compiled form) in the output. No, just no.
And then you have all of the fun stuff like their original non-standard module system, which is now super confusing in type definitions since it lives side by side with the "real" thing. I'm sure we're gonna have lots of fun having 2 ways of defining private members too. Woo. I assume decorators are gonna be entertaining too since they were based on the older version of the spec (I assume. I did not verify this claim).
I love using TS in my side projects because I avoid "the bad parts" (same as with vanilla JS when you think about it), but when we introduce it at work, Im half considering making a lint rule that blocks all the non-standard features that are not related to type checking. Will save some pain in the future.