- All Courses
- TypeScript for Application Developers
- Advanced Types
- Template literal types
Template literal types
String types can be composed and pattern-matched, which lets you type things like event names and route paths precisely.
- 19m
- Intermediate

Video by Harry Wolff · YouTube
Check your understanding
3 questions. Unlocks when you finish the video.
Overview
What this lesson covers
- Compose string types from other types
- Constrain string shapes such as event or route names
- Combine template literals with key remapping
This lesson sits in Advanced Types, part of TypeScript for Application Developers. It assumes what came before it and leads directly into the next lesson in the module.
In this lesson you will:
- Compose string types from other types
- Constrain string shapes such as event or route names
- Combine template literals with key remapping
Resources
Your notes will live here
Note taking is not available yet. Nothing you type would be saved, so the tab stays read-only for now.