Re:Modern Node.js Patterns
by throwitaway1123 on Sunday August 03, 2025 @08:43PM
(#44781127)
In Node 22.7 and above you can enable features like enums and parameter properties with the --experimental-transform-types CLI option (not to be confused with the old --experimental-strip-types option).
Excellent update! Thanks!
Don’t use enums. They are problematic for a few reasons, but the ability to run TS code without enums without a build step should be more than enough of a reason to just use a const object instead.
Things like TS enums will not work.