Skip to content

Add 5.0 release notes, fix some ancient compiler options docs - #2778

Merged
Andrew Branch (andrewbranch) merged 6 commits into
v2from
release-notes
Apr 7, 2023
Merged

Add 5.0 release notes, fix some ancient compiler options docs#2778
Andrew Branch (andrewbranch) merged 6 commits into
v2from
release-notes

Conversation

@andrewbranch

@andrewbranchAndrew Branch (andrewbranch) commented Apr 7, 2023

Copy link
Copy Markdown
Member

@github-actions

Copy link
Copy Markdown
Contributor

Azure Static Web Apps: Your stage site is ready! Visit it here: https://delightful-glacier-09aa73710-2778.centralus.azurestaticapps.net

@github-actions

Copy link
Copy Markdown
Contributor
Got false positives?

Make changes to the global settings spellcheck.json in /microsoft/TypeScript-Website.

Make changes to this repo's settings in spellcheck.json.

Typos for TypeScript 5.0.md

LineTypo
276be decorated for things like subclassing and registration.
278pth, you can read up on [Axel Rauschmayer's extensive summary](https://2a
285been incredibly useful, they modeled a much older version of the d
532eScript originally introduced enums, they were nothing more than
551til TypeScript 2.0 introduced enum literal types that enums got
551duced enum literal types that enums got a bit more special.
552Enum literal types gave each enum
552Enum literal types gave each enum member its own type, and turn
552its own type, and turned the enum itself into a union of each
553y a subset of the types of an enum, and to narrow away those typ
573One issue with giving each enum member its own type was that
574that value - for instance, an enum member could be initialized b
582etly back out and use the old enum strategy.
585cript 5.0 manages to make all enums into union enums by creating
585to make all enums into union enums by creating a unique type for
586That means that all enums can now be narrowed and have
606y developers using tools like bundlers, the node16/nodenext sett
606tings were cumbersome because bundlers don't have most of these rest
610Most modern bundlers use a fusion of the ECMAScrip
610and CommonJS lookup rules in Node.js.
613To model how bundlers work, TypeScript now introduc
624e using a modern bundler like Vite, esbuild, swc, Webpack, Parce
624n bundler like Vite, esbuild, swc, Webpack, Parcel, and others
658) declaration files for those stylesheets:
689ore information, read up [the proposalfor this feature](https://github.
905## @satisfies Support in JSDoc
948k their JavaScript code using JSDoc annotations.
949cript 5.0 is supporting a new JSDoc tag called @satisfies that
10311753) was provided thanks to [Oleksandr Tarasiuk](https://github.com/
1031provided thanks to [Oleksandr Tarasiuk](https://github.com/a-tarasyu
1033## @overload Support in JSDoc
1060TypeScript 5.0 now allows JSDoc to declare overloads with a n
1061Each JSDoc comment with an @overload t
1106Script/pull/51234) thanks to [Tomasz Lenarcik](https://github.com/
1106pull/51234) thanks to [Tomasz Lenarcik](https://github.com/apendua).
1235material-ui build time
1236TypeScript Compiler startup time
1254This reduced polymorphic and megamorphic use sites, while offsetting m
1269* [NodeMonomorphization](https://github.com/microsoft
1270* [SymbolMonomorphization](https://github.com/microsoft
1318was contributed courtesy of [Mateusz Burzyński](https://github.com
1318tributed courtesy of [Mateusz Burzyński](https://github.com/Andarist)
1320### Enum Overhaul

Generated by 🚫 dangerJS against 2fe8c81

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment