News for hackers. Stuff that matters.
Re:TypeScript enums: use cases and alternatives by jakub_g on Monday January 20, 2025 @05:18AM (#42767095)
https://nodejs.org/docs/latest/api/typescript.html#typescrip...

> 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

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.