Course contentsShow
TypeScript
Lesson 821 of 1,79619. Template Literal TypesPro lesson

Template Literals with Union Types

When unions are embedded in templates, TypeScript generates the cartesian product of all possible string combinations.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.