lysandroc
lysandroc.bsky.social
lysandroc
@lysandroc.bsky.social
Reposted by lysandroc
TypeScript 5.8 just shipped erasableSyntaxOnly mode 🎉

It matches Node's built-in TypeScript support, guiding users away from...

TS-only runtime features
❌ enum
❌ namespace
❌ parameter properties
❌ import x =

Legacy type features
❌ <> type assertions

Remember: TS = JS + Types 💙
TypeScript 5.8 is released 🎉

🔶 "nodenext" gets require(ESM)
🔶 "nodenext" deprecates Import Assertions
🔷 --erasableSyntaxOnly flag for Node
🔷 Granular return checks
🔷 DTS: Computed property name preservation
🔷 Perf: --libReplacement flag
🔷 Perf: Program load optimizations
TypeScript 5.8 is now out, with

✅ Better Checks on return expressions
✅ Support for require(esm) in --module nodenext
✅ --libReplacement to speed up program loading
✅ --erasableSyntaxOnly

and more! Try it today!

devblogs.microsoft.com/typescript/a...
March 1, 2025 at 9:09 AM
hey folks
October 24, 2024 at 2:42 AM