Member-only story
TypeScript releases v4.3
Let’s get to the highlights of TS 4.3:
import
statement assistant- Separate write types on properties
- Overriding methods
- Template string type improvements
- ECMAScript
#private
class element - Error for missing
await
in conditionals - Static index signatures
- Improved support for well-known symbols
Don’t forget to follow me on medium for more updates
Will discuss few of them,
1- New override keyword, If you mark a method with override, it’ll check to see if a method with the same name exists in the base class. That prevents common errors that come up when you can’t make it clear whether you meant to add a totally new method or override an existing one. It also comes with a new – noImplicitOverride flag, which gives TypeScript permission to (lovingly) yell at you if you try to override a method without using override.
2- Separate write types on properties, It was always pretty tricky to model APIs that convert passed-in values before storing them, because TypeScript forced you to choose between optimizing for reading values or writing values. But now you can specify types for reading and writing to properties. Best…