Re:Why Angular 2 Switched to TypeScript
by tracker1 on Sunday July 24, 2016 @04:09PM
(#12154630)
In the case of TS, they go out the window at runtime... anything outside of your project that comes in (json via rpc or rest) or outside-in calls/callbacks don't enforce the type safety.
[ Parent
| on HN ]
Yeah, and that's frustrating because it also eliminates the performance gains that come when you can determine what exact function will be called, rather than having to determine it at runtime. I guess that's the consequence of TS being a superset of JS.