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

String Literal Unions as Lightweight Enums

Use unions of string literals to define a fixed set of values without runtime code or enum overhead.

This lesson is for subscribers

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