Template Literal and Mapped Types in TypeScript
Advanced types let you describe APIs precisely: event names, CSS tokens, route parameters. You won't write these every day, but they make library-style code much safer. Template literal types type Size = 'sm' | 'md' | 'lg'; type Side = 'top' | 'bottom'; type M...