TypeScript template literal types let you build string types from other types using the same backtick syntax as JavaScript template strings. You'll see them used for event names, CSS class types, and API route patterns.
This page covers the essentials. For the full reference with real-world patterns, see the template literal types cheat sheet.
What You'll Practice: TypeScript Template Literal Types
Create template literal types from string unionsUse built-in string manipulation types (Uppercase, Lowercase, Capitalize)Remap object keys with template literal patternsMatch string patterns at the type level
Quick Reference
TypeScript Template Literal Types Cheat Sheet →Copy-ready syntax examples for quick lookup