Post

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...

devblogs.microsoft.comAnnouncing TypeScript 5.8 - TypeScriptToday we’re excited to announce the release of TypeScript 5.8! If you’re not familiar with TypeScript, it’s a language that builds on top of JavaScript by adding syntax for types. Writing types in our...

40 reposts237 likes

I was misunderstanding, oops. "This PR reverts return type narrowing, but keeps the change where we check each branch of a conditional return expression separately, since that change, although a breaking one, uncovered bugs in vscode and Google"