TypeScript Best Practices #2 – Use More Precise Type Than ‘string’
Introduction
The best thing about typescript is that you can always start by using just the basic features of the language. You don't have to use every advanced feature of it right from the beginning. You can incrementally learn and implement stricte...
harshitjain.hashnode.dev4 min read
Rob Levin
draw and code
Thanks for the write up! I would say that intersection types and extending are right up there with union types in terms of usefulness. How often do we have an interface we want to extend with just a couple of properties. This is a pretty good article on intersection types.