After using TypeScript there's some features that I'm terrified of that seem counter intuitive. All the following examples produce NO errors and are with every single strict TS option enabled.
-
Show this thread
-
-
Replying to @joeflateau @sebmck
Your third example is a reasonable concern imo. The other two... not so much.
2 replies 0 retweets 7 likes -
Replying to @joeflateau @sebmck
1 & 2 are both examples of TS giving you the ability to override the type system. Great power requires great responsibility. If you screw it up then it’s on you.
1 reply 0 retweets 0 likes
Replying to @joeflateau
1 and 2 are not justifiable at all. They can both be strictly enforced. There is already an escape hatch and it's called 'any'.
7:45 PM - 22 Jun 2019
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 