No particularly life-changing features in this major version.
https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/
https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/
Microsoft News
Announcing TypeScript 5.0
Today weβre excited to announce the release of TypeScript 5.0! This release brings many new features, while aiming to make TypeScript smaller, simpler, and faster. Weβve implemented the new decorators standard, added functionality to better support ESM projectsβ¦
π8
Source
https://twitter.com/bradzacher/status/1637995283555700736
Issue
https://github.com/microsoft/TypeScript/issues/17002
Playground
https://www.typescriptlang.org/play?#code/CYUwxgNghgTiAEYD2A7AzgF3gDwFzzimFQgE95MYBLFAcwG0BdAbgChX5Ps2B6H+AHoB+dlQBm8ABQBBGDCikAdFTSz5pSdgCUW+AG8OXXv2GsAvuyA
https://twitter.com/bradzacher/status/1637995283555700736
Issue
https://github.com/microsoft/TypeScript/issues/17002
Playground
https://www.typescriptlang.org/play?#code/CYUwxgNghgTiAEYD2A7AzgF3gDwFzzimFQgE95MYBLFAcwG0BdAbgChX5Ps2B6H+AHoB+dlQBm8ABQBBGDCikAdFTSz5pSdgCUW+AG8OXXv2GsAvuyA
π₯΄9π6π1π€‘1
Here we gooo. Somebody started to work on an alternative standard library for TypeScript with sane types.
https://github.com/total-typescript/ts-reset
https://github.com/total-typescript/ts-reset
GitHub
GitHub - mattpocock/ts-reset: A 'CSS reset' for TypeScript, improving types for common JavaScript API's
A 'CSS reset' for TypeScript, improving types for common JavaScript API's - mattpocock/ts-reset
π€©11π₯5π3β€1
Checked exceptions are no more.
https://github.com/microsoft/TypeScript/issues/13219#issuecomment-1515037604
https://github.com/microsoft/TypeScript/issues/13219#issuecomment-1515037604
GitHub
Suggestion: `throws` clause and typed catch clause Β· Issue #13219 Β· microsoft/TypeScript
The typescript type system is helpful in most cases, but it canβt be utilized when handling exceptions. For example: function fn(num: number): void { if (num === 0) { throw "error: can't d...
π2
Nobody cares about TS Playground anymore. TS team declared issue bankrupcy and closed all the issues.
https://github.com/microsoft/TypeScript-Website/issues/2804
https://github.com/microsoft/TypeScript-Website/issues/2804
GitHub
Next Steps for the TypeScript Website (April 2023 edition) Β· Issue #2804 Β· microsoft/TypeScript-Website
Next Steps on the TypeScript Website TL;DR We're taking this time to deliver a smaller, higher-quality, lower-cost version of the website that serves our needs while still leaving us time to do...
π5β€1π1
Mostly new JS features got support, and a particularly annoying old bug with union of arrays got fixed
https://devblogs.microsoft.com/typescript/announcing-typescript-5-2/
https://devblogs.microsoft.com/typescript/announcing-typescript-5-2/
TypeScript
Announcing TypeScript 5.2 - TypeScript
Today weβre excited to announce the release of TypeScript 5.2! If youβre not familiar with TypeScript, itβs a language that builds on top of JavaScript by making it possible to declare and describe types. Writing types in our code allows us to explain intentβ¦
π16π6
https://www.typescriptlang.org/play?#code/MYewdgzgLgBAtgUwE4HMEwLwwDwEEA0MAQgHwAUAhgFwwEwBGNRAlJiTGQN4B0vFhvbvQC+zANwAoCaEiwArphicAHjTKsM7AORbhkmdBgA3RSrUb2ABj3TwhgO6nVHCzChI5CG7dkxlixFQEMjlCQLQyI0J7ZmZuZXV9OxAAGwRuFJAUMmVuKBAAGRB7ZABhCghg2LEYAHpavzzC4rKK9ABLCBgwEFgKGAAzOTBgKHbwIA
https://github.com/microsoft/TypeScript/issues/10727
thanks to @pbdqo
https://github.com/microsoft/TypeScript/issues/10727
thanks to @pbdqo
π©18π€‘9π4π€2π€£2π1π₯1π€¬1
Forwarded from TypeScript Stories
3οΈβ£2οΈβ£
β Wrong type inference with
βΆοΈ Playground
β Wrong type inference with
Capitalize
and Uncapitalize
utility types.βΆοΈ Playground
π4
Somehow this sounds more scary than promising
https://fixupx.com/mitypescript/status/1856053317195223244?s=61&t=JbvNAsLXJkzYoNsyC-QjjA
https://fixupx.com/mitypescript/status/1856053317195223244?s=61&t=JbvNAsLXJkzYoNsyC-QjjA
π€¬1
Why Typescript is bad
Somehow this sounds more scary than promising https://fixupx.com/mitypescript/status/1856053317195223244?s=61&t=JbvNAsLXJkzYoNsyC-QjjA
Also this was about running DOOM in types
https://www.youtube.com/watch?v=0mCsluv5FXA
https://www.youtube.com/watch?v=0mCsluv5FXA
YouTube
TypeScript types can run DOOM
Yep. We got the Doom engine running purely in TypeScript types. Like. For real. Weβve prepared two more videos, one answering βwhy we did thisβ (storytime format) and another answering βhow we did thisβ (technical deep-dive). What would you like to hearβ¦
π7π4π₯2π1π€¬1
TypeScript decided to commit sudoku by rewriting its compiler in an even worse language: Go.
The only reason given is "performance". De facto it means the language is so bad they can't use it for its own compiler anymore.
https://devblogs.microsoft.com/typescript/typescript-native-port/
The only reason given is "performance". De facto it means the language is so bad they can't use it for its own compiler anymore.
https://devblogs.microsoft.com/typescript/typescript-native-port/
Microsoft News
A 10x Faster TypeScript
Embarking on a native port of the existing TypeScript compiler and toolset to achieve a 10x performance speed-up.
π21π10π3π2π€¬1π1
π9π«‘4π₯1π€¬1