Node.js Now Supports TypeScript By Default | Total TypeScript
07-Jan-2025 47
Node 23 will soon be able to run TypeScript files without any extra configuration.
Marco Ippolito, who has been driving TypeScript support in Node for the last year, landed a PR unflagging --experimental-strip-types in Node 23.
Practically, this means a few things:
You can create an index.ts file containing TS syntax, like type annotations.
You can run node index.ts with no further flags
Node will strip out the types using a version of swc, then run the resulting code.
.
Node.js Now Supports TypeScript By Default | Total TypeScript #js #javascript #Node.js #Supports #TypeScript #Default #Total #TypeScript #typescript https://javascript.ba/link/node-js-now-supports-typescript-by-default-total-typescript