3 ms·
It strips TS, it does not transpile. Things like TS enums will not work.
by sroussey 1y ago
It strips TS, it does not transpile.
Things like TS enums will not work.
- throwitaway1123 1y agoIn 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).
- sroussey 1y agoExcellent update! Thanks!
- 9dev 1y agoDon’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.
- sroussey 1y agoOh, I agree.