Get the latest tech news
Running TypeScript Natively in Node.js
Node.js® is a free, open-source, cross-platform JavaScript runtime environment that lets developers create servers, web apps, command line tools and scripts.
In V22.7.0 this experimental support was extended to transform TypeScript-only syntax, like enum s and namespace, with the addition of the flag. We recommend configuring your editor and tsc to reflect Node.js behavior by creating a tsconfig.json using the compilerOptions listed here, as well as using TypeScript version 5.7 or higher. Bug reports are also welcome, please keep in mind the project is run by volunteers, without warranty of any kind, so please be patient if you can't contribute the fix yourself.
Or read this on Hacker News