Course contentsShow
TypeScript
Lesson 517 of 1,79612. EnumsPro lesson

String-Literal Unions as Enum Alternatives

How union types of string literals can replace enums with simpler syntax and fewer runtime artifacts.

This lesson is for subscribers

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