TLDR Web Dev · ARTICLES & TUTORIALS
HOW TO PERFORM TYPE CASTING IN TYPESCRIPT
Summary from the TLDR Web Dev newsletter
This is a comprehensive and advanced guide to TypeScript type casting. It covers the problems and limitations with using the ‘as’ keyword to type cast and how to go about solving these problems with code examples. The guide also explains foundational concepts like subtype and supertypes, type widening/narrowing, and how the satisfies operator works.