A quick tour through some ways we can make our types work harder for us, to prevent unwanted nasties creeping in. We’ll cover ‘shrinking’ our types to better fit our problems, how to avoid repeating yourself, some TypeScript quirks to avoid, and we’ll try thinking about some TypeScript fundamentals in a different way.

References: