Course contentsShow
TypeScript
Lesson 481 of 1,79611. Literal TypesPro lesson

Literal Unions vs Enums: Trade-offs

Compare string literal unions to enums: literal unions have no runtime cost but lack reverse mapping features.

This lesson is for subscribers

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