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

Community Preference for Unions

Most style guides and TypeScript experts recommend string literal unions over enums for their simplicity and zero runtime cost.

This lesson is for subscribers

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