I’ve been getting stuck into TypeScript recently and hit a few bumps along the way, so thought I’d be all nice and internety and share some tips. Firstly and foremostly:
You might not like the idea of strict typing the way having to declare what kind of things an array is going to hold irks me, but the discipline is good for you. Like porridge, morning runs, and getting hit with soap in a sock at a posh boarding school. So here are some of the things I had trouble with, in the hope of saving you time and frustration.