Re:TypeScript enums: use cases and alternatives
by lost_womble on Monday January 20, 2025 @05:30AM
(#42767184)
Yes, so an experimental flag will be required for use in production, which is a clear reason to not use them.
> Since Node.js is only removing inline types, any TypeScript features that involve replacing TypeScript syntax with new JavaScript syntax will error, unless the flag --experimental-transform-types is passed.
> The most prominent features that require transformation are:
> Enum > namespaces > legacy module > parameter properties