Here are examples to discover new features of Typescript 5 created on Rc version.
Since currently the peer karma-typescript is not compatible peer dependency use npm install -force
.
VS Code is configured to use the same version as in node_modules.
You can switch the VS Code typescript version to see, which lines you are unable to compile.
There is no meaning of included unit tests, except debugging.
- Const type parameters
- All Enums are union types
- Export "type *"
- JSDoc @satisfies
- JSDoc @overload
- Decorators
- https://javascript.plainenglish.io/ts-5-0-beta-new-decorators-are-here-5b13a383e4ad
- You can play with the decorators before typescript-karma is available https://www.typescriptlang.org/play?experimentalDecorators=false&emitDecoratorMetadata=false&jsx=0&module=1&ts=5.1.0-dev.20230307
- https://github.com/tc39/proposal-decorators
- Performance and compiler switches see release notes