TypeScript 5.0 - Enums are now union enums

TypeScript 5.0 has introduced union enums, which means that each enum member has its own type, and the enum itself is turned into a union of each member type. This update is a significant improvement that makes working with enums in TypeScript more powerful, easier to use and worth now worth using.