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.
-
-
This is because of backwards compatibility with TS 1.x which didn't have type narrowing. So if (!myVar) { myVar.whatever } would fail telling you myVar could be undefined. Adding strict mode to old codebase was hard work, so was opt in
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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 