A Mental Model to think in TypesScript
This article was first published at TK's blog.
One day I came across a tweet from Lari Mazza that says
“Can I make a suggestion? Types are hard to understand when you’ve only worked with JS in your life and suddenly have to learn TypeScript"
As a software engineer that learned Python, Ruby, Javascript, and Clojure first, when I tried C++, it was…