TypeScript 5.0 is here! 🎉🎉 Learn about what's new and try it today! devblogs.microsoft.com/typescript/ann…
Want to know what's new in TypeScript 5.0 at a glance? Here's a thread about what's packed into this release that makes it great. 🧵
Want to know what's new in TypeScript 5.0 at a glance? Here's a thread about what's packed into this release that makes it great. 🧵
We'll make this one fast: TypeScript's now way speedier. You can expect at anywhere from 10%-20% of your compile times to disappear with TypeScript 5.0!
TypeScript's also lighter too! Unzipped from npm, TypeScript 5.0 now takes about 41% less space compared to TypeScript 4.9!
Ever gotten into an argument about decorating? Now you can decorate without any red flags. 🚩🚩🚩🚩 TypeScript 5.0 ships the latest version of decorators! ✨ Use them without setting --experimentalDecorators 🧪.
If you thought TypeScript 4.9 was a satisfying release... 5.0 will do it again by bringing support for /** @satisfies */ to checked JavaScript files! Works the same as our recent 'satisfies' operator in TypeScript files.
TypeScript 5.0 brings '--moduleResolution bundler' to model how most modern bundlers and loaders work. It understands classic Node-style resolution while respecting rules for 'exports', 'imports', etc. in your dependencies.
If you're a library author, maybe you've told your users to write 'as const' when they call a function. With 'const' type parameters, you can hint which values should get literal & read-only types.